Interface ReservedCapacityOptionsRequest.Builder

  • Method Details

    • allocationStrategy

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

      ReservedCapacityOptionsRequest.Builder reservationTypesWithStrings(Collection<String> reservationTypes)

      The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. This is an ordered list: EC2 Fleet attempts to launch instances into each Capacity Reservation type in the order that you specify them before moving on to the next type.

      Parameters:
      reservationTypes - The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. This is an ordered list: EC2 Fleet attempts to launch instances into each Capacity Reservation type in the order that you specify them before moving on to the next type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservationTypesWithStrings

      ReservedCapacityOptionsRequest.Builder reservationTypesWithStrings(String... reservationTypes)

      The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. This is an ordered list: EC2 Fleet attempts to launch instances into each Capacity Reservation type in the order that you specify them before moving on to the next type.

      Parameters:
      reservationTypes - The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. This is an ordered list: EC2 Fleet attempts to launch instances into each Capacity Reservation type in the order that you specify them before moving on to the next type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservationTypes

      The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. This is an ordered list: EC2 Fleet attempts to launch instances into each Capacity Reservation type in the order that you specify them before moving on to the next type.

      Parameters:
      reservationTypes - The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. This is an ordered list: EC2 Fleet attempts to launch instances into each Capacity Reservation type in the order that you specify them before moving on to the next type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservationTypes

      ReservedCapacityOptionsRequest.Builder reservationTypes(FleetReservationType... reservationTypes)

      The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. This is an ordered list: EC2 Fleet attempts to launch instances into each Capacity Reservation type in the order that you specify them before moving on to the next type.

      Parameters:
      reservationTypes - The types of Capacity Reservations to use for fulfilling the EC2 Fleet request. This is an ordered list: EC2 Fleet attempts to launch instances into each Capacity Reservation type in the order that you specify them before moving on to the next type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityReservationTarget

      ReservedCapacityOptionsRequest.Builder capacityReservationTarget(FleetCapacityReservationTargetRequest capacityReservationTarget)

      The Capacity Reservations or Capacity Reservation Resource Groups to use for fulfilling the EC2 Fleet request. You can specify Capacity Reservation IDs or a Capacity Reservation Resource Group ARN, but not both.

      Parameters:
      capacityReservationTarget - The Capacity Reservations or Capacity Reservation Resource Groups to use for fulfilling the EC2 Fleet request. You can specify Capacity Reservation IDs or a Capacity Reservation Resource Group ARN, but not both.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityReservationTarget

      default ReservedCapacityOptionsRequest.Builder capacityReservationTarget(Consumer<FleetCapacityReservationTargetRequest.Builder> capacityReservationTarget)

      The Capacity Reservations or Capacity Reservation Resource Groups to use for fulfilling the EC2 Fleet request. You can specify Capacity Reservation IDs or a Capacity Reservation Resource Group ARN, but not both.

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

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

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

      ReservedCapacityOptionsRequest.Builder reservedCapacityFallbackOptions(ReservedCapacityFallbackOptionsRequest reservedCapacityFallbackOptions)

      The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity. This member takes a ReservedCapacityFallbackOptionsRequest structure, in which you set MarketTypes to the instance purchasing options to fall back to.

      Parameters:
      reservedCapacityFallbackOptions - The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity. This member takes a ReservedCapacityFallbackOptionsRequest structure, in which you set MarketTypes to the instance purchasing options to fall back to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservedCapacityFallbackOptions

      default ReservedCapacityOptionsRequest.Builder reservedCapacityFallbackOptions(Consumer<ReservedCapacityFallbackOptionsRequest.Builder> reservedCapacityFallbackOptions)

      The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity. This member takes a ReservedCapacityFallbackOptionsRequest structure, in which you set MarketTypes to the instance purchasing options to fall back to.

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

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

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