Interface GetHostReservationPurchasePreviewResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetHostReservationPurchasePreviewResponse.Builder,GetHostReservationPurchasePreviewResponse>
,Ec2Response.Builder
,SdkBuilder<GetHostReservationPurchasePreviewResponse.Builder,GetHostReservationPurchasePreviewResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetHostReservationPurchasePreviewResponse
public static interface GetHostReservationPurchasePreviewResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<GetHostReservationPurchasePreviewResponse.Builder,GetHostReservationPurchasePreviewResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetHostReservationPurchasePreviewResponse.Builder
currencyCode(String currencyCode)
The currency in which thetotalUpfrontPrice
andtotalHourlyPrice
amounts are specified.GetHostReservationPurchasePreviewResponse.Builder
currencyCode(CurrencyCodeValues currencyCode)
The currency in which thetotalUpfrontPrice
andtotalHourlyPrice
amounts are specified.GetHostReservationPurchasePreviewResponse.Builder
purchase(Collection<Purchase> purchase)
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.GetHostReservationPurchasePreviewResponse.Builder
purchase(Consumer<Purchase.Builder>... purchase)
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.GetHostReservationPurchasePreviewResponse.Builder
purchase(Purchase... purchase)
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.GetHostReservationPurchasePreviewResponse.Builder
totalHourlyPrice(String totalHourlyPrice)
The potential total hourly price of the reservation per hour.GetHostReservationPurchasePreviewResponse.Builder
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
currencyCode
GetHostReservationPurchasePreviewResponse.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
GetHostReservationPurchasePreviewResponse.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
GetHostReservationPurchasePreviewResponse.Builder purchase(Collection<Purchase> 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
GetHostReservationPurchasePreviewResponse.Builder purchase(Purchase... 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
GetHostReservationPurchasePreviewResponse.Builder purchase(Consumer<Purchase.Builder>... 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 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
GetHostReservationPurchasePreviewResponse.Builder totalHourlyPrice(String 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
GetHostReservationPurchasePreviewResponse.Builder totalUpfrontPrice(String 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.
-
-