Interface PurchaseHostReservationRequest.Builder

    • Method Detail

      • clientToken

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

        PurchaseHostReservationRequest.Builder currencyCode​(String currencyCode)

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

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

        PurchaseHostReservationRequest.Builder currencyCode​(CurrencyCodeValues currencyCode)

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

        Parameters:
        currencyCode - The currency in which the totalUpfrontPrice, LimitPrice, 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
      • hostIdSet

        PurchaseHostReservationRequest.Builder hostIdSet​(Collection<String> hostIdSet)

        The IDs of the Dedicated Hosts with which the reservation will be associated.

        Parameters:
        hostIdSet - The IDs of the Dedicated Hosts with which the reservation will be associated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • hostIdSet

        PurchaseHostReservationRequest.Builder hostIdSet​(String... hostIdSet)

        The IDs of the Dedicated Hosts with which the reservation will be associated.

        Parameters:
        hostIdSet - The IDs of the Dedicated Hosts with which the reservation will be associated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • limitPrice

        PurchaseHostReservationRequest.Builder limitPrice​(String limitPrice)

        The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit, the request fails. This is used to ensure that the purchase does not exceed the expected upfront cost of the purchase. At this time, the only supported currency is USD. For example, to indicate a limit price of USD 100, specify 100.00.

        Parameters:
        limitPrice - The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit, the request fails. This is used to ensure that the purchase does not exceed the expected upfront cost of the purchase. At this time, the only supported currency is USD. For example, to indicate a limit price of USD 100, specify 100.00.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • offeringId

        PurchaseHostReservationRequest.Builder offeringId​(String offeringId)

        The ID of the offering.

        Parameters:
        offeringId - The ID of the offering.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagSpecifications

        PurchaseHostReservationRequest.Builder tagSpecifications​(Collection<TagSpecification> tagSpecifications)

        The tags to apply to the Dedicated Host Reservation during purchase.

        Parameters:
        tagSpecifications - The tags to apply to the Dedicated Host Reservation during purchase.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagSpecifications

        PurchaseHostReservationRequest.Builder tagSpecifications​(TagSpecification... tagSpecifications)

        The tags to apply to the Dedicated Host Reservation during purchase.

        Parameters:
        tagSpecifications - The tags to apply to the Dedicated Host Reservation during purchase.
        Returns:
        Returns a reference to this object so that method calls can be chained together.