Class DeploymentAlarmOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.DeploymentAlarmOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentAlarmOptions>
- Enclosing interface:
DeploymentAlarmOptions
@Stability(Stable)
public static final class DeploymentAlarmOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DeploymentAlarmOptions>
A builder for
DeploymentAlarmOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbehavior
(AlarmBehavior behavior) Sets the value ofDeploymentAlarmOptions.getBehavior()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
behavior
Sets the value ofDeploymentAlarmOptions.getBehavior()
- Parameters:
behavior
- Default rollback on alarm.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DeploymentAlarmOptions>
- Returns:
- a new instance of
DeploymentAlarmOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-