public class AllocateHostsRequest extends AmazonWebServiceRequest implements java.io.Serializable
AllocateHosts operation
.
Allocates a Dedicated host to your account. At minimum you need to specify the instance size type, Availability Zone, and quantity of hosts you want to allocate.
Constructor and Description |
---|
AllocateHostsRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getAutoPlacement()
Default: Enabled
Constraints:
Allowed Values: on, off
Default: Enabled
AutoPlacement
public void setAutoPlacement(java.lang.String autoPlacement)
Default: Enabled
Constraints:
Allowed Values: on, off
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(java.lang.String autoPlacement)
Default: Enabled
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: on, off
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)
Default: Enabled
Constraints:
Allowed Values: on, off
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)
Default: Enabled
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: on, off
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 getClientToken()
public void setClientToken(java.lang.String clientToken)
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 AllocateHostsRequest withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
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 getInstanceType()
public void setInstanceType(java.lang.String instanceType)
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 AllocateHostsRequest withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
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.Integer getQuantity()
public void setQuantity(java.lang.Integer quantity)
quantity
- The number of Dedicated hosts you want to allocate to your account
with these parameters.public AllocateHostsRequest withQuantity(java.lang.Integer quantity)
Returns a reference to this object so that method calls can be chained together.
quantity
- The number of Dedicated hosts you want to allocate to your account
with these parameters.public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone for the Dedicated hosts.public AllocateHostsRequest withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone for the Dedicated hosts.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.