Interface ReservedCapacityOptions.Builder

  • Method Details

    • allocationStrategy

      ReservedCapacityOptions.Builder allocationStrategy(String allocationStrategy)

      The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify. The only supported value is prioritized, which launches instances in the priority order that you specify in your launch template overrides. If you don't specify an allocation strategy, instances are launched in a random order.

      Parameters:
      allocationStrategy - The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify. The only supported value is prioritized, which launches instances in the priority order that you specify in your launch template overrides. If you don't specify an allocation strategy, instances are launched in a random order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • allocationStrategy

      The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify. The only supported value is prioritized, which launches instances in the priority order that you specify in your launch template overrides. If you don't specify an allocation strategy, instances are launched in a random order.

      Parameters:
      allocationStrategy - The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify. The only supported value is prioritized, which launches instances in the priority order that you specify in your launch template overrides. If you don't specify an allocation strategy, instances are launched in a random order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reservationTypesWithStrings

      ReservedCapacityOptions.Builder reservationTypesWithStrings(Collection<String> reservationTypes)

      The types of Capacity Reservations used for fulfilling the EC2 Fleet request.

      Parameters:
      reservationTypes - The types of Capacity Reservations used for fulfilling the EC2 Fleet request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservationTypesWithStrings

      ReservedCapacityOptions.Builder reservationTypesWithStrings(String... reservationTypes)

      The types of Capacity Reservations used for fulfilling the EC2 Fleet request.

      Parameters:
      reservationTypes - The types of Capacity Reservations used for fulfilling the EC2 Fleet request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservationTypes

      The types of Capacity Reservations used for fulfilling the EC2 Fleet request.

      Parameters:
      reservationTypes - The types of Capacity Reservations used for fulfilling the EC2 Fleet request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservationTypes

      ReservedCapacityOptions.Builder reservationTypes(FleetReservationType... reservationTypes)

      The types of Capacity Reservations used for fulfilling the EC2 Fleet request.

      Parameters:
      reservationTypes - The types of Capacity Reservations used for fulfilling the EC2 Fleet request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservedCapacityFallbackOptions

      ReservedCapacityOptions.Builder reservedCapacityFallbackOptions(ReservedCapacityFallbackOptions reservedCapacityFallbackOptions)

      The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity.

      Parameters:
      reservedCapacityFallbackOptions - The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservedCapacityFallbackOptions

      default ReservedCapacityOptions.Builder reservedCapacityFallbackOptions(Consumer<ReservedCapacityFallbackOptions.Builder> reservedCapacityFallbackOptions)

      The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to reservedCapacityFallbackOptions(ReservedCapacityFallbackOptions).

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