public static interface FleetSpotMaintenanceStrategies.Builder extends SdkPojo, CopyableBuilder<FleetSpotMaintenanceStrategies.Builder,FleetSpotMaintenanceStrategies>
Modifier and Type | Method and Description |
---|---|
default FleetSpotMaintenanceStrategies.Builder |
capacityRebalance(Consumer<FleetSpotCapacityRebalance.Builder> capacityRebalance)
The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being
interrupted.
|
FleetSpotMaintenanceStrategies.Builder |
capacityRebalance(FleetSpotCapacityRebalance capacityRebalance)
The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being
interrupted.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
FleetSpotMaintenanceStrategies.Builder capacityRebalance(FleetSpotCapacityRebalance capacityRebalance)
The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.
capacityRebalance
- The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of
being interrupted.default FleetSpotMaintenanceStrategies.Builder capacityRebalance(Consumer<FleetSpotCapacityRebalance.Builder> capacityRebalance)
The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.
This is a convenience method that creates an instance of theFleetSpotCapacityRebalance.Builder
avoiding the need to create one manually via FleetSpotCapacityRebalance.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to capacityRebalance(FleetSpotCapacityRebalance)
.
capacityRebalance
- a consumer that will call methods on FleetSpotCapacityRebalance.Builder
capacityRebalance(FleetSpotCapacityRebalance)
Copyright © 2023. All rights reserved.