Interface HostReservation.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<HostReservation.Builder,HostReservation>
,SdkBuilder<HostReservation.Builder,HostReservation>
,SdkPojo
- Enclosing class:
- HostReservation
public static interface HostReservation.Builder extends SdkPojo, CopyableBuilder<HostReservation.Builder,HostReservation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 theupfrontPrice
andhourlyPrice
amounts are specified.HostReservation.Builder
currencyCode(CurrencyCodeValues currencyCode)
The currency in which theupfrontPrice
andhourlyPrice
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(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(Instant 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
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.-
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
-
count
HostReservation.Builder count(Integer count)
The number of Dedicated Hosts the reservation is associated with.
- Parameters:
count
- The number of Dedicated Hosts the reservation is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
HostReservation.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
HostReservation.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
HostReservation.Builder duration(Integer duration)
The length of the reservation's term, specified in seconds. Can be
31536000 (1 year)
|94608000 (3 years)
.- Parameters:
duration
- The length of the reservation's term, specified in seconds. Can be31536000 (1 year)
|94608000 (3 years)
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
end
HostReservation.Builder end(Instant end)
The date and time that the reservation ends.
- Parameters:
end
- The date and time that the reservation ends.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostIdSet
HostReservation.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
HostReservation.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
HostReservation.Builder hostReservationId(String hostReservationId)
The ID of the reservation that specifies the associated Dedicated Hosts.
- Parameters:
hostReservationId
- The ID of the reservation that specifies the associated Dedicated Hosts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hourlyPrice
HostReservation.Builder hourlyPrice(String hourlyPrice)
The hourly price of the reservation.
- Parameters:
hourlyPrice
- The hourly price of the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFamily
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringId
HostReservation.Builder offeringId(String offeringId)
The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.
- Parameters:
offeringId
- The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentOption
HostReservation.Builder paymentOption(String paymentOption)
The payment option selected for this reservation.
- Parameters:
paymentOption
- The payment option selected for this reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PaymentOption
,PaymentOption
-
paymentOption
HostReservation.Builder paymentOption(PaymentOption paymentOption)
The payment option selected for this reservation.
- Parameters:
paymentOption
- The payment option selected for this reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PaymentOption
,PaymentOption
-
start
HostReservation.Builder start(Instant start)
The date and time that the reservation started.
- Parameters:
start
- The date and time that the reservation started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
HostReservation.Builder state(String state)
The state of the reservation.
- Parameters:
state
- The state of the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReservationState
,ReservationState
-
state
HostReservation.Builder state(ReservationState state)
The state of the reservation.
- Parameters:
state
- The state of the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReservationState
,ReservationState
-
upfrontPrice
HostReservation.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.
-
tags
HostReservation.Builder tags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host Reservation.
- Parameters:
tags
- Any tags assigned to the Dedicated Host Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
HostReservation.Builder tags(Tag... tags)
Any tags assigned to the Dedicated Host Reservation.
- Parameters:
tags
- Any tags assigned to the Dedicated Host Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
HostReservation.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the Dedicated Host Reservation.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection
)
-
-