Class SpotPlacement
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SpotPlacement.Builder,SpotPlacement>
Describes Spot Instance placement.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Availability Zone.final StringThe ID of the Availability Zone.static SpotPlacement.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final StringThe name of the placement group.final inthashCode()static Class<? extends SpotPlacement.Builder>final Tenancytenancy()The tenancy of the instance (if the instance is running in a VPC).final StringThe tenancy of the instance (if the instance is running in a VPC).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
-
availabilityZone
The Availability Zone. For example,
us-east-2a.[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "
us-east-2a,us-east-2b".Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.- Returns:
- The Availability Zone. For example,
us-east-2a.[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "
us-east-2a,us-east-2b".Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.
-
groupName
The name of the placement group.
- Returns:
- The name of the placement group.
-
tenancy
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for Spot Instances.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 (if the instance is running in a VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for Spot Instances. - See Also:
-
tenancyAsString
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for Spot Instances.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 (if the instance is running in a VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for Spot Instances. - See Also:
-
availabilityZoneId
The ID of the Availability Zone. For example,
use2-az1.[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "
use2-az1,use2-bz1".Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.- Returns:
- The ID of the Availability Zone. For example,
use2-az1.[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "
use2-az1,use2-bz1".Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<SpotPlacement.Builder,SpotPlacement>
-
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
-