CopyableBuilder<Purchase.Builder,Purchase>
, SdkBuilder<Purchase.Builder,Purchase>
public static interface Purchase.Builder extends CopyableBuilder<Purchase.Builder,Purchase>
Modifier and Type | Method | Description |
---|---|---|
Purchase.Builder |
currencyCode(String currencyCode) |
The currency in which the
UpfrontPrice and HourlyPrice amounts are specified. |
Purchase.Builder |
currencyCode(CurrencyCodeValues currencyCode) |
The currency in which the
UpfrontPrice and HourlyPrice 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.
|
copy
apply, build
Purchase.Builder currencyCode(String currencyCode)
The currency in which the UpfrontPrice
and HourlyPrice
amounts are specified. At
this time, the only supported currency is USD
.
currencyCode
- The currency in which the UpfrontPrice
and HourlyPrice
amounts are
specified. At this time, the only supported currency is USD
.CurrencyCodeValues
Purchase.Builder currencyCode(CurrencyCodeValues currencyCode)
The currency in which the UpfrontPrice
and HourlyPrice
amounts are specified. At
this time, the only supported currency is USD
.
currencyCode
- The currency in which the UpfrontPrice
and HourlyPrice
amounts are
specified. At this time, the only supported currency is USD
.CurrencyCodeValues
Purchase.Builder duration(Integer duration)
The duration of the reservation's term in seconds.
duration
- The duration of the reservation's term in seconds.Purchase.Builder hostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.
hostIdSet
- The IDs of the Dedicated Hosts associated with the reservation.Purchase.Builder hostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.
NOTE: This method appends the values to the existing list (if any). Use
#setHostIdSet(java.util.Collection)
or #withHostIdSet(java.util.Collection)
if you want to
override the existing values.
hostIdSet
- The IDs of the Dedicated Hosts associated with the reservation.Purchase.Builder hostReservationId(String hostReservationId)
The ID of the reservation.
hostReservationId
- The ID of the reservation.Purchase.Builder hourlyPrice(String hourlyPrice)
The hourly price of the reservation per hour.
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.
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.
paymentOption
- The payment option for the reservation.PaymentOption
Purchase.Builder paymentOption(PaymentOption paymentOption)
The payment option for the reservation.
paymentOption
- The payment option for the reservation.PaymentOption
Purchase.Builder upfrontPrice(String upfrontPrice)
The upfront price of the reservation.
upfrontPrice
- The upfront price of the reservation.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.