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 AllocateHostsRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAutoPlacement()This is enabled by default.StringgetAvailabilityZone()The Availability Zone for the Dedicated hosts.StringgetClientToken()Unique, case-sensitive identifier you provide to ensure idempotency of the request.Request<AllocateHostsRequest>getDryRunRequest()This method is intended for internal use only.StringgetInstanceType()Specify the instance type that you want your Dedicated hosts to be configured for.IntegergetQuantity()The number of Dedicated hosts you want to allocate to your account with these parameters.inthashCode()voidsetAutoPlacement(AutoPlacement autoPlacement)This is enabled by default.voidsetAutoPlacement(String autoPlacement)This is enabled by default.voidsetAvailabilityZone(String availabilityZone)The Availability Zone for the Dedicated hosts.voidsetClientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure idempotency of the request.voidsetInstanceType(String instanceType)Specify the instance type that you want your Dedicated hosts to be configured for.voidsetQuantity(Integer quantity)The number of Dedicated hosts you want to allocate to your account with these parameters.StringtoString()Returns a string representation of this object; useful for testing and debugging.AllocateHostsRequestwithAutoPlacement(AutoPlacement autoPlacement)This is enabled by default.AllocateHostsRequestwithAutoPlacement(String autoPlacement)This is enabled by default.AllocateHostsRequestwithAvailabilityZone(String availabilityZone)The Availability Zone for the Dedicated hosts.AllocateHostsRequestwithClientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure idempotency of the request.AllocateHostsRequestwithInstanceType(String instanceType)Specify the instance type that you want your Dedicated hosts to be configured for.AllocateHostsRequestwithQuantity(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:
getDryRunRequestin interfaceDryRunSupportedRequest<AllocateHostsRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AllocateHostsRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-