public static interface PurchaseHostReservationRequest.Builder extends Ec2Request.Builder, CopyableBuilder<PurchaseHostReservationRequest.Builder,PurchaseHostReservationRequest>
Modifier and Type | Method and Description |
---|---|
PurchaseHostReservationRequest.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
PurchaseHostReservationRequest.Builder |
currencyCode(CurrencyCodeValues currencyCode)
The currency in which the
totalUpfrontPrice , LimitPrice , and
totalHourlyPrice amounts are specified. |
PurchaseHostReservationRequest.Builder |
currencyCode(String currencyCode)
The currency in which the
totalUpfrontPrice , LimitPrice , and
totalHourlyPrice amounts are specified. |
PurchaseHostReservationRequest.Builder |
hostIdSet(Collection<String> hostIdSet)
The ID/s of the Dedicated Host/s that the reservation will be associated with.
|
PurchaseHostReservationRequest.Builder |
hostIdSet(String... hostIdSet)
The ID/s of the Dedicated Host/s that the reservation will be associated with.
|
PurchaseHostReservationRequest.Builder |
limitPrice(String limitPrice)
The specified limit is checked against the total upfront cost of the reservation (calculated as the
offering's upfront cost multiplied by the host count).
|
PurchaseHostReservationRequest.Builder |
offeringId(String offeringId)
The ID of the offering.
|
PurchaseHostReservationRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PurchaseHostReservationRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
build
overrideConfiguration
copy
applyMutation, build
PurchaseHostReservationRequest.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 Guide.PurchaseHostReservationRequest.Builder currencyCode(String currencyCode)
The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.
currencyCode
- The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
,
CurrencyCodeValues
PurchaseHostReservationRequest.Builder currencyCode(CurrencyCodeValues currencyCode)
The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.
currencyCode
- The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
,
CurrencyCodeValues
PurchaseHostReservationRequest.Builder hostIdSet(Collection<String> hostIdSet)
The ID/s of the Dedicated Host/s that the reservation will be associated with.
hostIdSet
- The ID/s of the Dedicated Host/s that the reservation will be associated with.PurchaseHostReservationRequest.Builder hostIdSet(String... hostIdSet)
The ID/s of the Dedicated Host/s that the reservation will be associated with.
hostIdSet
- The ID/s of the Dedicated Host/s that the reservation will be associated with.PurchaseHostReservationRequest.Builder limitPrice(String limitPrice)
The specified limit is checked against the total upfront cost of the reservation (calculated as the
offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the
specified price limit, the request will fail. This is used to ensure that the purchase does not exceed the
expected upfront cost of the purchase. At this time, the only supported currency is USD
. For
example, to indicate a limit price of USD 100, specify 100.00.
limitPrice
- The specified limit is checked against the total upfront cost of the reservation (calculated as the
offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the
specified price limit, the request will fail. This is used to ensure that the purchase does not exceed
the expected upfront cost of the purchase. At this time, the only supported currency is
USD
. For example, to indicate a limit price of USD 100, specify 100.00.PurchaseHostReservationRequest.Builder offeringId(String offeringId)
The ID of the offering.
offeringId
- The ID of the offering.PurchaseHostReservationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.PurchaseHostReservationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.