@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PriceSchedule extends Object implements Serializable, Cloneable
Describes the price for a Reserved Instance.
Constructor and Description |
---|
PriceSchedule() |
Modifier and Type | Method and Description |
---|---|
PriceSchedule |
clone() |
boolean |
equals(Object obj) |
Boolean |
getActive()
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
|
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() |
Boolean |
isActive()
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
|
void |
setActive(Boolean active)
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
|
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.
|
PriceSchedule |
withActive(Boolean active)
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
|
PriceSchedule |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency for transacting the Reserved Instance resale.
|
PriceSchedule |
withCurrencyCode(String currencyCode)
The currency for transacting the Reserved Instance resale.
|
PriceSchedule |
withPrice(Double price)
The fixed price for the term.
|
PriceSchedule |
withTerm(Long term)
The number of months remaining in the reservation.
|
public void setActive(Boolean active)
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
active
- The current price schedule, as determined by the term remaining for the Reserved Instance in the
listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
public Boolean getActive()
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
public PriceSchedule withActive(Boolean active)
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
active
- The current price schedule, as determined by the term remaining for the Reserved Instance in the
listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
public Boolean isActive()
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
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 PriceSchedule 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 PriceSchedule 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 PriceSchedule 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 PriceSchedule 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 PriceSchedule clone()