Class CfnReceiptRulePropsMixin.SNSActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnReceiptRulePropsMixin.SNSActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReceiptRulePropsMixin.SNSActionProperty>
- Enclosing interface:
CfnReceiptRulePropsMixin.SNSActionProperty
@Stability(Stable)
public static final class CfnReceiptRulePropsMixin.SNSActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReceiptRulePropsMixin.SNSActionProperty>
A builder for
CfnReceiptRulePropsMixin.SNSActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnReceiptRulePropsMixin.SNSActionProperty.getEncoding()Sets the value ofCfnReceiptRulePropsMixin.SNSActionProperty.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encoding
@Stability(Stable) public CfnReceiptRulePropsMixin.SNSActionProperty.Builder encoding(String encoding) Sets the value ofCfnReceiptRulePropsMixin.SNSActionProperty.getEncoding()- Parameters:
encoding- The encoding to use for the email within the Amazon SNS notification. The default value isUTF-8. UseBASE64if you need to preserve all special characters, especially when the original message uses a different encoding format.- Returns:
this
-
topicArn
@Stability(Stable) public CfnReceiptRulePropsMixin.SNSActionProperty.Builder topicArn(String topicArn) Sets the value ofCfnReceiptRulePropsMixin.SNSActionProperty.getTopicArn()- Parameters:
topicArn- The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReceiptRulePropsMixin.SNSActionProperty>- Returns:
- a new instance of
CfnReceiptRulePropsMixin.SNSActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-