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.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPurchaseHostReservationRequest.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,
CurrencyCodeValuesPurchaseHostReservationRequest.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,
CurrencyCodeValuesPurchaseHostReservationRequest.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 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 #tagSpecifications(List) .tagSpecifications - a consumer that will call methods on List.Builder #tagSpecifications(List) PurchaseHostReservationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPurchaseHostReservationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.