public static interface ModifyInstancePlacementRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyInstancePlacementRequest.Builder,ModifyInstancePlacementRequest>
Modifier and Type | Method and Description |
---|---|
ModifyInstancePlacementRequest.Builder |
affinity(Affinity affinity)
The affinity setting for the instance.
|
ModifyInstancePlacementRequest.Builder |
affinity(String affinity)
The affinity setting for the instance.
|
ModifyInstancePlacementRequest.Builder |
groupName(String groupName)
The name of the placement group in which to place the instance.
|
ModifyInstancePlacementRequest.Builder |
hostId(String hostId)
The ID of the Dedicated Host with which to associate the instance.
|
ModifyInstancePlacementRequest.Builder |
instanceId(String instanceId)
The ID of the instance that you are modifying.
|
ModifyInstancePlacementRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
ModifyInstancePlacementRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
ModifyInstancePlacementRequest.Builder |
tenancy(HostTenancy tenancy)
The tenancy for the instance.
|
ModifyInstancePlacementRequest.Builder |
tenancy(String tenancy)
The tenancy for the instance.
|
build
overrideConfiguration
copy
applyMutation, build
ModifyInstancePlacementRequest.Builder affinity(String affinity)
The affinity setting for the instance.
ModifyInstancePlacementRequest.Builder affinity(Affinity affinity)
The affinity setting for the instance.
ModifyInstancePlacementRequest.Builder groupName(String groupName)
The name of the placement group in which to place the instance. For spread placement groups, the instance
must have a tenancy of default
. For cluster placement groups, the instance must have a tenancy
of default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
groupName
- The name of the placement group in which to place the instance. For spread placement groups, the
instance must have a tenancy of default
. For cluster placement groups, the instance must
have a tenancy of default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
ModifyInstancePlacementRequest.Builder hostId(String hostId)
The ID of the Dedicated Host with which to associate the instance.
hostId
- The ID of the Dedicated Host with which to associate the instance.ModifyInstancePlacementRequest.Builder instanceId(String instanceId)
The ID of the instance that you are modifying.
instanceId
- The ID of the instance that you are modifying.ModifyInstancePlacementRequest.Builder tenancy(String tenancy)
The tenancy for the instance.
tenancy
- The tenancy for the instance.HostTenancy
,
HostTenancy
ModifyInstancePlacementRequest.Builder tenancy(HostTenancy tenancy)
The tenancy for the instance.
tenancy
- The tenancy for the instance.HostTenancy
,
HostTenancy
ModifyInstancePlacementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.ModifyInstancePlacementRequest.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.