CopyableBuilder<HostReservation.Builder,HostReservation>
, SdkBuilder<HostReservation.Builder,HostReservation>
public static interface HostReservation.Builder extends CopyableBuilder<HostReservation.Builder,HostReservation>
Modifier and Type | Method | Description |
---|---|---|
HostReservation.Builder |
count(Integer count) |
The number of Dedicated Hosts the reservation is associated with.
|
HostReservation.Builder |
currencyCode(String currencyCode) |
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
HostReservation.Builder |
currencyCode(CurrencyCodeValues currencyCode) |
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
HostReservation.Builder |
duration(Integer duration) |
The length of the reservation's term, specified in seconds.
|
HostReservation.Builder |
end(Date end) |
The date and time that the reservation ends.
|
HostReservation.Builder |
hostIdSet(String... hostIdSet) |
The IDs of the Dedicated Hosts associated with the reservation.
|
HostReservation.Builder |
hostIdSet(Collection<String> hostIdSet) |
The IDs of the Dedicated Hosts associated with the reservation.
|
HostReservation.Builder |
hostReservationId(String hostReservationId) |
The ID of the reservation that specifies the associated Dedicated Hosts.
|
HostReservation.Builder |
hourlyPrice(String hourlyPrice) |
The hourly price of the reservation.
|
HostReservation.Builder |
instanceFamily(String instanceFamily) |
The instance family of the Dedicated Host Reservation.
|
HostReservation.Builder |
offeringId(String offeringId) |
The ID of the reservation.
|
HostReservation.Builder |
paymentOption(String paymentOption) |
The payment option selected for this reservation.
|
HostReservation.Builder |
paymentOption(PaymentOption paymentOption) |
The payment option selected for this reservation.
|
HostReservation.Builder |
start(Date start) |
The date and time that the reservation started.
|
HostReservation.Builder |
state(String state) |
The state of the reservation.
|
HostReservation.Builder |
state(ReservationState state) |
The state of the reservation.
|
HostReservation.Builder |
upfrontPrice(String upfrontPrice) |
The upfront price of the reservation.
|
copy
apply, build
HostReservation.Builder count(Integer count)
The number of Dedicated Hosts the reservation is associated with.
count
- The number of Dedicated Hosts the reservation is associated with.HostReservation.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
HostReservation.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
HostReservation.Builder duration(Integer duration)
The length of the reservation's term, specified in seconds. Can be 31536000 (1 year)
|
94608000 (3 years)
.
duration
- The length of the reservation's term, specified in seconds. Can be 31536000 (1 year)
|
94608000 (3 years)
.HostReservation.Builder end(Date end)
The date and time that the reservation ends.
end
- The date and time that the reservation ends.HostReservation.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.HostReservation.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.HostReservation.Builder hostReservationId(String hostReservationId)
The ID of the reservation that specifies the associated Dedicated Hosts.
hostReservationId
- The ID of the reservation that specifies the associated Dedicated Hosts.HostReservation.Builder hourlyPrice(String hourlyPrice)
The hourly price of the reservation.
hourlyPrice
- The hourly price of the reservation.HostReservation.Builder instanceFamily(String instanceFamily)
The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.
instanceFamily
- The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must
be the same in order for it to benefit from the reservation.HostReservation.Builder offeringId(String offeringId)
The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.
offeringId
- The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated
with it.HostReservation.Builder paymentOption(String paymentOption)
The payment option selected for this reservation.
paymentOption
- The payment option selected for this reservation.PaymentOption
HostReservation.Builder paymentOption(PaymentOption paymentOption)
The payment option selected for this reservation.
paymentOption
- The payment option selected for this reservation.PaymentOption
HostReservation.Builder start(Date start)
The date and time that the reservation started.
start
- The date and time that the reservation started.HostReservation.Builder state(String state)
The state of the reservation.
state
- The state of the reservation.ReservationState
HostReservation.Builder state(ReservationState state)
The state of the reservation.
state
- The state of the reservation.ReservationState
HostReservation.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.