@Generated(value="software.amazon.awssdk:codegen") public final class SpotPrice extends Object implements ToCopyableBuilder<SpotPrice.Builder,SpotPrice>
Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.
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) |
<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.
|
static Class<? extends SpotPrice.Builder> |
serializableBuilderClass() |
String |
spotPrice()
The maximum price (bid) 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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String availabilityZone()
The Availability Zone.
public InstanceType instanceType()
The instance type. Note that T2 and HS1 instance types are not supported.
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 String instanceTypeAsString()
The instance type. Note that T2 and HS1 instance types are not supported.
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 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 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 String spotPrice()
The maximum price (bid) that you are willing to pay for a Spot instance.
public Instant timestamp()
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
public SpotPrice.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SpotPrice.Builder,SpotPrice>
public static SpotPrice.Builder builder()
public static Class<? extends SpotPrice.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.