Class CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty>
- Enclosing interface:
CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty
@Stability(Stable)
public static final class CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty>
A builder for
CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getAsgs()
asgs
(IResolvable asgs) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getAsgs()
build()
Builds the configured instance.capacityMonitoringApproach
(String capacityMonitoringApproach) targetPercent
(Number targetPercent) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getTargetPercent()
timeoutMinutes
(Number timeoutMinutes) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getTimeoutMinutes()
ungraceful
(IResolvable ungraceful) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getUngraceful()
ungraceful
(CfnPlan.Ec2UngracefulProperty ungraceful) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getUngraceful()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
asgs
@Stability(Stable) public CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder asgs(IResolvable asgs) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getAsgs()
- Parameters:
asgs
- The EC2 Auto Scaling groups for the configuration. This parameter is required.- Returns:
this
-
asgs
@Stability(Stable) public CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder asgs(List<? extends Object> asgs) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getAsgs()
- Parameters:
asgs
- The EC2 Auto Scaling groups for the configuration. This parameter is required.- Returns:
this
-
capacityMonitoringApproach
@Stability(Stable) public CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder capacityMonitoringApproach(String capacityMonitoringApproach) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getCapacityMonitoringApproach()
- Parameters:
capacityMonitoringApproach
- The monitoring approach that you specify EC2 Auto Scaling groups for the configuration.- Returns:
this
-
targetPercent
@Stability(Stable) public CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder targetPercent(Number targetPercent) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getTargetPercent()
- Parameters:
targetPercent
- The target percentage that you specify for EC2 Auto Scaling groups.- Returns:
this
-
timeoutMinutes
@Stability(Stable) public CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder timeoutMinutes(Number timeoutMinutes) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getTimeoutMinutes()
- Parameters:
timeoutMinutes
- The timeout value specified for the configuration.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder ungraceful(IResolvable ungraceful) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getUngraceful()
- Parameters:
ungraceful
- The settings for ungraceful execution.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.Builder ungraceful(CfnPlan.Ec2UngracefulProperty ungraceful) Sets the value ofCfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty.getUngraceful()
- Parameters:
ungraceful
- The settings for ungraceful execution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty>
- Returns:
- a new instance of
CfnPlan.Ec2AsgCapacityIncreaseConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-