Class DeploymentAlarmConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.DeploymentAlarmConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentAlarmConfig>
- Enclosing interface:
DeploymentAlarmConfig
@Stability(Stable)
public static final class DeploymentAlarmConfig.Builder
extends Object
implements software.amazon.jsii.Builder<DeploymentAlarmConfig>
A builder for
DeploymentAlarmConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalarmNames(List<String> alarmNames) Sets the value ofDeploymentAlarmConfig.getAlarmNames()behavior(AlarmBehavior behavior) Sets the value ofDeploymentAlarmOptions.getBehavior()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmNames
Sets the value ofDeploymentAlarmConfig.getAlarmNames()- Parameters:
alarmNames- List of alarm names to monitor during deployments. This parameter is required.- Returns:
this
-
behavior
Sets the value ofDeploymentAlarmOptions.getBehavior()- Parameters:
behavior- Default rollback on alarm.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DeploymentAlarmConfig>- Returns:
- a new instance of
DeploymentAlarmConfig - Throws:
NullPointerException- if any required attribute was not provided
-