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