public class PriceScheduleSpecification
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the price for a Reserved Instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
currencyCode
The currency for transacting the Reserved Instance resale.
|
private java.lang.Double |
price
The fixed price for the term.
|
private java.lang.Long |
term
The number of months remaining in the reservation.
|
Constructor and Description |
---|
PriceScheduleSpecification() |
Modifier and Type | Method and Description |
---|---|
PriceScheduleSpecification |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCurrencyCode()
The currency for transacting the Reserved Instance resale.
|
java.lang.Double |
getPrice()
The fixed price for the term.
|
java.lang.Long |
getTerm()
The number of months remaining in the reservation.
|
int |
hashCode() |
void |
setCurrencyCode(CurrencyCodeValues currencyCode)
The currency for transacting the Reserved Instance resale.
|
void |
setCurrencyCode(java.lang.String currencyCode)
The currency for transacting the Reserved Instance resale.
|
void |
setPrice(java.lang.Double price)
The fixed price for the term.
|
void |
setTerm(java.lang.Long term)
The number of months remaining in the reservation.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PriceScheduleSpecification |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency for transacting the Reserved Instance resale.
|
PriceScheduleSpecification |
withCurrencyCode(java.lang.String currencyCode)
The currency for transacting the Reserved Instance resale.
|
PriceScheduleSpecification |
withPrice(java.lang.Double price)
The fixed price for the term.
|
PriceScheduleSpecification |
withTerm(java.lang.Long term)
The number of months remaining in the reservation.
|
private java.lang.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.
private java.lang.Double price
The fixed price for the term.
private java.lang.String currencyCode
The currency for transacting the Reserved Instance resale. At this time,
the only supported currency is USD
.
public void setTerm(java.lang.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.
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 java.lang.Long getTerm()
The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
public PriceScheduleSpecification withTerm(java.lang.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.
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 void setPrice(java.lang.Double price)
The fixed price for the term.
price
- The fixed price for the term.public java.lang.Double getPrice()
The fixed price for the term.
public PriceScheduleSpecification withPrice(java.lang.Double price)
The fixed price for the term.
price
- The fixed price for the term.public void setCurrencyCode(java.lang.String currencyCode)
The currency for transacting the Reserved Instance resale. At this time,
the only supported currency is USD
.
currencyCode
- The currency for transacting the Reserved Instance resale. At this
time, the only supported currency is USD
.CurrencyCodeValues
public java.lang.String getCurrencyCode()
The currency for transacting the Reserved Instance resale. At this time,
the only supported currency is USD
.
USD
.CurrencyCodeValues
public PriceScheduleSpecification withCurrencyCode(java.lang.String currencyCode)
The currency for transacting the Reserved Instance resale. At this time,
the only supported currency is USD
.
currencyCode
- The currency for transacting the Reserved Instance resale. At this
time, the only supported currency is USD
.CurrencyCodeValues
public void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency for transacting the Reserved Instance resale. At this time,
the only supported currency is USD
.
currencyCode
- The currency for transacting the Reserved Instance resale. At this
time, the only supported currency is USD
.CurrencyCodeValues
public PriceScheduleSpecification withCurrencyCode(CurrencyCodeValues currencyCode)
The currency for transacting the Reserved Instance resale. At this time,
the only supported currency is USD
.
currencyCode
- The currency for transacting the Reserved Instance resale. 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 PriceScheduleSpecification clone()
clone
in class java.lang.Object