Interface PurchaseHostReservationRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<PurchaseHostReservationRequest.Builder,PurchaseHostReservationRequest>, Ec2Request.Builder, SdkBuilder<PurchaseHostReservationRequest.Builder,PurchaseHostReservationRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
PurchaseHostReservationRequest

public static interface PurchaseHostReservationRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<PurchaseHostReservationRequest.Builder,PurchaseHostReservationRequest>
  • 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

      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:
    • 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:
    • 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

      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

      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

      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

      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.
    • tagSpecifications

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

      This is a convenience method that creates an instance of the TagSpecification.Builder avoiding the need to create one manually via TagSpecification.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tagSpecifications(List<TagSpecification>).

      Parameters:
      tagSpecifications - a consumer that will call methods on TagSpecification.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      PurchaseHostReservationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.