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. UTF-8 is easier to use, but may not preserve all special characters when a message was encoded with a different encoding format. Base64 preserves all special characters. The default value is UTF-8.- Returns:
this
-
topicArn
Sets the value ofCfnReceiptRule.SNSActionProperty.getTopicArn()
- Parameters:
topicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS.For more information about Amazon SNS topics, see the Amazon SNS Developer Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReceiptRule.SNSActionProperty>
- Returns:
- a new instance of
CfnReceiptRule.SNSActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-