Class CfnAlert.SNSConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAlert.SNSConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlert.SNSConfigurationProperty>
- Enclosing interface:
CfnAlert.SNSConfigurationProperty
@Stability(Stable)
public static final class CfnAlert.SNSConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlert.SNSConfigurationProperty>
A builder for
CfnAlert.SNSConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAlert.SNSConfigurationProperty.getRoleArn()
snsTopicArn
(String snsTopicArn) Sets the value ofCfnAlert.SNSConfigurationProperty.getSnsTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnAlert.SNSConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of the IAM role that has access to the target SNS topic. This parameter is required.- Returns:
this
-
snsTopicArn
Sets the value ofCfnAlert.SNSConfigurationProperty.getSnsTopicArn()
- Parameters:
snsTopicArn
- The ARN of the target SNS topic. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAlert.SNSConfigurationProperty>
- Returns:
- a new instance of
CfnAlert.SNSConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-