@Generated(value="software.amazon.awssdk:codegen") public class AllocateHostsRequest extends EC2Request implements software.amazon.awssdk.utils.builder.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) |
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() |
String |
toString() |
requestOverrideConfigpublic 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
AutoPlacementpublic 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
AutoPlacementpublic 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()
toBuilder in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<AllocateHostsRequest.Builder,AllocateHostsRequest>toBuilder in class EC2Requestpublic static AllocateHostsRequest.Builder builder()
public static Class<? extends AllocateHostsRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2017. All rights reserved.