Interface Placement.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Placement.Builder,Placement>
,SdkBuilder<Placement.Builder,Placement>
,SdkPojo
- Enclosing class:
- Placement
public static interface Placement.Builder extends SdkPojo, CopyableBuilder<Placement.Builder,Placement>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Placement.Builder
affinity(String affinity)
The affinity setting for the instance on the Dedicated Host.Placement.Builder
availabilityZone(String availabilityZone)
The Availability Zone of the instance.Placement.Builder
groupId(String groupId)
The ID of the placement group that the instance is in.Placement.Builder
groupName(String groupName)
The name of the placement group that the instance is in.Placement.Builder
hostId(String hostId)
The ID of the Dedicated Host on which the instance resides.Placement.Builder
hostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.Placement.Builder
partitionNumber(Integer partitionNumber)
The number of the partition that the instance is in.Placement.Builder
spreadDomain(String spreadDomain)
Reserved for future use.Placement.Builder
tenancy(String tenancy)
The tenancy of the instance.Placement.Builder
tenancy(Tenancy tenancy)
The tenancy of the instance.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
availabilityZone
Placement.Builder availabilityZone(String availabilityZone)
The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
- Parameters:
availabilityZone
- The Availability Zone of the instance.If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affinity
Placement.Builder affinity(String affinity)
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
- Parameters:
affinity
- The affinity setting for the instance on the Dedicated Host.This parameter is not supported for CreateFleet or ImportInstance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupName
Placement.Builder groupName(String groupName)
The name of the placement group that the instance is in. If you specify
GroupName
, you can't specifyGroupId
.- Parameters:
groupName
- The name of the placement group that the instance is in. If you specifyGroupName
, you can't specifyGroupId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitionNumber
Placement.Builder partitionNumber(Integer partitionNumber)
The number of the partition that the instance is in. Valid only if the placement group strategy is set to
partition
.This parameter is not supported for CreateFleet.
- Parameters:
partitionNumber
- The number of the partition that the instance is in. Valid only if the placement group strategy is set topartition
.This parameter is not supported for CreateFleet.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostId
Placement.Builder hostId(String hostId)
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
- Parameters:
hostId
- The ID of the Dedicated Host on which the instance resides.This parameter is not supported for CreateFleet or ImportInstance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tenancy
Placement.Builder tenancy(String tenancy)
The tenancy of the instance. An instance with a tenancy of
dedicated
runs on single-tenant hardware.This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimited
CPU credit option.- Parameters:
tenancy
- The tenancy of the instance. An instance with a tenancy ofdedicated
runs on single-tenant hardware.This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimited
CPU credit option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Tenancy
,Tenancy
-
tenancy
Placement.Builder tenancy(Tenancy tenancy)
The tenancy of the instance. An instance with a tenancy of
dedicated
runs on single-tenant hardware.This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimited
CPU credit option.- Parameters:
tenancy
- The tenancy of the instance. An instance with a tenancy ofdedicated
runs on single-tenant hardware.This parameter is not supported for CreateFleet. The
host
tenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimited
CPU credit option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Tenancy
,Tenancy
-
spreadDomain
Placement.Builder spreadDomain(String spreadDomain)
Reserved for future use.
- Parameters:
spreadDomain
- Reserved for future use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostResourceGroupArn
Placement.Builder hostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.
If you specify this parameter, either omit the Tenancy parameter or set it to
host
.This parameter is not supported for CreateFleet.
- Parameters:
hostResourceGroupArn
- The ARN of the host resource group in which to launch the instances.If you specify this parameter, either omit the Tenancy parameter or set it to
host
.This parameter is not supported for CreateFleet.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupId
Placement.Builder groupId(String groupId)
The ID of the placement group that the instance is in. If you specify
GroupId
, you can't specifyGroupName
.- Parameters:
groupId
- The ID of the placement group that the instance is in. If you specifyGroupId
, you can't specifyGroupName
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-