Class ReservedInstanceLimitPrice
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.ReservedInstanceLimitPrice
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ReservedInstanceLimitPrice.Builder,ReservedInstanceLimitPrice>
@Generated("software.amazon.awssdk:codegen") public final class ReservedInstanceLimitPrice extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReservedInstanceLimitPrice.Builder,ReservedInstanceLimitPrice>
Describes the limit price of a Reserved Instance offering.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReservedInstanceLimitPrice.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
amount()
Used for Reserved Instance Marketplace offerings.static ReservedInstanceLimitPrice.Builder
builder()
CurrencyCodeValues
currencyCode()
The currency in which thelimitPrice
amount is specified.String
currencyCodeAsString()
The currency in which thelimitPrice
amount is specified.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends ReservedInstanceLimitPrice.Builder>
serializableBuilderClass()
ReservedInstanceLimitPrice.Builder
toBuilder()
String
toString()
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
-
amount
public final Double amount()
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
- Returns:
- Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
-
currencyCode
public final CurrencyCodeValues currencyCode()
The currency in which the
limitPrice
amount is specified. At this time, the only supported currency isUSD
.If the service returns an enum value that is not available in the current SDK version,
currencyCode
will returnCurrencyCodeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrencyCodeAsString()
.- Returns:
- The currency in which the
limitPrice
amount is specified. At this time, the only supported currency isUSD
. - See Also:
CurrencyCodeValues
-
currencyCodeAsString
public final String currencyCodeAsString()
The currency in which the
limitPrice
amount is specified. At this time, the only supported currency isUSD
.If the service returns an enum value that is not available in the current SDK version,
currencyCode
will returnCurrencyCodeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrencyCodeAsString()
.- Returns:
- The currency in which the
limitPrice
amount is specified. At this time, the only supported currency isUSD
. - See Also:
CurrencyCodeValues
-
toBuilder
public ReservedInstanceLimitPrice.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ReservedInstanceLimitPrice.Builder,ReservedInstanceLimitPrice>
-
builder
public static ReservedInstanceLimitPrice.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReservedInstanceLimitPrice.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-