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.BuilderclientToken(String clientToken)Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.PurchaseHostReservationResponse.BuildercurrencyCode(String currencyCode)The currency in which thetotalUpfrontPriceandtotalHourlyPriceamounts are specified.PurchaseHostReservationResponse.BuildercurrencyCode(CurrencyCodeValues currencyCode)The currency in which thetotalUpfrontPriceandtotalHourlyPriceamounts are specified.PurchaseHostReservationResponse.Builderpurchase(Collection<Purchase> purchase)Describes the details of the purchase.PurchaseHostReservationResponse.Builderpurchase(Consumer<Purchase.Builder>... purchase)Describes the details of the purchase.PurchaseHostReservationResponse.Builderpurchase(Purchase... purchase)Describes the details of the purchase.PurchaseHostReservationResponse.BuildertotalHourlyPrice(String totalHourlyPrice)The total hourly price of the reservation calculated per hour.PurchaseHostReservationResponse.BuildertotalUpfrontPrice(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
totalUpfrontPriceandtotalHourlyPriceamounts are specified. At this time, the only supported currency isUSD.- Parameters:
currencyCode- The currency in which thetotalUpfrontPriceandtotalHourlyPriceamounts 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
totalUpfrontPriceandtotalHourlyPriceamounts are specified. At this time, the only supported currency isUSD.- Parameters:
currencyCode- The currency in which thetotalUpfrontPriceandtotalHourlyPriceamounts 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.Builderavoiding the need to create one manually viaPurchase.builder().When the
Consumercompletes,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.
-
-