public class AllocateHostsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<AllocateHostsRequest>
Contains the parameters for AllocateHosts.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
autoPlacement
This is enabled by default.
|
private java.lang.String |
availabilityZone
The Availability Zone for the Dedicated hosts.
|
private java.lang.String |
clientToken
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
private java.lang.String |
instanceType
Specify the instance type that you want your Dedicated hosts to be
configured for.
|
private java.lang.Integer |
quantity
The number of Dedicated hosts you want to allocate to your account with
these parameters.
|
NOOP
Constructor and Description |
---|
AllocateHostsRequest() |
Modifier and Type | Method and Description |
---|---|
AllocateHostsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoPlacement()
This is enabled by default.
|
java.lang.String |
getAvailabilityZone()
The Availability Zone for the Dedicated hosts.
|
java.lang.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.
|
java.lang.String |
getInstanceType()
Specify the instance type that you want your Dedicated hosts to be
configured for.
|
java.lang.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(java.lang.String autoPlacement)
This is enabled by default.
|
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the Dedicated hosts.
|
void |
setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
void |
setInstanceType(java.lang.String instanceType)
Specify the instance type that you want your Dedicated hosts to be
configured for.
|
void |
setQuantity(java.lang.Integer quantity)
The number of Dedicated hosts you want to allocate to your account with
these parameters.
|
java.lang.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(java.lang.String autoPlacement)
This is enabled by default.
|
AllocateHostsRequest |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the Dedicated hosts.
|
AllocateHostsRequest |
withClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
AllocateHostsRequest |
withInstanceType(java.lang.String instanceType)
Specify the instance type that you want your Dedicated hosts to be
configured for.
|
AllocateHostsRequest |
withQuantity(java.lang.Integer quantity)
The number of Dedicated hosts you want to allocate to your account with
these parameters.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.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
private java.lang.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.
private java.lang.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.
private java.lang.Integer quantity
The number of Dedicated hosts you want to allocate to your account with these parameters.
private java.lang.String availabilityZone
The Availability Zone for the Dedicated hosts.
public void setAutoPlacement(java.lang.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 java.lang.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(java.lang.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 setClientToken(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.Integer getQuantity()
The number of Dedicated hosts you want to allocate to your account with these parameters.
public AllocateHostsRequest withQuantity(java.lang.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 void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the Dedicated hosts.
availabilityZone
- The Availability Zone for the Dedicated hosts.public java.lang.String getAvailabilityZone()
The Availability Zone for the Dedicated hosts.
public AllocateHostsRequest withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the Dedicated hosts.
availabilityZone
- The Availability Zone for the Dedicated hosts.public Request<AllocateHostsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AllocateHostsRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AllocateHostsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()