@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyHostsRequest>
NOOP| Constructor and Description |
|---|
ModifyHostsRequest() |
| Modifier and Type | Method and Description |
|---|---|
ModifyHostsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAutoPlacement()
Specify whether to enable or disable auto-placement.
|
Request<ModifyHostsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getHostIds()
The IDs of the Dedicated Hosts to modify.
|
String |
getHostRecovery()
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
String |
getInstanceFamily()
Specifies the instance family to be supported by the Dedicated Host.
|
String |
getInstanceType()
Specifies the instance type to be supported by the Dedicated Host.
|
int |
hashCode() |
void |
setAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
|
void |
setAutoPlacement(String autoPlacement)
Specify whether to enable or disable auto-placement.
|
void |
setHostIds(Collection<String> hostIds)
The IDs of the Dedicated Hosts to modify.
|
void |
setHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
void |
setHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
void |
setInstanceFamily(String instanceFamily)
Specifies the instance family to be supported by the Dedicated Host.
|
void |
setInstanceType(String instanceType)
Specifies the instance type to be supported by the Dedicated Host.
|
String |
toString()
Returns a string representation of this object.
|
ModifyHostsRequest |
withAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
|
ModifyHostsRequest |
withAutoPlacement(String autoPlacement)
Specify whether to enable or disable auto-placement.
|
ModifyHostsRequest |
withHostIds(Collection<String> hostIds)
The IDs of the Dedicated Hosts to modify.
|
ModifyHostsRequest |
withHostIds(String... hostIds)
The IDs of the Dedicated Hosts to modify.
|
ModifyHostsRequest |
withHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
ModifyHostsRequest |
withHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
ModifyHostsRequest |
withInstanceFamily(String instanceFamily)
Specifies the instance family to be supported by the Dedicated Host.
|
ModifyHostsRequest |
withInstanceType(String instanceType)
Specifies the instance type to be supported by the Dedicated Host.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setAutoPlacement(String autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement - Specify whether to enable or disable auto-placement.AutoPlacementpublic String getAutoPlacement()
Specify whether to enable or disable auto-placement.
AutoPlacementpublic ModifyHostsRequest withAutoPlacement(String autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement - Specify whether to enable or disable auto-placement.AutoPlacementpublic void setAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement - Specify whether to enable or disable auto-placement.AutoPlacementpublic ModifyHostsRequest withAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement - Specify whether to enable or disable auto-placement.AutoPlacementpublic List<String> getHostIds()
The IDs of the Dedicated Hosts to modify.
public void setHostIds(Collection<String> hostIds)
The IDs of the Dedicated Hosts to modify.
hostIds - The IDs of the Dedicated Hosts to modify.public ModifyHostsRequest withHostIds(String... hostIds)
The IDs of the Dedicated Hosts to modify.
NOTE: This method appends the values to the existing list (if any). Use
setHostIds(java.util.Collection) or withHostIds(java.util.Collection) if you want to override
the existing values.
hostIds - The IDs of the Dedicated Hosts to modify.public ModifyHostsRequest withHostIds(Collection<String> hostIds)
The IDs of the Dedicated Hosts to modify.
hostIds - The IDs of the Dedicated Hosts to modify.public void setHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.
hostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host
recovery in the Amazon EC2 User Guide.HostRecoverypublic String getHostRecovery()
Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.
HostRecoverypublic ModifyHostsRequest withHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.
hostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host
recovery in the Amazon EC2 User Guide.HostRecoverypublic void setHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.
hostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host
recovery in the Amazon EC2 User Guide.HostRecoverypublic ModifyHostsRequest withHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.
hostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host
recovery in the Amazon EC2 User Guide.HostRecoverypublic void setInstanceType(String instanceType)
Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support only a specific instance type.
If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
instanceType - Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a
Dedicated Host to support only a specific instance type.
If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
public String getInstanceType()
Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support only a specific instance type.
If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
public ModifyHostsRequest withInstanceType(String instanceType)
Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support only a specific instance type.
If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
instanceType - Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a
Dedicated Host to support only a specific instance type.
If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
public void setInstanceFamily(String instanceFamily)
Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support multiple instance types within its current instance family.
If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
instanceFamily - Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a
Dedicated Host to support multiple instance types within its current instance family.
If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
public String getInstanceFamily()
Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support multiple instance types within its current instance family.
If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
public ModifyHostsRequest withInstanceFamily(String instanceFamily)
Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support multiple instance types within its current instance family.
If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
instanceFamily - Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a
Dedicated Host to support multiple instance types within its current instance family.
If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
public Request<ModifyHostsRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ModifyHostsRequest>public String toString()
toString in class ObjectObject.toString()public ModifyHostsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2022. All rights reserved.