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
Modifier and TypeMethodDescriptioncapacityRebalance(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.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.Builderavoiding the need to create one manually viaSpotCapacityRebalance.builder().When the
Consumercompletes,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:
-