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