@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetHostReservationPurchasePreviewResult extends AmazonWebServiceResult<ResponseMetadata> 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.
|
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.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public GetHostReservationPurchasePreviewResult()
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 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 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 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 String toString()
toString
in class Object
Object.toString()
public GetHostReservationPurchasePreviewResult clone()