Class SpotPlacement
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.SpotPlacement
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SpotPlacement.Builder,SpotPlacement>
@Generated("software.amazon.awssdk:codegen") public final class SpotPlacement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SpotPlacement.Builder,SpotPlacement>
Describes Spot Instance placement.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSpotPlacement.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The Availability Zone.static SpotPlacement.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringgroupName()The name of the placement group.inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SpotPlacement.Builder>serializableBuilderClass()Tenancytenancy()The tenancy of the instance (if the instance is running in a VPC).StringtenancyAsString()The tenancy of the instance (if the instance is running in a VPC).SpotPlacement.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
availabilityZone
public final String availabilityZone()
The Availability Zone.
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
- Returns:
- The Availability Zone.
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
-
groupName
public final String groupName()
The name of the placement group.
- Returns:
- The name of the placement group.
-
tenancy
public final Tenancy 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:
Tenancy
-
tenancyAsString
public final String 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:
Tenancy
-
toBuilder
public SpotPlacement.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SpotPlacement.Builder,SpotPlacement>
-
builder
public static SpotPlacement.Builder builder()
-
serializableBuilderClass
public static Class<? extends SpotPlacement.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-