@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AllocateHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AllocateHostsRequest>
Contains the parameters for AllocateHosts.
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 you provide to ensure idempotency of the request.
|
Request<AllocateHostsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceType()
Specify the instance type that you want your Dedicated Hosts to be configured for.
|
Integer |
getQuantity()
The number of Dedicated Hosts you want to allocate to your account with these parameters.
|
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 you provide to ensure idempotency of the request.
|
void |
setInstanceType(String instanceType)
Specify the instance type that you want your Dedicated Hosts to be configured for.
|
void |
setQuantity(Integer quantity)
The number of Dedicated Hosts you want to allocate to your account with these parameters.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 you provide to ensure idempotency of the request.
|
AllocateHostsRequest |
withInstanceType(String instanceType)
Specify the instance type that you want your Dedicated Hosts to be configured for.
|
AllocateHostsRequest |
withQuantity(Integer quantity)
The number of Dedicated Hosts you want to allocate to your account with these parameters.
|
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 you provide to ensure 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 you provide to ensure 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 you provide to ensure 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 you provide to ensure 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 you provide to ensure 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 that you want your Dedicated Hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.
instanceType
- Specify the instance type that you want your Dedicated Hosts to be configured for. 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 that you want your Dedicated Hosts to be configured for. 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 that you want your Dedicated Hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.
instanceType
- Specify the instance type that you want your Dedicated Hosts to be configured for. 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 you want to allocate to your account with these parameters.
quantity
- The number of Dedicated Hosts you want to allocate to your account with these parameters.public Integer getQuantity()
The number of Dedicated Hosts you want to allocate to your account with these parameters.
public AllocateHostsRequest withQuantity(Integer quantity)
The number of Dedicated Hosts you want to allocate to your account with these parameters.
quantity
- The number of Dedicated Hosts you want to allocate to your account with these parameters.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.