@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PurchaseHostReservationResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
PurchaseHostReservationResult() |
Modifier and Type | Method and Description |
---|---|
PurchaseHostReservationResult |
clone() |
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
String |
getCurrencyCode()
The currency in which the
totalUpfrontPrice and totalHourlyPrice amounts are specified. |
List<Purchase> |
getPurchase()
Describes the details of the purchase.
|
String |
getTotalHourlyPrice()
The total hourly price of the reservation calculated per hour.
|
String |
getTotalUpfrontPrice()
The total amount that will be charged to your account when you purchase the reservation.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
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)
Describes the details of the purchase.
|
void |
setTotalHourlyPrice(String totalHourlyPrice)
The total hourly price of the reservation calculated per hour.
|
void |
setTotalUpfrontPrice(String totalUpfrontPrice)
The total amount that will be charged to your account when you purchase the reservation.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PurchaseHostReservationResult |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
PurchaseHostReservationResult |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
totalUpfrontPrice and totalHourlyPrice amounts are specified. |
PurchaseHostReservationResult |
withCurrencyCode(String currencyCode)
The currency in which the
totalUpfrontPrice and totalHourlyPrice amounts are specified. |
PurchaseHostReservationResult |
withPurchase(Collection<Purchase> purchase)
Describes the details of the purchase.
|
PurchaseHostReservationResult |
withPurchase(Purchase... purchase)
Describes the details of the purchase.
|
PurchaseHostReservationResult |
withTotalHourlyPrice(String totalHourlyPrice)
The total hourly price of the reservation calculated per hour.
|
PurchaseHostReservationResult |
withTotalUpfrontPrice(String totalUpfrontPrice)
The total amount that will be charged to your account when you purchase the reservation.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see How to
Ensure Idempotency in the Amazon Elastic Compute Cloud User Guidepublic String getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide
public PurchaseHostReservationResult withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see How to
Ensure Idempotency in the Amazon Elastic Compute Cloud User Guidepublic 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 PurchaseHostReservationResult 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 PurchaseHostReservationResult 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()
Describes the details of the purchase.
public void setPurchase(Collection<Purchase> purchase)
Describes the details of the purchase.
purchase
- Describes the details of the purchase.public PurchaseHostReservationResult withPurchase(Purchase... purchase)
Describes the details of the purchase.
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
- Describes the details of the purchase.public PurchaseHostReservationResult withPurchase(Collection<Purchase> purchase)
Describes the details of the purchase.
purchase
- Describes the details of the purchase.public void setTotalHourlyPrice(String totalHourlyPrice)
The total hourly price of the reservation calculated per hour.
totalHourlyPrice
- The total hourly price of the reservation calculated per hour.public String getTotalHourlyPrice()
The total hourly price of the reservation calculated per hour.
public PurchaseHostReservationResult withTotalHourlyPrice(String totalHourlyPrice)
The total hourly price of the reservation calculated per hour.
totalHourlyPrice
- The total hourly price of the reservation calculated per hour.public void setTotalUpfrontPrice(String totalUpfrontPrice)
The total amount that will be charged to your account when you purchase the reservation.
totalUpfrontPrice
- The total amount that will be charged to your account when you purchase the reservation.public String getTotalUpfrontPrice()
The total amount that will be charged to your account when you purchase the reservation.
public PurchaseHostReservationResult withTotalUpfrontPrice(String totalUpfrontPrice)
The total amount that will be charged to your account when you purchase the reservation.
totalUpfrontPrice
- The total amount that will be charged to your account when you purchase the reservation.public String toString()
toString
in class Object
Object.toString()
public PurchaseHostReservationResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.