Class CfnAlertMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lookoutmetrics.CfnAlertMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlertMixinProps>
- Enclosing interface:
CfnAlertMixinProps
@Stability(Stable)
public static final class CfnAlertMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlertMixinProps>
A builder for
CfnAlertMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAlertMixinProps.getAction()action(IResolvable action) Sets the value ofCfnAlertMixinProps.getAction()alertDescription(String alertDescription) Sets the value ofCfnAlertMixinProps.getAlertDescription()Sets the value ofCfnAlertMixinProps.getAlertName()alertSensitivityThreshold(Number alertSensitivityThreshold) Sets the value ofCfnAlertMixinProps.getAlertSensitivityThreshold()anomalyDetectorArn(String anomalyDetectorArn) Sets the value ofCfnAlertMixinProps.getAnomalyDetectorArn()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnAlertMixinProps.getAction()- Parameters:
action- Action that will be triggered when there is an alert.- Returns:
this
-
action
@Stability(Stable) public CfnAlertMixinProps.Builder action(CfnAlertPropsMixin.ActionProperty action) Sets the value ofCfnAlertMixinProps.getAction()- Parameters:
action- Action that will be triggered when there is an alert.- Returns:
this
-
alertDescription
Sets the value ofCfnAlertMixinProps.getAlertDescription()- Parameters:
alertDescription- A description of the alert.- Returns:
this
-
alertName
Sets the value ofCfnAlertMixinProps.getAlertName()- Parameters:
alertName- The name of the alert.- Returns:
this
-
alertSensitivityThreshold
@Stability(Stable) public CfnAlertMixinProps.Builder alertSensitivityThreshold(Number alertSensitivityThreshold) Sets the value ofCfnAlertMixinProps.getAlertSensitivityThreshold()- Parameters:
alertSensitivityThreshold- An integer from 0 to 100 specifying the alert sensitivity threshold.- Returns:
this
-
anomalyDetectorArn
Sets the value ofCfnAlertMixinProps.getAnomalyDetectorArn()- Parameters:
anomalyDetectorArn- The ARN of the detector to which the alert is attached.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlertMixinProps>- Returns:
- a new instance of
CfnAlertMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-