Interface SpotMaintenanceStrategies.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SpotMaintenanceStrategies.Builder,SpotMaintenanceStrategies>
,SdkBuilder<SpotMaintenanceStrategies.Builder,SpotMaintenanceStrategies>
,SdkPojo
- Enclosing class:
- SpotMaintenanceStrategies
public static interface SpotMaintenanceStrategies.Builder extends SdkPojo, CopyableBuilder<SpotMaintenanceStrategies.Builder,SpotMaintenanceStrategies>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SpotMaintenanceStrategies.Builder
capacityRebalance(Consumer<SpotCapacityRebalance.Builder> capacityRebalance)
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.SpotMaintenanceStrategies.Builder
capacityRebalance(SpotCapacityRebalance capacityRebalance)
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
capacityRebalance
SpotMaintenanceStrategies.Builder capacityRebalance(SpotCapacityRebalance capacityRebalance)
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.
- Parameters:
capacityRebalance
- The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityRebalance
default SpotMaintenanceStrategies.Builder capacityRebalance(Consumer<SpotCapacityRebalance.Builder> capacityRebalance)
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.
This is a convenience method that creates an instance of theSpotCapacityRebalance.Builder
avoiding the need to create one manually viaSpotCapacityRebalance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityRebalance(SpotCapacityRebalance)
.- Parameters:
capacityRebalance
- a consumer that will call methods onSpotCapacityRebalance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
capacityRebalance(SpotCapacityRebalance)
-
-