Class CfnEC2Fleet.MaintenanceStrategiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnEC2Fleet.MaintenanceStrategiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2Fleet.MaintenanceStrategiesProperty>
- Enclosing interface:
CfnEC2Fleet.MaintenanceStrategiesProperty
@Stability(Stable)
public static final class CfnEC2Fleet.MaintenanceStrategiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2Fleet.MaintenanceStrategiesProperty>
A builder for
CfnEC2Fleet.MaintenanceStrategiesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.capacityRebalance
(IResolvable capacityRebalance) Sets the value ofCfnEC2Fleet.MaintenanceStrategiesProperty.getCapacityRebalance()
capacityRebalance
(CfnEC2Fleet.CapacityRebalanceProperty capacityRebalance) Sets the value ofCfnEC2Fleet.MaintenanceStrategiesProperty.getCapacityRebalance()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityRebalance
@Stability(Stable) public CfnEC2Fleet.MaintenanceStrategiesProperty.Builder capacityRebalance(IResolvable capacityRebalance) Sets the value ofCfnEC2Fleet.MaintenanceStrategiesProperty.getCapacityRebalance()
- Parameters:
capacityRebalance
- The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.- Returns:
this
-
capacityRebalance
@Stability(Stable) public CfnEC2Fleet.MaintenanceStrategiesProperty.Builder capacityRebalance(CfnEC2Fleet.CapacityRebalanceProperty capacityRebalance) Sets the value ofCfnEC2Fleet.MaintenanceStrategiesProperty.getCapacityRebalance()
- Parameters:
capacityRebalance
- The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEC2Fleet.MaintenanceStrategiesProperty>
- Returns:
- a new instance of
CfnEC2Fleet.MaintenanceStrategiesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-