Interface Purchase.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Purchase.Builder,
,Purchase> SdkBuilder<Purchase.Builder,
,Purchase> SdkPojo
- Enclosing class:
Purchase
public static interface Purchase.Builder
extends SdkPojo, CopyableBuilder<Purchase.Builder,Purchase>
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode
(String currencyCode) The currency in which theUpfrontPrice
andHourlyPrice
amounts are specified.currencyCode
(CurrencyCodeValues currencyCode) The currency in which theUpfrontPrice
andHourlyPrice
amounts are specified.The duration of the reservation's term in seconds.The IDs of the Dedicated Hosts associated with the reservation.hostIdSet
(Collection<String> hostIdSet) The IDs of the Dedicated Hosts associated with the reservation.hostReservationId
(String hostReservationId) The ID of the reservation.hourlyPrice
(String hourlyPrice) The hourly price of the reservation per hour.instanceFamily
(String instanceFamily) The instance family on the Dedicated Host that the reservation can be associated with.paymentOption
(String paymentOption) The payment option for the reservation.paymentOption
(PaymentOption paymentOption) The payment option for the reservation.upfrontPrice
(String upfrontPrice) The upfront price of the reservation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
currencyCode
The currency in which the
UpfrontPrice
andHourlyPrice
amounts are specified. At this time, the only supported currency isUSD
.- Parameters:
currencyCode
- The currency in which theUpfrontPrice
andHourlyPrice
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
UpfrontPrice
andHourlyPrice
amounts are specified. At this time, the only supported currency isUSD
.- Parameters:
currencyCode
- The currency in which theUpfrontPrice
andHourlyPrice
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:
-
duration
The duration of the reservation's term in seconds.
- Parameters:
duration
- The duration of the reservation's term in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostIdSet
The IDs of the Dedicated Hosts associated with the reservation.
- Parameters:
hostIdSet
- The IDs of the Dedicated Hosts associated with the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostIdSet
The IDs of the Dedicated Hosts associated with the reservation.
- Parameters:
hostIdSet
- The IDs of the Dedicated Hosts associated with the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostReservationId
The ID of the reservation.
- Parameters:
hostReservationId
- The ID of the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hourlyPrice
The hourly price of the reservation per hour.
- Parameters:
hourlyPrice
- The hourly price of the reservation per hour.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFamily
The instance family on the Dedicated Host that the reservation can be associated with.
- Parameters:
instanceFamily
- The instance family on the Dedicated Host that the reservation can be associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentOption
The payment option for the reservation.
- Parameters:
paymentOption
- The payment option for the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
paymentOption
The payment option for the reservation.
- Parameters:
paymentOption
- The payment option for the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
upfrontPrice
The upfront price of the reservation.
- Parameters:
upfrontPrice
- The upfront price of the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-