Interface Purchase.Builder

    • Method Detail

      • currencyCode

        Purchase.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:
        CurrencyCodeValues, CurrencyCodeValues
      • currencyCode

        Purchase.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:
        CurrencyCodeValues, CurrencyCodeValues
      • duration

        Purchase.Builder duration​(Integer duration)

        The duration of the reservation's term in seconds.

        Parameters:
        duration - The duration of the reservation's term in seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • hostIdSet

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

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

        Purchase.Builder hostReservationId​(String hostReservationId)

        The ID of the reservation.

        Parameters:
        hostReservationId - The ID of the reservation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • hourlyPrice

        Purchase.Builder hourlyPrice​(String hourlyPrice)

        The hourly price of the reservation per hour.

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

        Purchase.Builder instanceFamily​(String instanceFamily)

        The instance family on the Dedicated Host that the reservation can be associated with.

        Parameters:
        instanceFamily - The instance family on the Dedicated Host that the reservation can be associated with.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • paymentOption

        Purchase.Builder paymentOption​(String paymentOption)

        The payment option for the reservation.

        Parameters:
        paymentOption - The payment option for the reservation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PaymentOption, PaymentOption
      • paymentOption

        Purchase.Builder paymentOption​(PaymentOption paymentOption)

        The payment option for the reservation.

        Parameters:
        paymentOption - The payment option for the reservation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PaymentOption, PaymentOption
      • upfrontPrice

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