Class CfnReceiptRulePropsMixin.BounceActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnReceiptRulePropsMixin.BounceActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReceiptRulePropsMixin.BounceActionProperty>
- Enclosing interface:
CfnReceiptRulePropsMixin.BounceActionProperty
@Stability(Stable)
public static final class CfnReceiptRulePropsMixin.BounceActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReceiptRulePropsMixin.BounceActionProperty>
A builder for
CfnReceiptRulePropsMixin.BounceActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getMessage()Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getSender()smtpReplyCode(String smtpReplyCode) Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getSmtpReplyCode()statusCode(String statusCode) Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getStatusCode()Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
message
@Stability(Stable) public CfnReceiptRulePropsMixin.BounceActionProperty.Builder message(String message) Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getMessage()- Parameters:
message- Human-readable text to include in the bounce message.- Returns:
this
-
sender
@Stability(Stable) public CfnReceiptRulePropsMixin.BounceActionProperty.Builder sender(String sender) Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getSender()- Parameters:
sender- The email address of the sender of the bounced email. This is the address from which the bounce message is sent.- Returns:
this
-
smtpReplyCode
@Stability(Stable) public CfnReceiptRulePropsMixin.BounceActionProperty.Builder smtpReplyCode(String smtpReplyCode) Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getSmtpReplyCode()- Parameters:
smtpReplyCode- The SMTP reply code, as defined by RFC 5321 .- Returns:
this
-
statusCode
@Stability(Stable) public CfnReceiptRulePropsMixin.BounceActionProperty.Builder statusCode(String statusCode) Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getStatusCode()- Parameters:
statusCode- The SMTP enhanced status code, as defined by RFC 3463 .- Returns:
this
-
topicArn
@Stability(Stable) public CfnReceiptRulePropsMixin.BounceActionProperty.Builder topicArn(String topicArn) Sets the value ofCfnReceiptRulePropsMixin.BounceActionProperty.getTopicArn()- Parameters:
topicArn- The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnReceiptRulePropsMixin.BounceActionProperty>- Returns:
- a new instance of
CfnReceiptRulePropsMixin.BounceActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-