public static interface PurchaseHostReservationRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<PurchaseHostReservationRequest.Builder,PurchaseHostReservationRequest>
Modifier and Type | Method and Description |
---|---|
PurchaseHostReservationRequest.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the 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 IDs of the Dedicated Hosts with which the reservation will be associated.
|
PurchaseHostReservationRequest.Builder |
hostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
|
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) |
PurchaseHostReservationRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PurchaseHostReservationRequest.Builder |
tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
|
PurchaseHostReservationRequest.Builder |
tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
|
PurchaseHostReservationRequest.Builder |
tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
PurchaseHostReservationRequest.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.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 IDs of the Dedicated Hosts with which the reservation will be associated.
hostIdSet
- The IDs of the Dedicated Hosts with which the reservation will be associated.PurchaseHostReservationRequest.Builder hostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
hostIdSet
- The IDs of the Dedicated Hosts with which the reservation will be associated.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 fails. 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 fails. 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 tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
tagSpecifications
- The tags to apply to the Dedicated Host Reservation during purchase.PurchaseHostReservationRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
tagSpecifications
- The tags to apply to the Dedicated Host Reservation during purchase.PurchaseHostReservationRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one
manually via TagSpecification.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and
its result is passed to #tagSpecifications(List
.
tagSpecifications
- a consumer that will call methods on
TagSpecification.Builder
#tagSpecifications(java.util.Collection)
PurchaseHostReservationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
PurchaseHostReservationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2023. All rights reserved.