Interface Placement.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Placement.Builder,Placement>,SdkBuilder<Placement.Builder,Placement>,SdkPojo
- Enclosing class:
- Placement
@Mutable @NotThreadSafe 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.Builderaffinity(String affinity)The affinity setting for the instance on the Dedicated Host.Placement.BuilderavailabilityZone(String availabilityZone)The Availability Zone of the instance.Placement.BuildergroupId(String groupId)The ID of the placement group that the instance is in.Placement.BuildergroupName(String groupName)The name of the placement group that the instance is in.Placement.BuilderhostId(String hostId)The ID of the Dedicated Host on which the instance resides.Placement.BuilderhostResourceGroupArn(String hostResourceGroupArn)The ARN of the host resource group in which to launch the instances.Placement.BuilderpartitionNumber(Integer partitionNumber)The number of the partition that the instance is in.Placement.BuilderspreadDomain(String spreadDomain)Reserved for future use.Placement.Buildertenancy(String tenancy)The tenancy of the instance.Placement.Buildertenancy(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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
dedicatedruns on single-tenant hardware.This parameter is not supported for CreateFleet. The
hosttenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimitedCPU credit option.- Parameters:
tenancy- The tenancy of the instance. An instance with a tenancy ofdedicatedruns on single-tenant hardware.This parameter is not supported for CreateFleet. The
hosttenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimitedCPU 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
dedicatedruns on single-tenant hardware.This parameter is not supported for CreateFleet. The
hosttenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimitedCPU credit option.- Parameters:
tenancy- The tenancy of the instance. An instance with a tenancy ofdedicatedruns on single-tenant hardware.This parameter is not supported for CreateFleet. The
hosttenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimitedCPU 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.
-
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.
-
-