Class CfnService.DeploymentAlarmsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.DeploymentAlarmsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.DeploymentAlarmsProperty>
- Enclosing interface:
CfnService.DeploymentAlarmsProperty
@Stability(Stable)
public static final class CfnService.DeploymentAlarmsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.DeploymentAlarmsProperty>
A builder for
CfnService.DeploymentAlarmsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalarmNames(List<String> alarmNames) Sets the value ofCfnService.DeploymentAlarmsProperty.getAlarmNames()build()Builds the configured instance.Sets the value ofCfnService.DeploymentAlarmsProperty.getEnable()enable(IResolvable enable) Sets the value ofCfnService.DeploymentAlarmsProperty.getEnable()Sets the value ofCfnService.DeploymentAlarmsProperty.getRollback()rollback(IResolvable rollback) Sets the value ofCfnService.DeploymentAlarmsProperty.getRollback()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmNames
@Stability(Stable) public CfnService.DeploymentAlarmsProperty.Builder alarmNames(List<String> alarmNames) Sets the value ofCfnService.DeploymentAlarmsProperty.getAlarmNames()- Parameters:
alarmNames- One or more CloudWatch alarm names. This parameter is required. Use a "," to separate the alarms.- Returns:
this
-
enable
Sets the value ofCfnService.DeploymentAlarmsProperty.getEnable()- Parameters:
enable- Determines whether to use the CloudWatch alarm option in the service deployment process. This parameter is required.- Returns:
this
-
enable
Sets the value ofCfnService.DeploymentAlarmsProperty.getEnable()- Parameters:
enable- Determines whether to use the CloudWatch alarm option in the service deployment process. This parameter is required.- Returns:
this
-
rollback
Sets the value ofCfnService.DeploymentAlarmsProperty.getRollback()- Parameters:
rollback- Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. This parameter is required. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.- Returns:
this
-
rollback
@Stability(Stable) public CfnService.DeploymentAlarmsProperty.Builder rollback(IResolvable rollback) Sets the value ofCfnService.DeploymentAlarmsProperty.getRollback()- Parameters:
rollback- Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. This parameter is required. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.DeploymentAlarmsProperty>- Returns:
- a new instance of
CfnService.DeploymentAlarmsProperty - Throws:
NullPointerException- if any required attribute was not provided
-