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 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

      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.

      Parameters:
      currencyCode - The currency in which the upfrontPrice and hourlyPrice amounts are specified. At this time, the only supported currency is USD.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currencyCode

      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.

      Parameters:
      currencyCode - The currency in which the upfrontPrice and hourlyPrice amounts are specified. At this time, the only supported currency is USD.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 be 31536000 (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

      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

      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:
    • 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

      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

      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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: