public class GetHostReservationPurchasePreviewResult extends Object implements Serializable, Cloneable
Constructor and Description |
---|
GetHostReservationPurchasePreviewResult() |
Modifier and Type | Method and Description |
---|---|
GetHostReservationPurchasePreviewResult |
clone() |
boolean |
equals(Object obj) |
String |
getCurrencyCode()
The currency in which the
totalUpfrontPrice and
totalHourlyPrice amounts are specified. |
List<Purchase> |
getPurchase()
The purchase information of the Dedicated Host Reservation and the
Dedicated Hosts associated with it.
|
String |
getTotalHourlyPrice()
The potential total hourly price of the reservation per hour.
|
String |
getTotalUpfrontPrice()
The potential total upfront price.
|
int |
hashCode() |
void |
setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
totalUpfrontPrice and
totalHourlyPrice amounts are specified. |
void |
setCurrencyCode(String currencyCode)
The currency in which the
totalUpfrontPrice and
totalHourlyPrice amounts are specified. |
void |
setPurchase(Collection<Purchase> purchase)
The purchase information of the Dedicated Host Reservation and the
Dedicated Hosts associated with it.
|
void |
setTotalHourlyPrice(String totalHourlyPrice)
The potential total hourly price of the reservation per hour.
|
void |
setTotalUpfrontPrice(String totalUpfrontPrice)
The potential total upfront price.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetHostReservationPurchasePreviewResult |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
totalUpfrontPrice and
totalHourlyPrice amounts are specified. |
GetHostReservationPurchasePreviewResult |
withCurrencyCode(String currencyCode)
The currency in which the
totalUpfrontPrice and
totalHourlyPrice amounts are specified. |
GetHostReservationPurchasePreviewResult |
withPurchase(Collection<Purchase> purchase)
The purchase information of the Dedicated Host Reservation and the
Dedicated Hosts associated with it.
|
GetHostReservationPurchasePreviewResult |
withPurchase(Purchase... purchase)
The purchase information of the Dedicated Host Reservation and the
Dedicated Hosts associated with it.
|
GetHostReservationPurchasePreviewResult |
withTotalHourlyPrice(String totalHourlyPrice)
The potential total hourly price of the reservation per hour.
|
GetHostReservationPurchasePreviewResult |
withTotalUpfrontPrice(String totalUpfrontPrice)
The potential total upfront price.
|
public GetHostReservationPurchasePreviewResult()
public List<Purchase> getPurchase()
The purchase information of the Dedicated Host Reservation and the Dedicated Hosts associated with it.
public void setPurchase(Collection<Purchase> purchase)
The purchase information of the Dedicated Host Reservation and the Dedicated Hosts associated with it.
purchase
- The purchase information of the Dedicated Host Reservation and the
Dedicated Hosts associated with it.public GetHostReservationPurchasePreviewResult withPurchase(Purchase... purchase)
The purchase information of the Dedicated Host Reservation and the Dedicated Hosts associated with it.
NOTE: This method appends the values to the existing list (if
any). Use setPurchase(java.util.Collection)
or
withPurchase(java.util.Collection)
if you want to override the
existing values.
purchase
- The purchase information of the Dedicated Host Reservation and the
Dedicated Hosts associated with it.public GetHostReservationPurchasePreviewResult withPurchase(Collection<Purchase> purchase)
The purchase information of the Dedicated Host Reservation and the Dedicated Hosts associated with it.
purchase
- The purchase information of the Dedicated Host Reservation and the
Dedicated Hosts associated with it.public void setTotalUpfrontPrice(String totalUpfrontPrice)
The potential total upfront price. This is billed immediately.
totalUpfrontPrice
- The potential total upfront price. This is billed immediately.public String getTotalUpfrontPrice()
The potential total upfront price. This is billed immediately.
public GetHostReservationPurchasePreviewResult withTotalUpfrontPrice(String totalUpfrontPrice)
The potential total upfront price. This is billed immediately.
totalUpfrontPrice
- The potential total upfront price. This is billed immediately.public void setTotalHourlyPrice(String totalHourlyPrice)
The potential total hourly price of the reservation per hour.
totalHourlyPrice
- The potential total hourly price of the reservation per hour.public String getTotalHourlyPrice()
The potential total hourly price of the reservation per hour.
public GetHostReservationPurchasePreviewResult withTotalHourlyPrice(String totalHourlyPrice)
The potential total hourly price of the reservation per hour.
totalHourlyPrice
- The potential total hourly price of the reservation per hour.public void setCurrencyCode(String currencyCode)
The currency in which the totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this time, the
only supported currency is USD
.
currencyCode
- The currency in which the totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this time,
the only supported currency is USD
.CurrencyCodeValues
public String getCurrencyCode()
The currency in which the totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this time, the
only supported currency is USD
.
totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this
time, the only supported currency is USD
.CurrencyCodeValues
public GetHostReservationPurchasePreviewResult withCurrencyCode(String currencyCode)
The currency in which the totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this time, the
only supported currency is USD
.
currencyCode
- The currency in which the totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this time,
the only supported currency is USD
.CurrencyCodeValues
public void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this time, the
only supported currency is USD
.
currencyCode
- The currency in which the totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this time,
the only supported currency is USD
.CurrencyCodeValues
public GetHostReservationPurchasePreviewResult withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this time, the
only supported currency is USD
.
currencyCode
- The currency in which the totalUpfrontPrice
and
totalHourlyPrice
amounts are specified. At this time,
the only supported currency is USD
.CurrencyCodeValues
public String toString()
toString
in class Object
Object.toString()
public GetHostReservationPurchasePreviewResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.