@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()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAutoPlacement()
This is enabled by default.
|
String |
getAvailabilityZone()
The Availability Zone for the Dedicated Hosts.
|
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 |
getInstanceType()
Specify 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)
This is enabled by default.
|
void |
setAutoPlacement(String autoPlacement)
This is enabled by default.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone for the Dedicated Hosts.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setInstanceType(String instanceType)
Specify 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)
This is enabled by default.
|
AllocateHostsRequest |
withAutoPlacement(String autoPlacement)
This is enabled by default.
|
AllocateHostsRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone for the Dedicated Hosts.
|
AllocateHostsRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
AllocateHostsRequest |
withInstanceType(String instanceType)
Specify 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, 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)
This is enabled by default. This property allows instances to be automatically placed onto available Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
autoPlacement
- This is enabled by default. This property allows instances to be automatically placed onto available
Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
AutoPlacement
public String getAutoPlacement()
This is enabled by default. This property allows instances to be automatically placed onto available Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
Default: Enabled
AutoPlacement
public AllocateHostsRequest withAutoPlacement(String autoPlacement)
This is enabled by default. This property allows instances to be automatically placed onto available Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
autoPlacement
- This is enabled by default. This property allows instances to be automatically placed onto available
Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
AutoPlacement
public void setAutoPlacement(AutoPlacement autoPlacement)
This is enabled by default. This property allows instances to be automatically placed onto available Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
autoPlacement
- This is enabled by default. This property allows instances to be automatically placed onto available
Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
AutoPlacement
public AllocateHostsRequest withAutoPlacement(AutoPlacement autoPlacement)
This is enabled by default. This property allows instances to be automatically placed onto available Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
autoPlacement
- This is enabled by default. This property allows instances to be automatically placed onto available
Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
AutoPlacement
public void setAvailabilityZone(String availabilityZone)
The Availability Zone for the Dedicated Hosts.
availabilityZone
- The Availability Zone for the Dedicated Hosts.public String getAvailabilityZone()
The Availability Zone for the Dedicated Hosts.
public AllocateHostsRequest withAvailabilityZone(String availabilityZone)
The Availability Zone for the Dedicated Hosts.
availabilityZone
- The Availability Zone for the Dedicated Hosts.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 in the Amazon Elastic Compute Cloud User Guide.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency in the Amazon Elastic Compute Cloud User Guide.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 in the Amazon Elastic Compute Cloud User Guide.
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 in the Amazon Elastic Compute Cloud User Guide.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency in the Amazon Elastic Compute Cloud User Guide.public void setInstanceType(String instanceType)
Specify 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
- Specify 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()
Specify 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)
Specify 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
- Specify 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 Request<AllocateHostsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AllocateHostsRequest>
public String toString()
toString
in class Object
Object.toString()
public AllocateHostsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.