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