public static interface SpotMaintenanceStrategies.Builder extends SdkPojo, CopyableBuilder<SpotMaintenanceStrategies.Builder,SpotMaintenanceStrategies>
| Modifier and Type | Method and 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.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSpotMaintenanceStrategies.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 for Linux Instances.
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.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 via SpotCapacityRebalance.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to capacityRebalance(SpotCapacityRebalance).
capacityRebalance - a consumer that will call methods on SpotCapacityRebalance.BuildercapacityRebalance(SpotCapacityRebalance)Copyright © 2023. All rights reserved.