Class BounceTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.ses.actions.BounceTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BounceTemplateProps>
- Enclosing interface:
BounceTemplateProps
@Stability(Stable)
public static final class BounceTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<BounceTemplateProps>
A builder for
BounceTemplateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofBounceTemplateProps.getMessage()
smtpReplyCode
(String smtpReplyCode) Sets the value ofBounceTemplateProps.getSmtpReplyCode()
statusCode
(String statusCode) Sets the value ofBounceTemplateProps.getStatusCode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
message
Sets the value ofBounceTemplateProps.getMessage()
- Parameters:
message
- Human-readable text to include in the bounce message. This parameter is required.- Returns:
this
-
smtpReplyCode
Sets the value ofBounceTemplateProps.getSmtpReplyCode()
- Parameters:
smtpReplyCode
- The SMTP reply code, as defined by RFC 5321. This parameter is required.- Returns:
this
-
statusCode
Sets the value ofBounceTemplateProps.getStatusCode()
- Parameters:
statusCode
- The SMTP enhanced status code, as defined by RFC 3463.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BounceTemplateProps>
- Returns:
- a new instance of
BounceTemplateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-