Interface HostReservation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<HostReservation.Builder,
,HostReservation> SdkBuilder<HostReservation.Builder,
,HostReservation> SdkPojo
- Enclosing class:
HostReservation
-
Method Summary
Modifier and TypeMethodDescriptionThe number of Dedicated Hosts the reservation is associated with.currencyCode
(String currencyCode) The currency in which theupfrontPrice
andhourlyPrice
amounts are specified.currencyCode
(CurrencyCodeValues currencyCode) The currency in which theupfrontPrice
andhourlyPrice
amounts are specified.The length of the reservation's term, specified in seconds.The date and time that the reservation ends.The IDs of the Dedicated Hosts associated with the reservation.hostIdSet
(Collection<String> hostIdSet) The IDs of the Dedicated Hosts associated with the reservation.hostReservationId
(String hostReservationId) The ID of the reservation that specifies the associated Dedicated Hosts.hourlyPrice
(String hourlyPrice) The hourly price of the reservation.instanceFamily
(String instanceFamily) The instance family of the Dedicated Host Reservation.offeringId
(String offeringId) The ID of the reservation.paymentOption
(String paymentOption) The payment option selected for this reservation.paymentOption
(PaymentOption paymentOption) The payment option selected for this reservation.The date and time that the reservation started.The state of the reservation.state
(ReservationState state) The state of the reservation.tags
(Collection<Tag> tags) Any tags assigned to the Dedicated Host Reservation.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the Dedicated Host Reservation.Any tags assigned to the Dedicated Host Reservation.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 Details
-
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
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:
-
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:
-
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
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
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
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
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
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
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
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
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
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:
-
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
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:
-
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:
-
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
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
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
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 totags(List<Tag>)
.- 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:
-