Interface GetHostReservationPurchasePreviewResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetHostReservationPurchasePreviewResponse.Builder,
,GetHostReservationPurchasePreviewResponse> Ec2Response.Builder
,SdkBuilder<GetHostReservationPurchasePreviewResponse.Builder,
,GetHostReservationPurchasePreviewResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetHostReservationPurchasePreviewResponse
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode
(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) The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.purchase
(Consumer<Purchase.Builder>... purchase) The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.totalHourlyPrice
(String totalHourlyPrice) The potential total hourly price of the reservation per hour.totalUpfrontPrice
(String totalUpfrontPrice) The potential total upfront price.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
- Parameters:
purchase
- The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchase
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
- Parameters:
purchase
- The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchase
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
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 potential total hourly price of the reservation per hour.
- Parameters:
totalHourlyPrice
- The potential total hourly price of the reservation per hour.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalUpfrontPrice
The potential total upfront price. This is billed immediately.
- Parameters:
totalUpfrontPrice
- The potential total upfront price. This is billed immediately.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-