Interface PurchaseHostReservationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PurchaseHostReservationRequest.Builder,PurchaseHostReservationRequest>
,Ec2Request.Builder
,SdkBuilder<PurchaseHostReservationRequest.Builder,PurchaseHostReservationRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- PurchaseHostReservationRequest
public static interface PurchaseHostReservationRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<PurchaseHostReservationRequest.Builder,PurchaseHostReservationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PurchaseHostReservationRequest.Builder
clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.PurchaseHostReservationRequest.Builder
currencyCode(String currencyCode)
The currency in which thetotalUpfrontPrice
,LimitPrice
, andtotalHourlyPrice
amounts are specified.PurchaseHostReservationRequest.Builder
currencyCode(CurrencyCodeValues currencyCode)
The currency in which thetotalUpfrontPrice
,LimitPrice
, andtotalHourlyPrice
amounts are specified.PurchaseHostReservationRequest.Builder
hostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.PurchaseHostReservationRequest.Builder
hostIdSet(Collection<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(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
PurchaseHostReservationRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
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.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
clientToken
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.
- Parameters:
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
PurchaseHostReservationRequest.Builder currencyCode(String currencyCode)
The currency in which the
totalUpfrontPrice
,LimitPrice
, andtotalHourlyPrice
amounts are specified. At this time, the only supported currency isUSD
.- Parameters:
currencyCode
- The currency in which thetotalUpfrontPrice
,LimitPrice
, andtotalHourlyPrice
amounts are specified. At this time, the only supported currency isUSD
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCodeValues
,CurrencyCodeValues
-
currencyCode
PurchaseHostReservationRequest.Builder currencyCode(CurrencyCodeValues currencyCode)
The currency in which the
totalUpfrontPrice
,LimitPrice
, andtotalHourlyPrice
amounts are specified. At this time, the only supported currency isUSD
.- Parameters:
currencyCode
- The currency in which thetotalUpfrontPrice
,LimitPrice
, andtotalHourlyPrice
amounts are specified. At this time, the only supported currency isUSD
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCodeValues
,CurrencyCodeValues
-
hostIdSet
PurchaseHostReservationRequest.Builder hostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
- Parameters:
hostIdSet
- The IDs of the Dedicated Hosts with which the reservation will be associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostIdSet
PurchaseHostReservationRequest.Builder hostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
- Parameters:
hostIdSet
- The IDs of the Dedicated Hosts with which the reservation will be associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limitPrice
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.- Parameters:
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 isUSD
. For example, to indicate a limit price of USD 100, specify 100.00.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringId
PurchaseHostReservationRequest.Builder offeringId(String offeringId)
The ID of the offering.
- Parameters:
offeringId
- The ID of the offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
PurchaseHostReservationRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
- Parameters:
tagSpecifications
- The tags to apply to the Dedicated Host Reservation during purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
PurchaseHostReservationRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
- Parameters:
tagSpecifications
- The tags to apply to the Dedicated Host Reservation during purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
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 viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tagSpecifications(List
.) - Parameters:
tagSpecifications
- a consumer that will call methods onTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tagSpecifications(java.util.Collection
)
-
overrideConfiguration
PurchaseHostReservationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
PurchaseHostReservationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-