Class BounceProps.Builder
java.lang.Object
software.amazon.awscdk.services.ses.actions.BounceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BounceProps>
- Enclosing interface:
- BounceProps
@Stability(Stable)
public static final class BounceProps.Builder
extends Object
implements software.amazon.jsii.Builder<BounceProps>
A builder for
BounceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofBounceProps.getSender()template(BounceTemplate template) Sets the value ofBounceProps.getTemplate()Sets the value ofBounceProps.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sender
Sets the value ofBounceProps.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 will be sent.- Returns:
this
-
template
Sets the value ofBounceProps.getTemplate()- Parameters:
template- The template containing the message, reply code and status code. This parameter is required.- Returns:
this
-
topic
Sets the value ofBounceProps.getTopic()- Parameters:
topic- The SNS topic to notify when the bounce action is taken.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BounceProps>- Returns:
- a new instance of
BounceProps - Throws:
NullPointerException- if any required attribute was not provided
-