Interface GetHostReservationPurchasePreviewResponse.Builder

  • Method Details

    • currencyCode

      The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.

      Parameters:
      currencyCode - The currency in which the totalUpfrontPrice and totalHourlyPrice 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

      The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.

      Parameters:
      currencyCode - The currency in which the totalUpfrontPrice and totalHourlyPrice 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:
    • purchase

      The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.

      Parameters:
      purchase - The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • purchase

      The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.

      Parameters:
      purchase - The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • purchase

      The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.

      This is a convenience method that creates an instance of the Purchase.Builder avoiding the need to create one manually via Purchase.builder().

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

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

      GetHostReservationPurchasePreviewResponse.Builder totalHourlyPrice(String totalHourlyPrice)

      The potential total hourly price of the reservation per hour.

      Parameters:
      totalHourlyPrice - The potential total hourly price of the reservation per hour.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalUpfrontPrice

      GetHostReservationPurchasePreviewResponse.Builder totalUpfrontPrice(String totalUpfrontPrice)

      The potential total upfront price. This is billed immediately.

      Parameters:
      totalUpfrontPrice - The potential total upfront price. This is billed immediately.
      Returns:
      Returns a reference to this object so that method calls can be chained together.