Class Placement
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Placement.Builder,Placement>
Describes the placement of an instance.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringaffinity()The affinity setting for the instance on the Dedicated Host.final StringThe Availability Zone of the instance.final StringThe ID of the Availability Zone of the instance.static Placement.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final StringgroupId()The ID of the placement group that the instance is in.final StringThe name of the placement group that the instance is in.final inthashCode()final StringhostId()The ID of the Dedicated Host on which the instance resides.final StringThe ARN of the host resource group in which to launch the instances.final IntegerThe number of the partition that the instance is in.static Class<? extends Placement.Builder>final StringReserved for future use.final Tenancytenancy()The tenancy of the instance.final StringThe tenancy of the instance.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
availabilityZoneId
The ID of the Availability Zone of the instance.
On input, you can specify
AvailabilityZoneorAvailabilityZoneId, but not both. If you specify neither one, Amazon EC2 automatically selects an Availability Zone for you.This parameter is not supported for CreateFleet.
- Returns:
- The ID of the Availability Zone of the instance.
On input, you can specify
AvailabilityZoneorAvailabilityZoneId, but not both. If you specify neither one, Amazon EC2 automatically selects an Availability Zone for you.This parameter is not supported for CreateFleet.
-
affinity
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
- Returns:
- The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
-
groupName
The name of the placement group that the instance is in.
On input, you can specify
GroupIdorGroupName, but not both.- Returns:
- The name of the placement group that the instance is in.
On input, you can specify
GroupIdorGroupName, but not both.
-
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.
- Returns:
- 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.
-
hostId
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
- Returns:
- The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
-
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.If the service returns an enum value that is not available in the current SDK version,
tenancywill returnTenancy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtenancyAsString().- Returns:
- 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. - See Also:
-
tenancyAsString
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.If the service returns an enum value that is not available in the current SDK version,
tenancywill returnTenancy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtenancyAsString().- Returns:
- 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. - See Also:
-
spreadDomain
Reserved for future use.
- Returns:
- Reserved for future use.
-
hostResourceGroupArn
The ARN of the host resource group in which to launch the instances.
On input, if you specify this parameter, either omit the Tenancy parameter or set it to
host.This parameter is not supported for CreateFleet.
- Returns:
- The ARN of the host resource group in which to launch the instances.
On input, if you specify this parameter, either omit the Tenancy parameter or set it to
host.This parameter is not supported for CreateFleet.
-
groupId
The ID of the placement group that the instance is in.
On input, you can specify
GroupIdorGroupName, but not both.- Returns:
- The ID of the placement group that the instance is in.
On input, you can specify
GroupIdorGroupName, but not both.
-
availabilityZone
The Availability Zone of the instance.
On input, you can specify
AvailabilityZoneorAvailabilityZoneId, but not both. If you specify neither one, Amazon EC2 automatically selects an Availability Zone for you.This parameter is not supported for CreateFleet.
- Returns:
- The Availability Zone of the instance.
On input, you can specify
AvailabilityZoneorAvailabilityZoneId, but not both. If you specify neither one, Amazon EC2 automatically selects an Availability Zone for you.This parameter is not supported for CreateFleet.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<Placement.Builder,Placement>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-