Class AllocateHostsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.AllocateHostsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<AllocateHostsRequest>
,Serializable
,Cloneable
public class AllocateHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AllocateHostsRequest>
Contains the parameters for AllocateHosts.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description AllocateHostsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocateHostsRequest
clone()
Creates a shallow clone of this request.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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setAutoPlacement
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
- Parameters:
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
- See Also:
AutoPlacement
-
getAutoPlacement
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
- Returns:
- 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
- See Also:
AutoPlacement
-
withAutoPlacement
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
- Parameters:
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
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoPlacement
-
setAutoPlacement
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
- Parameters:
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
- See Also:
AutoPlacement
-
withAutoPlacement
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
- Parameters:
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
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoPlacement
-
setClientToken
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.
- Parameters:
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.
-
getClientToken
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.
- Returns:
- 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.
-
withClientToken
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
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.
- Parameters:
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.
-
getInstanceType
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.
- Returns:
- 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.
-
withInstanceType
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setQuantity
public void setQuantity(Integer quantity)
The number of Dedicated hosts you want to allocate to your account with these parameters.
- Parameters:
quantity
- The number of Dedicated hosts you want to allocate to your account with these parameters.
-
getQuantity
public Integer getQuantity()
The number of Dedicated hosts you want to allocate to your account with these parameters.
- Returns:
- The number of Dedicated hosts you want to allocate to your account with these parameters.
-
withQuantity
public AllocateHostsRequest withQuantity(Integer quantity)
The number of Dedicated hosts you want to allocate to your account with these parameters.
- Parameters:
quantity
- The number of Dedicated hosts you want to allocate to your account with these parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The Availability Zone for the Dedicated hosts.
- Parameters:
availabilityZone
- The Availability Zone for the Dedicated hosts.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone for the Dedicated hosts.
- Returns:
- The Availability Zone for the Dedicated hosts.
-
withAvailabilityZone
public AllocateHostsRequest withAvailabilityZone(String availabilityZone)
The Availability Zone for the Dedicated hosts.
- Parameters:
availabilityZone
- The Availability Zone for the Dedicated hosts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<AllocateHostsRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<AllocateHostsRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AllocateHostsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-