Interface ReservedCapacityOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ReservedCapacityOptions.Builder,,ReservedCapacityOptions> SdkBuilder<ReservedCapacityOptions.Builder,,ReservedCapacityOptions> SdkPojo
- Enclosing class:
ReservedCapacityOptions
-
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.reservationTypes(Collection<FleetReservationType> reservationTypes) The types of Capacity Reservations used for fulfilling the EC2 Fleet request.reservationTypes(FleetReservationType... reservationTypes) The types of Capacity Reservations used for fulfilling the EC2 Fleet request.reservationTypesWithStrings(String... reservationTypes) The types of Capacity Reservations used for fulfilling the EC2 Fleet request.reservationTypesWithStrings(Collection<String> reservationTypes) The types of Capacity Reservations used for fulfilling the EC2 Fleet request.default ReservedCapacityOptions.BuilderreservedCapacityFallbackOptions(Consumer<ReservedCapacityFallbackOptions.Builder> reservedCapacityFallbackOptions) The fallback behavior for the EC2 Fleet when there is not enough reserved capacity available to meet the target capacity.reservedCapacityFallbackOptions(ReservedCapacityFallbackOptions 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
ReservedCapacityOptions.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
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
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
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 theReservedCapacityFallbackOptions.Builderavoiding the need to create one manually viaReservedCapacityFallbackOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreservedCapacityFallbackOptions(ReservedCapacityFallbackOptions).- Parameters:
reservedCapacityFallbackOptions- a consumer that will call methods onReservedCapacityFallbackOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-