public class ReservedInstanceLimitPrice
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the limit price of a Reserved Instance offering.
Modifier and Type | Field and Description |
---|---|
private java.lang.Double |
amount
Used for Reserved Instance Marketplace offerings.
|
private java.lang.String |
currencyCode
The currency in which the
limitPrice amount is specified. |
Constructor and Description |
---|
ReservedInstanceLimitPrice() |
Modifier and Type | Method and Description |
---|---|
ReservedInstanceLimitPrice |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getAmount()
Used for Reserved Instance Marketplace offerings.
|
java.lang.String |
getCurrencyCode()
The currency in which the
limitPrice amount is specified. |
int |
hashCode() |
void |
setAmount(java.lang.Double amount)
Used for Reserved Instance Marketplace offerings.
|
void |
setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
limitPrice amount is specified. |
void |
setCurrencyCode(java.lang.String currencyCode)
The currency in which the
limitPrice amount is specified. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedInstanceLimitPrice |
withAmount(java.lang.Double amount)
Used for Reserved Instance Marketplace offerings.
|
ReservedInstanceLimitPrice |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
limitPrice amount is specified. |
ReservedInstanceLimitPrice |
withCurrencyCode(java.lang.String currencyCode)
The currency in which the
limitPrice amount is specified. |
private java.lang.Double amount
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
private java.lang.String currencyCode
The currency in which the limitPrice
amount is specified. At
this time, the only supported currency is USD
.
public void setAmount(java.lang.Double amount)
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
amount
- Used for Reserved Instance Marketplace offerings. Specifies the
limit price on the total order (instanceCount * price).public java.lang.Double getAmount()
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
public ReservedInstanceLimitPrice withAmount(java.lang.Double amount)
Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
amount
- Used for Reserved Instance Marketplace offerings. Specifies the
limit price on the total order (instanceCount * price).public void setCurrencyCode(java.lang.String currencyCode)
The currency in which the limitPrice
amount is specified. At
this time, the only supported currency is USD
.
currencyCode
- The currency in which the limitPrice
amount is
specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public java.lang.String getCurrencyCode()
The currency in which the limitPrice
amount is specified. At
this time, the only supported currency is USD
.
limitPrice
amount is
specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public ReservedInstanceLimitPrice withCurrencyCode(java.lang.String currencyCode)
The currency in which the limitPrice
amount is specified. At
this time, the only supported currency is USD
.
currencyCode
- The currency in which the limitPrice
amount is
specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the limitPrice
amount is specified. At
this time, the only supported currency is USD
.
currencyCode
- The currency in which the limitPrice
amount is
specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public ReservedInstanceLimitPrice withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the limitPrice
amount is specified. At
this time, the only supported currency is USD
.
currencyCode
- The currency in which the limitPrice
amount is
specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReservedInstanceLimitPrice clone()
clone
in class java.lang.Object