public static interface PurchaseHostReservationResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<PurchaseHostReservationResponse.Builder,PurchaseHostReservationResponse>
| Modifier and Type | Method and Description |
|---|---|
PurchaseHostReservationResponse.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the 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 charged to your account when you purchase the reservation.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildPurchaseHostReservationResponse.Builder clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.PurchaseHostReservationResponse.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,
CurrencyCodeValuesPurchaseHostReservationResponse.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,
CurrencyCodeValuesPurchaseHostReservationResponse.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 method that creates an instance of thePurchase.Builder avoiding the need to create one manually
via Purchase.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #purchase(List.
purchase - a consumer that will call methods on
Purchase.Builder#purchase(java.util.Collection) 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 charged to your account when you purchase the reservation.
totalUpfrontPrice - The total amount charged to your account when you purchase the reservation.Copyright © 2022. All rights reserved.