Interface PurchaseHostReservationResponse.Builder

    • Method Detail

      • clientToken

        PurchaseHostReservationResponse.Builder clientToken​(String 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:
        CurrencyCodeValues, CurrencyCodeValues
      • currencyCode

        PurchaseHostReservationResponse.Builder currencyCode​(CurrencyCodeValues 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:
        CurrencyCodeValues, CurrencyCodeValues
      • purchase

        PurchaseHostReservationResponse.Builder purchase​(Collection<Purchase> 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

        PurchaseHostReservationResponse.Builder purchase​(Purchase... 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.
      • 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.