public static interface ModifyInstancePlacementRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyInstancePlacementRequest.Builder,ModifyInstancePlacementRequest>
build
overrideConfiguration
equalsBySdkFields, sdkFields
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 and partition 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 and partition 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.
For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of host
. You
can't change the tenancy from host
to dedicated
or default
. Attempting
to make one of these unsupported tenancy changes results in an InvalidRequest
error code.
tenancy
- The tenancy for the instance.
For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of
host
. You can't change the tenancy from host
to dedicated
or
default
. Attempting to make one of these unsupported tenancy changes results in an
InvalidRequest
error code.
HostTenancy
,
HostTenancy
ModifyInstancePlacementRequest.Builder tenancy(HostTenancy tenancy)
The tenancy for the instance.
For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of host
. You
can't change the tenancy from host
to dedicated
or default
. Attempting
to make one of these unsupported tenancy changes results in an InvalidRequest
error code.
tenancy
- The tenancy for the instance.
For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of
host
. You can't change the tenancy from host
to dedicated
or
default
. Attempting to make one of these unsupported tenancy changes results in an
InvalidRequest
error code.
HostTenancy
,
HostTenancy
ModifyInstancePlacementRequest.Builder partitionNumber(Integer partitionNumber)
The number of the partition in which to place the instance. Valid only if the placement group strategy is set
to partition
.
partitionNumber
- The number of the partition in which to place the instance. Valid only if the placement group strategy
is set to partition
.ModifyInstancePlacementRequest.Builder hostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to place the instance. The instance must have a tenancy of
host
to specify this parameter.
hostResourceGroupArn
- The ARN of the host resource group in which to place the instance. The instance must have a tenancy of
host
to specify this parameter.ModifyInstancePlacementRequest.Builder groupId(String groupId)
The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
groupId
- The Group Id of a placement group. You must specify the Placement Group Group Id to launch an
instance in a shared placement group.ModifyInstancePlacementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
ModifyInstancePlacementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2023. All rights reserved.