Interface GetHostReservationPurchasePreviewResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetHostReservationPurchasePreviewResponse.Builder,GetHostReservationPurchasePreviewResponse>,Ec2Response.Builder,SdkBuilder<GetHostReservationPurchasePreviewResponse.Builder,GetHostReservationPurchasePreviewResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetHostReservationPurchasePreviewResponse
@Mutable @NotThreadSafe 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.BuildercurrencyCode(String currencyCode)The currency in which thetotalUpfrontPriceandtotalHourlyPriceamounts are specified.GetHostReservationPurchasePreviewResponse.BuildercurrencyCode(CurrencyCodeValues currencyCode)The currency in which thetotalUpfrontPriceandtotalHourlyPriceamounts are specified.GetHostReservationPurchasePreviewResponse.Builderpurchase(Collection<Purchase> purchase)The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.GetHostReservationPurchasePreviewResponse.Builderpurchase(Consumer<Purchase.Builder>... purchase)The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.GetHostReservationPurchasePreviewResponse.Builderpurchase(Purchase... purchase)The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.GetHostReservationPurchasePreviewResponse.BuildertotalHourlyPrice(String totalHourlyPrice)The potential total hourly price of the reservation per hour.GetHostReservationPurchasePreviewResponse.BuildertotalUpfrontPrice(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 Detail
-
currencyCode
GetHostReservationPurchasePreviewResponse.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
GetHostReservationPurchasePreviewResponse.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
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.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
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.
-
-