@Generated(value="software.amazon.awssdk:codegen") public final class PriceSchedule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PriceSchedule.Builder,PriceSchedule>
Describes the price for a Reserved Instance.
Modifier and Type | Class and Description |
---|---|
static interface |
PriceSchedule.Builder |
Modifier and Type | Method and Description |
---|---|
Boolean |
active()
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
|
static PriceSchedule.Builder |
builder() |
CurrencyCodeValues |
currencyCode()
The currency for transacting the Reserved Instance resale.
|
String |
currencyCodeAsString()
The currency for transacting the Reserved Instance resale.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Double |
price()
The fixed price for the term.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PriceSchedule.Builder> |
serializableBuilderClass() |
Long |
term()
The number of months remaining in the reservation.
|
PriceSchedule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public Boolean active()
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
public CurrencyCodeValues currencyCode()
The currency for transacting the Reserved Instance resale. At this time, the only supported currency is
USD
.
If the service returns an enum value that is not available in the current SDK version, currencyCode
will
return CurrencyCodeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
currencyCodeAsString()
.
USD
.CurrencyCodeValues
public String currencyCodeAsString()
The currency for transacting the Reserved Instance resale. At this time, the only supported currency is
USD
.
If the service returns an enum value that is not available in the current SDK version, currencyCode
will
return CurrencyCodeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
currencyCodeAsString()
.
USD
.CurrencyCodeValues
public Double price()
The fixed price for the term.
public Long term()
The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
public PriceSchedule.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<PriceSchedule.Builder,PriceSchedule>
public static PriceSchedule.Builder builder()
public static Class<? extends PriceSchedule.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.