Interface ReservedCapacityOptionsRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ReservedCapacityOptionsRequest.Builder,,ReservedCapacityOptionsRequest> SdkBuilder<ReservedCapacityOptionsRequest.Builder,,ReservedCapacityOptionsRequest> SdkPojo
- Enclosing class:
ReservedCapacityOptionsRequest
-
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(String allocationStrategy) The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify.allocationStrategy(ReservedCapacityAllocationStrategy allocationStrategy) The strategy that determines the order in which EC2 Fleet launches instances across the reservation types that you specify.capacityReservationTarget(Consumer<FleetCapacityReservationTargetRequest.Builder> capacityReservationTarget) The Capacity Reservations or Capacity Reservation Resource Groups to use for fulfilling the EC2 Fleet request.capacityReservationTarget(FleetCapacityReservationTargetRequest capacityReservationTarget) The Capacity Reservations or Capacity Reservation Resource Groups to use for fulfilling the EC2 Fleet request.reservationTypes(Collection<FleetReservationType> reservationTypes) The types of Capacity Reservations to use for fulfilling the EC2 Fleet request.reservationTypes(FleetReservationType... reservationTypes) The types of Capacity Reservations to use for fulfilling the EC2 Fleet request.reservationTypesWithStrings(String... reservationTypes) The types of Capacity Reservations to use for fulfilling the EC2 Fleet request.reservationTypesWithStrings(Collection<String> reservationTypes) The types of Capacity Reservations to use for fulfilling the EC2 Fleet request.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.reservedCapacityFallbackOptions(ReservedCapacityFallbackOptionsRequest reservedCapacityFallbackOptions) The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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 isprioritized, 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
ReservedCapacityOptionsRequest.Builder allocationStrategy(ReservedCapacityAllocationStrategy 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 isprioritized, 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
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(Collection<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.
-
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 theFleetCapacityReservationTargetRequest.Builderavoiding the need to create one manually viaFleetCapacityReservationTargetRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapacityReservationTarget(FleetCapacityReservationTargetRequest).- Parameters:
capacityReservationTarget- a consumer that will call methods onFleetCapacityReservationTargetRequest.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
ReservedCapacityFallbackOptionsRequeststructure, in which you setMarketTypesto 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 aReservedCapacityFallbackOptionsRequeststructure, in which you setMarketTypesto 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
This is a convenience method that creates an instance of theReservedCapacityFallbackOptionsRequeststructure, in which you setMarketTypesto the instance purchasing options to fall back to.ReservedCapacityFallbackOptionsRequest.Builderavoiding the need to create one manually viaReservedCapacityFallbackOptionsRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreservedCapacityFallbackOptions(ReservedCapacityFallbackOptionsRequest).- Parameters:
reservedCapacityFallbackOptions- a consumer that will call methods onReservedCapacityFallbackOptionsRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-