@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AllocateHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AllocateHostsRequest>
NOOP| Constructor and Description |
|---|
AllocateHostsRequest() |
| Modifier and Type | Method and Description |
|---|---|
AllocateHostsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAutoPlacement()
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
String |
getAvailabilityZone()
The Availability Zone in which to allocate the Dedicated Host.
|
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
Request<AllocateHostsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getHostRecovery()
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
String |
getInstanceType()
Specifies the instance type for which to configure your Dedicated Hosts.
|
Integer |
getQuantity()
The number of Dedicated Hosts to allocate to your account with these parameters.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the Dedicated Host during creation.
|
int |
hashCode() |
void |
setAutoPlacement(AutoPlacement autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
void |
setAutoPlacement(String autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which to allocate the Dedicated Host.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
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 |
setInstanceType(String instanceType)
Specifies the instance type for which to configure your Dedicated Hosts.
|
void |
setQuantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
|
String |
toString()
Returns a string representation of this object.
|
AllocateHostsRequest |
withAutoPlacement(AutoPlacement autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
AllocateHostsRequest |
withAutoPlacement(String autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
AllocateHostsRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which to allocate the Dedicated Host.
|
AllocateHostsRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
AllocateHostsRequest |
withHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
AllocateHostsRequest |
withHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
AllocateHostsRequest |
withInstanceType(String instanceType)
Specifies the instance type for which to configure your Dedicated Hosts.
|
AllocateHostsRequest |
withQuantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters.
|
AllocateHostsRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
|
AllocateHostsRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host during creation.
|
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)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding Instance Placement and Host Affinity in the Amazon EC2 User Guide for Linux Instances.
Default: on
autoPlacement - Indicates whether the host accepts any untargeted instance launches that match its instance type
configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For
more information, see Understanding Instance Placement and Host Affinity in the Amazon EC2 User Guide for Linux
Instances.
Default: on
AutoPlacementpublic String getAutoPlacement()
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding Instance Placement and Host Affinity in the Amazon EC2 User Guide for Linux Instances.
Default: on
Default: on
AutoPlacementpublic AllocateHostsRequest withAutoPlacement(String autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding Instance Placement and Host Affinity in the Amazon EC2 User Guide for Linux Instances.
Default: on
autoPlacement - Indicates whether the host accepts any untargeted instance launches that match its instance type
configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For
more information, see Understanding Instance Placement and Host Affinity in the Amazon EC2 User Guide for Linux
Instances.
Default: on
AutoPlacementpublic void setAutoPlacement(AutoPlacement autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding Instance Placement and Host Affinity in the Amazon EC2 User Guide for Linux Instances.
Default: on
autoPlacement - Indicates whether the host accepts any untargeted instance launches that match its instance type
configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For
more information, see Understanding Instance Placement and Host Affinity in the Amazon EC2 User Guide for Linux
Instances.
Default: on
AutoPlacementpublic AllocateHostsRequest withAutoPlacement(AutoPlacement autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding Instance Placement and Host Affinity in the Amazon EC2 User Guide for Linux Instances.
Default: on
autoPlacement - Indicates whether the host accepts any untargeted instance launches that match its instance type
configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For
more information, see Understanding Instance Placement and Host Affinity in the Amazon EC2 User Guide for Linux
Instances.
Default: on
AutoPlacementpublic void setAvailabilityZone(String availabilityZone)
The Availability Zone in which to allocate the Dedicated Host.
availabilityZone - The Availability Zone in which to allocate the Dedicated Host.public String getAvailabilityZone()
The Availability Zone in which to allocate the Dedicated Host.
public AllocateHostsRequest withAvailabilityZone(String availabilityZone)
The Availability Zone in which to allocate the Dedicated Host.
availabilityZone - The Availability Zone in which to allocate the Dedicated Host.public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
public AllocateHostsRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency.public void setInstanceType(String instanceType)
Specifies the instance type for which to configure your Dedicated Hosts. When you specify the instance type, that is the only instance type that you can launch onto that host.
instanceType - Specifies the instance type for which to configure your Dedicated Hosts. When you specify the instance
type, that is the only instance type that you can launch onto that host.public String getInstanceType()
Specifies the instance type for which to configure your Dedicated Hosts. When you specify the instance type, that is the only instance type that you can launch onto that host.
public AllocateHostsRequest withInstanceType(String instanceType)
Specifies the instance type for which to configure your Dedicated Hosts. When you specify the instance type, that is the only instance type that you can launch onto that host.
instanceType - Specifies the instance type for which to configure your Dedicated Hosts. When you specify the instance
type, that is the only instance type that you can launch onto that host.public void setQuantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters.
quantity - The number of Dedicated Hosts to allocate to your account with these parameters.public Integer getQuantity()
The number of Dedicated Hosts to allocate to your account with these parameters.
public AllocateHostsRequest withQuantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters.
quantity - The number of Dedicated Hosts to allocate to your account with these parameters.public List<TagSpecification> getTagSpecifications()
The tags to apply to the Dedicated Host during creation.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
tagSpecifications - The tags to apply to the Dedicated Host during creation.public AllocateHostsRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host during creation.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection) or withTagSpecifications(java.util.Collection) if
you want to override the existing values.
tagSpecifications - The tags to apply to the Dedicated Host during creation.public AllocateHostsRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
tagSpecifications - The tags to apply to the Dedicated Host during creation.public void setHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host Recovery in the Amazon Elastic Compute Cloud User Guide.
Default: off
hostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
default. For more information, see Host
Recovery in the Amazon Elastic Compute Cloud User Guide.
Default: off
HostRecoverypublic String getHostRecovery()
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host Recovery in the Amazon Elastic Compute Cloud User Guide.
Default: off
Default: off
HostRecoverypublic AllocateHostsRequest withHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host Recovery in the Amazon Elastic Compute Cloud User Guide.
Default: off
hostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
default. For more information, see Host
Recovery in the Amazon Elastic Compute Cloud User Guide.
Default: off
HostRecoverypublic void setHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host Recovery in the Amazon Elastic Compute Cloud User Guide.
Default: off
hostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
default. For more information, see Host
Recovery in the Amazon Elastic Compute Cloud User Guide.
Default: off
HostRecoverypublic AllocateHostsRequest withHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host Recovery in the Amazon Elastic Compute Cloud User Guide.
Default: off
hostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
default. For more information, see Host
Recovery in the Amazon Elastic Compute Cloud User Guide.
Default: off
HostRecoverypublic Request<AllocateHostsRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<AllocateHostsRequest>public String toString()
toString in class ObjectObject.toString()public AllocateHostsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2019. All rights reserved.