@Generated(value="software.amazon.awssdk:codegen") public final class SpotPlacement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SpotPlacement.Builder,SpotPlacement>
Describes Spot Instance placement.
Modifier and Type | Class and Description |
---|---|
static interface |
SpotPlacement.Builder |
Modifier and Type | Method and Description |
---|---|
String |
availabilityZone()
The Availability Zone.
|
static SpotPlacement.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
groupName()
The name of the placement group.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SpotPlacement.Builder> |
serializableBuilderClass() |
Tenancy |
tenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
String |
tenancyAsString()
The tenancy of the instance (if the instance is running in a VPC).
|
SpotPlacement.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
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".
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
public final String groupName()
The name of the placement group.
public final Tenancy tenancy()
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicated
runs on single-tenant hardware. The host
tenancy is not supported for Spot
Instances.
If the service returns an enum value that is not available in the current SDK version, tenancy
will
return Tenancy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
tenancyAsString()
.
dedicated
runs on single-tenant hardware. The host
tenancy is not supported for
Spot Instances.Tenancy
public final String tenancyAsString()
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicated
runs on single-tenant hardware. The host
tenancy is not supported for Spot
Instances.
If the service returns an enum value that is not available in the current SDK version, tenancy
will
return Tenancy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
tenancyAsString()
.
dedicated
runs on single-tenant hardware. The host
tenancy is not supported for
Spot Instances.Tenancy
public SpotPlacement.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<SpotPlacement.Builder,SpotPlacement>
public static SpotPlacement.Builder builder()
public static Class<? extends SpotPlacement.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.