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