Class CfnAlert.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAlert.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlert.ActionProperty>
- Enclosing interface:
CfnAlert.ActionProperty
@Stability(Stable)
public static final class CfnAlert.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlert.ActionProperty>
A builder for
CfnAlert.ActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.lambdaConfiguration
(IResolvable lambdaConfiguration) Sets the value ofCfnAlert.ActionProperty.getLambdaConfiguration()
lambdaConfiguration
(CfnAlert.LambdaConfigurationProperty lambdaConfiguration) Sets the value ofCfnAlert.ActionProperty.getLambdaConfiguration()
snsConfiguration
(IResolvable snsConfiguration) Sets the value ofCfnAlert.ActionProperty.getSnsConfiguration()
snsConfiguration
(CfnAlert.SNSConfigurationProperty snsConfiguration) Sets the value ofCfnAlert.ActionProperty.getSnsConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaConfiguration
@Stability(Stable) public CfnAlert.ActionProperty.Builder lambdaConfiguration(IResolvable lambdaConfiguration) Sets the value ofCfnAlert.ActionProperty.getLambdaConfiguration()
- Parameters:
lambdaConfiguration
- A configuration for an AWS Lambda channel.- Returns:
this
-
lambdaConfiguration
@Stability(Stable) public CfnAlert.ActionProperty.Builder lambdaConfiguration(CfnAlert.LambdaConfigurationProperty lambdaConfiguration) Sets the value ofCfnAlert.ActionProperty.getLambdaConfiguration()
- Parameters:
lambdaConfiguration
- A configuration for an AWS Lambda channel.- Returns:
this
-
snsConfiguration
@Stability(Stable) public CfnAlert.ActionProperty.Builder snsConfiguration(IResolvable snsConfiguration) Sets the value ofCfnAlert.ActionProperty.getSnsConfiguration()
- Parameters:
snsConfiguration
- A configuration for an Amazon SNS channel.- Returns:
this
-
snsConfiguration
@Stability(Stable) public CfnAlert.ActionProperty.Builder snsConfiguration(CfnAlert.SNSConfigurationProperty snsConfiguration) Sets the value ofCfnAlert.ActionProperty.getSnsConfiguration()
- Parameters:
snsConfiguration
- A configuration for an Amazon SNS channel.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAlert.ActionProperty>
- Returns:
- a new instance of
CfnAlert.ActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-