Class PriceScheduleSpecification
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.PriceScheduleSpecification
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PriceScheduleSpecification.Builder,PriceScheduleSpecification>
@Generated("software.amazon.awssdk:codegen") public final class PriceScheduleSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PriceScheduleSpecification.Builder,PriceScheduleSpecification>
Describes the price for a Reserved Instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePriceScheduleSpecification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PriceScheduleSpecification.Builderbuilder()CurrencyCodeValuescurrencyCode()The currency for transacting the Reserved Instance resale.StringcurrencyCodeAsString()The currency for transacting the Reserved Instance resale.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Doubleprice()The fixed price for the term.List<SdkField<?>>sdkFields()static Class<? extends PriceScheduleSpecification.Builder>serializableBuilderClass()Longterm()The number of months remaining in the reservation.PriceScheduleSpecification.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
-
currencyCode
public final 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,
currencyCodewill returnCurrencyCodeValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyCodeAsString().- Returns:
- The currency for transacting the Reserved Instance resale. At this time, the only supported currency is
USD. - See Also:
CurrencyCodeValues
-
currencyCodeAsString
public final 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,
currencyCodewill returnCurrencyCodeValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyCodeAsString().- Returns:
- The currency for transacting the Reserved Instance resale. At this time, the only supported currency is
USD. - See Also:
CurrencyCodeValues
-
price
public final Double price()
The fixed price for the term.
- Returns:
- The fixed price for the term.
-
term
public final 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.
- Returns:
- The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
-
toBuilder
public PriceScheduleSpecification.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PriceScheduleSpecification.Builder,PriceScheduleSpecification>
-
builder
public static PriceScheduleSpecification.Builder builder()
-
serializableBuilderClass
public static Class<? extends PriceScheduleSpecification.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.
-
-