Class AllocateHostsRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<AllocateHostsRequest>
,Serializable
,Cloneable
Contains the parameters for AllocateHosts.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
This is enabled by default.The Availability Zone for the Dedicated hosts.Unique, case-sensitive identifier you provide to ensure idempotency of the request.This method is intended for internal use only.Specify the instance type that you want your Dedicated hosts to be configured for.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.toString()
Returns a string representation of this object; useful for testing and debugging.withAutoPlacement
(AutoPlacement autoPlacement) This is enabled by default.withAutoPlacement
(String autoPlacement) This is enabled by default.withAvailabilityZone
(String availabilityZone) The Availability Zone for the Dedicated hosts.withClientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure idempotency of the request.withInstanceType
(String instanceType) Specify the instance type that you want your Dedicated hosts to be configured for.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
-
Constructor Details
-
AllocateHostsRequest
public AllocateHostsRequest()
-
-
Method Details
-
setAutoPlacement
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:
-
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:
-
withAutoPlacement
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:
-
setAutoPlacement
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:
-
withAutoPlacement
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:
-
setClientToken
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
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
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
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
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
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
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
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
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
The Availability Zone for the Dedicated hosts.
- Parameters:
availabilityZone
- The Availability Zone for the Dedicated hosts.
-
getAvailabilityZone
The Availability Zone for the Dedicated hosts.
- Returns:
- The Availability Zone for the Dedicated hosts.
-
withAvailabilityZone
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-