public static interface PurchaseHostReservationResponse.Builder extends Ec2Response.Builder, CopyableBuilder<PurchaseHostReservationResponse.Builder,PurchaseHostReservationResponse>
Modifier and Type | Method and Description |
---|---|
PurchaseHostReservationResponse.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
PurchaseHostReservationResponse.Builder |
currencyCode(CurrencyCodeValues currencyCode)
The currency in which the
totalUpfrontPrice and totalHourlyPrice amounts are
specified. |
PurchaseHostReservationResponse.Builder |
currencyCode(String currencyCode)
The currency in which the
totalUpfrontPrice and totalHourlyPrice amounts are
specified. |
PurchaseHostReservationResponse.Builder |
purchase(Collection<Purchase> purchase)
Describes the details of the purchase.
|
PurchaseHostReservationResponse.Builder |
purchase(Consumer<Purchase.Builder>... purchase)
Describes the details of the purchase.
|
PurchaseHostReservationResponse.Builder |
purchase(Purchase... purchase)
Describes the details of the purchase.
|
PurchaseHostReservationResponse.Builder |
totalHourlyPrice(String totalHourlyPrice)
The total hourly price of the reservation calculated per hour.
|
PurchaseHostReservationResponse.Builder |
totalUpfrontPrice(String totalUpfrontPrice)
The total amount that will be charged to your account when you purchase the reservation.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
PurchaseHostReservationResponse.Builder clientToken(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 GuidePurchaseHostReservationResponse.Builder currencyCode(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
,
CurrencyCodeValues
PurchaseHostReservationResponse.Builder currencyCode(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
,
CurrencyCodeValues
PurchaseHostReservationResponse.Builder purchase(Collection<Purchase> purchase)
Describes the details of the purchase.
purchase
- Describes the details of the purchase.PurchaseHostReservationResponse.Builder purchase(Purchase... purchase)
Describes the details of the purchase.
purchase
- Describes the details of the purchase.PurchaseHostReservationResponse.Builder purchase(Consumer<Purchase.Builder>... purchase)
Describes the details of the purchase.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #purchase(List)
.purchase
- a consumer that will call methods on List.Builder
#purchase(List)
PurchaseHostReservationResponse.Builder totalHourlyPrice(String totalHourlyPrice)
The total hourly price of the reservation calculated per hour.
totalHourlyPrice
- The total hourly price of the reservation calculated per hour.PurchaseHostReservationResponse.Builder totalUpfrontPrice(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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.