Interface PurchaseHostReservationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PurchaseHostReservationResponse.Builder,
,PurchaseHostReservationResponse> Ec2Response.Builder
,SdkBuilder<PurchaseHostReservationResponse.Builder,
,PurchaseHostReservationResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PurchaseHostReservationResponse
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.currencyCode
(String currencyCode) The currency in which thetotalUpfrontPrice
andtotalHourlyPrice
amounts are specified.currencyCode
(CurrencyCodeValues currencyCode) The currency in which thetotalUpfrontPrice
andtotalHourlyPrice
amounts are specified.purchase
(Collection<Purchase> purchase) Describes the details of the purchase.purchase
(Consumer<Purchase.Builder>... purchase) Describes the details of the purchase.Describes the details of the purchase.totalHourlyPrice
(String totalHourlyPrice) The total hourly price of the reservation calculated per hour.totalUpfrontPrice
(String totalUpfrontPrice) The total amount charged to your account when you purchase the reservation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
The currency in which the
totalUpfrontPrice
andtotalHourlyPrice
amounts are specified. At this time, the only supported currency isUSD
.- Parameters:
currencyCode
- The currency in which thetotalUpfrontPrice
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:
-
currencyCode
The currency in which the
totalUpfrontPrice
andtotalHourlyPrice
amounts are specified. At this time, the only supported currency isUSD
.- Parameters:
currencyCode
- The currency in which thetotalUpfrontPrice
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:
-
purchase
Describes the details of the purchase.
- Parameters:
purchase
- Describes the details of the purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchase
Describes the details of the purchase.
- Parameters:
purchase
- Describes the details of the purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaPurchase.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topurchase(List<Purchase>)
.- Parameters:
purchase
- a consumer that will call methods onPurchase.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalHourlyPrice
The total hourly price of the reservation calculated per hour.
- Parameters:
totalHourlyPrice
- The total hourly price of the reservation calculated per hour.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalUpfrontPrice
The total amount charged to your account when you purchase the reservation.
- Parameters:
totalUpfrontPrice
- The total amount charged to your account when you purchase the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-