public static interface HostReservation.Builder extends SdkPojo, CopyableBuilder<HostReservation.Builder,HostReservation>
Modifier and Type | Method and Description |
---|---|
HostReservation.Builder |
count(Integer count)
The number of Dedicated Hosts the reservation is associated with.
|
HostReservation.Builder |
currencyCode(CurrencyCodeValues currencyCode)
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
HostReservation.Builder |
currencyCode(String 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(Instant 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.
|
HostReservation.Builder |
hostIdSet(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(PaymentOption paymentOption)
The payment option selected for this reservation.
|
HostReservation.Builder |
paymentOption(String paymentOption)
The payment option selected for this reservation.
|
HostReservation.Builder |
start(Instant start)
The date and time that the reservation started.
|
HostReservation.Builder |
state(ReservationState state)
The state of the reservation.
|
HostReservation.Builder |
state(String state)
The state of the reservation.
|
HostReservation.Builder |
tags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host Reservation.
|
HostReservation.Builder |
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the Dedicated Host Reservation.
|
HostReservation.Builder |
tags(Tag... tags)
Any tags assigned to the Dedicated Host Reservation.
|
HostReservation.Builder |
upfrontPrice(String upfrontPrice)
The upfront price of the reservation.
|
equalsBySdkFields, sdkFields
copy
applyMutation, 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
,
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
,
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(Instant 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.
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
,
PaymentOption
HostReservation.Builder paymentOption(PaymentOption paymentOption)
The payment option selected for this reservation.
paymentOption
- The payment option selected for this reservation.PaymentOption
,
PaymentOption
HostReservation.Builder start(Instant 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
,
ReservationState
HostReservation.Builder state(ReservationState state)
The state of the reservation.
state
- The state of the reservation.ReservationState
,
ReservationState
HostReservation.Builder upfrontPrice(String upfrontPrice)
The upfront price of the reservation.
upfrontPrice
- The upfront price of the reservation.HostReservation.Builder tags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host Reservation.
tags
- Any tags assigned to the Dedicated Host Reservation.HostReservation.Builder tags(Tag... tags)
Any tags assigned to the Dedicated Host Reservation.
tags
- Any tags assigned to the Dedicated Host Reservation.HostReservation.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the Dedicated Host Reservation.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
Copyright © 2019. All rights reserved.