Class ReservedInstanceLimitPrice
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ReservedInstanceLimitPrice
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ReservedInstanceLimitPrice extends Object implements Serializable, Cloneable
Describes the limit price of a Reserved Instance offering.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservedInstanceLimitPrice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReservedInstanceLimitPriceclone()booleanequals(Object obj)DoublegetAmount()Used for Reserved Instance Marketplace offerings.StringgetCurrencyCode()The currency in which thelimitPriceamount is specified.inthashCode()voidsetAmount(Double amount)Used for Reserved Instance Marketplace offerings.voidsetCurrencyCode(CurrencyCodeValues currencyCode)The currency in which thelimitPriceamount is specified.voidsetCurrencyCode(String currencyCode)The currency in which thelimitPriceamount is specified.StringtoString()Returns a string representation of this object; useful for testing and debugging.ReservedInstanceLimitPricewithAmount(Double amount)Used for Reserved Instance Marketplace offerings.ReservedInstanceLimitPricewithCurrencyCode(CurrencyCodeValues currencyCode)The currency in which thelimitPriceamount is specified.ReservedInstanceLimitPricewithCurrencyCode(String currencyCode)The currency in which thelimitPriceamount is specified.
-
-
-
Method Detail
-
setAmount
public void setAmount(Double amount)
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
- Parameters:
amount- Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
-
getAmount
public Double getAmount()
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).
-
withAmount
public ReservedInstanceLimitPrice withAmount(Double amount)
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
- Parameters:
amount- Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCurrencyCode
public void setCurrencyCode(String currencyCode)
The currency in which the
limitPriceamount is specified. At this time, the only supported currency isUSD.- Parameters:
currencyCode- The currency in which thelimitPriceamount is specified. At this time, the only supported currency isUSD.- See Also:
CurrencyCodeValues
-
getCurrencyCode
public String getCurrencyCode()
The currency in which the
limitPriceamount is specified. At this time, the only supported currency isUSD.- Returns:
- The currency in which the
limitPriceamount is specified. At this time, the only supported currency isUSD. - See Also:
CurrencyCodeValues
-
withCurrencyCode
public ReservedInstanceLimitPrice withCurrencyCode(String currencyCode)
The currency in which the
limitPriceamount is specified. At this time, the only supported currency isUSD.- Parameters:
currencyCode- The currency in which thelimitPriceamount is specified. At this time, the only supported currency isUSD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCodeValues
-
setCurrencyCode
public void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
limitPriceamount is specified. At this time, the only supported currency isUSD.- Parameters:
currencyCode- The currency in which thelimitPriceamount is specified. At this time, the only supported currency isUSD.- See Also:
CurrencyCodeValues
-
withCurrencyCode
public ReservedInstanceLimitPrice withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
limitPriceamount is specified. At this time, the only supported currency isUSD.- Parameters:
currencyCode- The currency in which thelimitPriceamount is specified. At this time, the only supported currency isUSD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCodeValues
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedInstanceLimitPrice clone()
-
-