@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()
Creates a shallow clone of this object for all fields except the handler context.
|
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 |
getHostMaintenance()
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
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 |
setHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
void |
setHostMaintenance(String hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
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 |
withHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
ModifyHostsRequest |
withHostMaintenance(String hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
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, 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, withSdkRequestTimeout
public void setAutoPlacement(String autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public String getAutoPlacement()
Specify whether to enable or disable auto-placement.
AutoPlacement
public ModifyHostsRequest withAutoPlacement(String autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public void setAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public ModifyHostsRequest withAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public 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.HostRecovery
public 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.
HostRecovery
public 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.HostRecovery
public 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.HostRecovery
public 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.HostRecovery
public 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 void setHostMaintenance(String hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
hostMaintenance
- Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see
Host
maintenance in the Amazon EC2 User Guide.HostMaintenance
public String getHostMaintenance()
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
HostMaintenance
public ModifyHostsRequest withHostMaintenance(String hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
hostMaintenance
- Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see
Host
maintenance in the Amazon EC2 User Guide.HostMaintenance
public void setHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
hostMaintenance
- Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see
Host
maintenance in the Amazon EC2 User Guide.HostMaintenance
public ModifyHostsRequest withHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
hostMaintenance
- Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see
Host
maintenance in the Amazon EC2 User Guide.HostMaintenance
public Request<ModifyHostsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyHostsRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyHostsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()