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