Class CfnReceiptRule.SNSActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnReceiptRule.SNSActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReceiptRule.SNSActionProperty>
- Enclosing interface:
CfnReceiptRule.SNSActionProperty
@Stability(Stable)
public static final class CfnReceiptRule.SNSActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReceiptRule.SNSActionProperty>
A builder for
CfnReceiptRule.SNSActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnReceiptRule.SNSActionProperty.getEncoding()Sets the value ofCfnReceiptRule.SNSActionProperty.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encoding
Sets the value ofCfnReceiptRule.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
Sets the value ofCfnReceiptRule.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<CfnReceiptRule.SNSActionProperty>- Returns:
- a new instance of
CfnReceiptRule.SNSActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-