public static interface Purchase.Builder extends SdkPojo, CopyableBuilder<Purchase.Builder,Purchase>
Modifier and Type | Method and Description |
---|---|
Purchase.Builder |
currencyCode(CurrencyCodeValues currencyCode)
The currency in which the
UpfrontPrice and HourlyPrice amounts are specified. |
Purchase.Builder |
currencyCode(String 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(Collection<String> 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.
|
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(PaymentOption paymentOption)
The payment option for the reservation.
|
Purchase.Builder |
paymentOption(String paymentOption)
The payment option for the reservation.
|
Purchase.Builder |
upfrontPrice(String upfrontPrice)
The upfront price of the reservation.
|
equalsBySdkFields, sdkFields
copy
applyMutation, 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
,
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
,
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.
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
,
PaymentOption
Purchase.Builder paymentOption(PaymentOption paymentOption)
The payment option for the reservation.
paymentOption
- The payment option for the reservation.PaymentOption
,
PaymentOption
Purchase.Builder upfrontPrice(String upfrontPrice)
The upfront price of the reservation.
upfrontPrice
- The upfront price of the reservation.Copyright © 2020. All rights reserved.