@Generated(value="software.amazon.awssdk:codegen") public final class SpotPrice extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SpotPrice.Builder,SpotPrice>
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
Modifier and Type | Class and Description |
---|---|
static interface |
SpotPrice.Builder |
Modifier and Type | Method and Description |
---|---|
String |
availabilityZone()
The Availability Zone.
|
static SpotPrice.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
InstanceType |
instanceType()
The instance type.
|
String |
instanceTypeAsString()
The instance type.
|
RIProductDescription |
productDescription()
A general description of the AMI.
|
String |
productDescriptionAsString()
A general description of the AMI.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SpotPrice.Builder> |
serializableBuilderClass() |
String |
spotPrice()
The maximum price per unit hour that you are willing to pay for a Spot Instance.
|
Instant |
timestamp()
The date and time the request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotPrice.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.
public final InstanceType instanceType()
The instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
InstanceType
public final String instanceTypeAsString()
The instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
InstanceType
public final RIProductDescription productDescription()
A general description of the AMI.
If the service returns an enum value that is not available in the current SDK version,
productDescription
will return RIProductDescription.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from productDescriptionAsString()
.
RIProductDescription
public final String productDescriptionAsString()
A general description of the AMI.
If the service returns an enum value that is not available in the current SDK version,
productDescription
will return RIProductDescription.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from productDescriptionAsString()
.
RIProductDescription
public final String spotPrice()
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
public final Instant timestamp()
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
public SpotPrice.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<SpotPrice.Builder,SpotPrice>
public static SpotPrice.Builder builder()
public static Class<? extends SpotPrice.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.