public static interface AllocateHostsRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<AllocateHostsRequest.Builder,AllocateHostsRequest>
Modifier and Type | Method and Description |
---|---|
AllocateHostsRequest.Builder |
autoPlacement(AutoPlacement autoPlacement)
This is enabled by default.
|
AllocateHostsRequest.Builder |
autoPlacement(String autoPlacement)
This is enabled by default.
|
AllocateHostsRequest.Builder |
availabilityZone(String availabilityZone)
The Availability Zone for the Dedicated Hosts.
|
AllocateHostsRequest.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
AllocateHostsRequest.Builder |
instanceType(String instanceType)
Specify the instance type for which to configure your Dedicated Hosts.
|
AllocateHostsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
AllocateHostsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
AllocateHostsRequest.Builder |
quantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters.
|
AllocateHostsRequest.Builder |
tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
|
AllocateHostsRequest.Builder |
tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the Dedicated Host during creation.
|
AllocateHostsRequest.Builder |
tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host during creation.
|
build
overrideConfiguration
copy
applyMutation, build
AllocateHostsRequest.Builder autoPlacement(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
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
,
AutoPlacement
AllocateHostsRequest.Builder autoPlacement(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
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
,
AutoPlacement
AllocateHostsRequest.Builder availabilityZone(String availabilityZone)
The Availability Zone for the Dedicated Hosts.
availabilityZone
- The Availability Zone for the Dedicated Hosts.AllocateHostsRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency in the Amazon Elastic Compute Cloud User Guide.AllocateHostsRequest.Builder instanceType(String instanceType)
Specify the instance type for which to configure your Dedicated Hosts. When you specify the instance type, that is the only instance type that you can launch onto that host.
instanceType
- Specify the instance type for which to configure your Dedicated Hosts. When you specify the instance
type, that is the only instance type that you can launch onto that host.AllocateHostsRequest.Builder quantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters.
quantity
- The number of Dedicated Hosts to allocate to your account with these parameters.AllocateHostsRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
tagSpecifications
- The tags to apply to the Dedicated Host during creation.AllocateHostsRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host during creation.
tagSpecifications
- The tags to apply to the Dedicated Host during creation.AllocateHostsRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the Dedicated Host during creation.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #tagSpecifications(List)
.tagSpecifications
- a consumer that will call methods on List.Builder
#tagSpecifications(List)
AllocateHostsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.AllocateHostsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.