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
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 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 for Linux Instances.
- 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 for Linux Instances.- 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 for Linux Instances.
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:
-