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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Purchase.Builder
currencyCode(String currencyCode)
The currency in which theUpfrontPrice
andHourlyPrice
amounts are specified.Purchase.Builder
currencyCode(CurrencyCodeValues currencyCode)
The currency in which theUpfrontPrice
andHourlyPrice
amounts are specified.Purchase.Builder
duration(Integer duration)
The duration of the reservation's term in seconds.Purchase.Builder
hostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.Purchase.Builder
hostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.Purchase.Builder
hostReservationId(String hostReservationId)
The ID of the reservation.Purchase.Builder
hourlyPrice(String hourlyPrice)
The hourly price of the reservation per hour.Purchase.Builder
instanceFamily(String instanceFamily)
The instance family on the Dedicated Host that the reservation can be associated with.Purchase.Builder
paymentOption(String paymentOption)
The payment option for the reservation.Purchase.Builder
paymentOption(PaymentOption paymentOption)
The payment option for the reservation.Purchase.Builder
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 Detail
-
currencyCode
Purchase.Builder currencyCode(String 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:
CurrencyCodeValues
,CurrencyCodeValues
-
currencyCode
Purchase.Builder currencyCode(CurrencyCodeValues 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:
CurrencyCodeValues
,CurrencyCodeValues
-
duration
Purchase.Builder duration(Integer 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
Purchase.Builder hostIdSet(Collection<String> 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
Purchase.Builder hostIdSet(String... 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
Purchase.Builder hostReservationId(String 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
Purchase.Builder hourlyPrice(String 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
Purchase.Builder instanceFamily(String 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
Purchase.Builder paymentOption(String 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
,PaymentOption
-
paymentOption
Purchase.Builder paymentOption(PaymentOption 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
,PaymentOption
-
upfrontPrice
Purchase.Builder upfrontPrice(String 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.
-
-