@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PriceScheduleSpecification extends Object implements Serializable, Cloneable
Describes the price for a Reserved Instance.
Constructor and Description |
---|
PriceScheduleSpecification() |
Modifier and Type | Method and Description |
---|---|
PriceScheduleSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getCurrencyCode()
The currency for transacting the Reserved Instance resale.
|
Double |
getPrice()
The fixed price for the term.
|
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(String currencyCode)
The currency for transacting the Reserved Instance resale.
|
void |
setPrice(Double price)
The fixed price for the term.
|
void |
setTerm(Long term)
The number of months remaining in the reservation.
|
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(String currencyCode)
The currency for transacting the Reserved Instance resale.
|
PriceScheduleSpecification |
withPrice(Double price)
The fixed price for the term.
|
PriceScheduleSpecification |
withTerm(Long term)
The number of months remaining in the reservation.
|
public void setCurrencyCode(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 String getCurrencyCode()
The currency for transacting the Reserved Instance resale. At this time, the only supported currency is
USD
.
USD
.CurrencyCodeValues
public PriceScheduleSpecification withCurrencyCode(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 void setPrice(Double price)
The fixed price for the term.
price
- The fixed price for the term.public Double getPrice()
The fixed price for the term.
public PriceScheduleSpecification withPrice(Double price)
The fixed price for the term.
price
- The fixed price for the term.public void setTerm(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 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(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 String toString()
toString
in class Object
Object.toString()
public PriceScheduleSpecification clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.