@Generated(value="software.amazon.awssdk:codegen") public class AllocateHostsRequest extends EC2Request implements ToCopyableBuilder<AllocateHostsRequest.Builder,AllocateHostsRequest>
Contains the parameters for AllocateHosts.
Modifier and Type | Class and Description |
---|---|
static interface |
AllocateHostsRequest.Builder |
Modifier and Type | Method and Description |
---|---|
AutoPlacement |
autoPlacement()
This is enabled by default.
|
String |
autoPlacementString()
This is enabled by default.
|
String |
availabilityZone()
The Availability Zone for the Dedicated Hosts.
|
static AllocateHostsRequest.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
instanceType()
Specify the instance type that you want your Dedicated Hosts to be configured for.
|
Integer |
quantity()
The number of Dedicated Hosts you want to allocate to your account with these parameters.
|
static Class<? extends AllocateHostsRequest.Builder> |
serializableBuilderClass() |
AllocateHostsRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public 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
If the service returns an enum value that is not available in the current SDK version, autoPlacement
will return AutoPlacement.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
autoPlacementString()
.
Default: Enabled
AutoPlacement
public String autoPlacementString()
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
If the service returns an enum value that is not available in the current SDK version, autoPlacement
will return AutoPlacement.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
autoPlacementString()
.
Default: Enabled
AutoPlacement
public String availabilityZone()
The Availability Zone for the Dedicated Hosts.
public 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.
public 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.
public Integer quantity()
The number of Dedicated Hosts you want to allocate to your account with these parameters.
public AllocateHostsRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AllocateHostsRequest.Builder,AllocateHostsRequest>
toBuilder
in class EC2Request
public static AllocateHostsRequest.Builder builder()
public static Class<? extends AllocateHostsRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.