Interface GetHostReservationPurchasePreviewResponse.Builder

    • Method Detail

      • currencyCode

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

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

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

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