Interface PurchaseHostReservationResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PurchaseHostReservationResponse.Builder,PurchaseHostReservationResponse>
,Ec2Response.Builder
,SdkBuilder<PurchaseHostReservationResponse.Builder,PurchaseHostReservationResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- PurchaseHostReservationResponse
public static interface PurchaseHostReservationResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<PurchaseHostReservationResponse.Builder,PurchaseHostReservationResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PurchaseHostReservationResponse.Builder
clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.PurchaseHostReservationResponse.Builder
currencyCode(String currencyCode)
The currency in which thetotalUpfrontPrice
andtotalHourlyPrice
amounts are specified.PurchaseHostReservationResponse.Builder
currencyCode(CurrencyCodeValues currencyCode)
The currency in which thetotalUpfrontPrice
andtotalHourlyPrice
amounts are specified.PurchaseHostReservationResponse.Builder
purchase(Collection<Purchase> purchase)
Describes the details of the purchase.PurchaseHostReservationResponse.Builder
purchase(Consumer<Purchase.Builder>... purchase)
Describes the details of the purchase.PurchaseHostReservationResponse.Builder
purchase(Purchase... purchase)
Describes the details of the purchase.PurchaseHostReservationResponse.Builder
totalHourlyPrice(String totalHourlyPrice)
The total hourly price of the reservation calculated per hour.PurchaseHostReservationResponse.Builder
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 Detail
-
clientToken
PurchaseHostReservationResponse.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
PurchaseHostReservationResponse.Builder currencyCode(String 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:
CurrencyCodeValues
,CurrencyCodeValues
-
currencyCode
PurchaseHostReservationResponse.Builder currencyCode(CurrencyCodeValues 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:
CurrencyCodeValues
,CurrencyCodeValues
-
purchase
PurchaseHostReservationResponse.Builder purchase(Collection<Purchase> 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
PurchaseHostReservationResponse.Builder purchase(Purchase... 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
PurchaseHostReservationResponse.Builder purchase(Consumer<Purchase.Builder>... 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 to#purchase(List
.) - 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:
#purchase(java.util.Collection
)
-
totalHourlyPrice
PurchaseHostReservationResponse.Builder totalHourlyPrice(String 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
PurchaseHostReservationResponse.Builder totalUpfrontPrice(String 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.
-
-