Interface PurchaseHostReservationResponse.Builder

  • Method Details

    • clientToken

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

      Parameters:
      clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currencyCode

      PurchaseHostReservationResponse.Builder currencyCode(String 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

      Describes the details of the purchase.

      Parameters:
      purchase - Describes the details of the purchase.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • purchase

      Describes the details of the purchase.

      Parameters:
      purchase - Describes the details of the purchase.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • purchase

      Describes the details of the purchase.

      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

      PurchaseHostReservationResponse.Builder totalHourlyPrice(String totalHourlyPrice)

      The total hourly price of the reservation calculated per hour.

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

      PurchaseHostReservationResponse.Builder totalUpfrontPrice(String totalUpfrontPrice)

      The total amount charged to your account when you purchase the reservation.

      Parameters:
      totalUpfrontPrice - The total amount charged to your account when you purchase the reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.