All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.ses.actions.BounceTemplate Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.ses.actions;

/**
 * A bounce template.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.ses.actions.*;
 * BounceTemplate bounceTemplate = BounceTemplate.MAILBOX_DOES_NOT_EXIST;
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.72.0 (build 4b8828b)", date = "2022-12-21T20:56:28.691Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.ses.actions.$Module.class, fqn = "@aws-cdk/aws-ses-actions.BounceTemplate") public class BounceTemplate extends software.amazon.jsii.JsiiObject { protected BounceTemplate(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected BounceTemplate(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } static { MAILBOX_DOES_NOT_EXIST = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.ses.actions.BounceTemplate.class, "MAILBOX_DOES_NOT_EXIST", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ses.actions.BounceTemplate.class)); MAILBOX_FULL = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.ses.actions.BounceTemplate.class, "MAILBOX_FULL", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ses.actions.BounceTemplate.class)); MESSAGE_CONTENT_REJECTED = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.ses.actions.BounceTemplate.class, "MESSAGE_CONTENT_REJECTED", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ses.actions.BounceTemplate.class)); MESSAGE_TOO_LARGE = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.ses.actions.BounceTemplate.class, "MESSAGE_TOO_LARGE", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ses.actions.BounceTemplate.class)); TEMPORARY_FAILURE = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.ses.actions.BounceTemplate.class, "TEMPORARY_FAILURE", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ses.actions.BounceTemplate.class)); } /** * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public BounceTemplate(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ses.actions.BounceTemplateProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static software.amazon.awscdk.services.ses.actions.BounceTemplate MAILBOX_DOES_NOT_EXIST; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static software.amazon.awscdk.services.ses.actions.BounceTemplate MAILBOX_FULL; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static software.amazon.awscdk.services.ses.actions.BounceTemplate MESSAGE_CONTENT_REJECTED; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static software.amazon.awscdk.services.ses.actions.BounceTemplate MESSAGE_TOO_LARGE; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static software.amazon.awscdk.services.ses.actions.BounceTemplate TEMPORARY_FAILURE; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ses.actions.BounceTemplateProps getProps() { return software.amazon.jsii.Kernel.get(this, "props", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ses.actions.BounceTemplateProps.class)); } /** * A fluent builder for {@link software.amazon.awscdk.services.ses.actions.BounceTemplate}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create() { return new Builder(); } private final software.amazon.awscdk.services.ses.actions.BounceTemplateProps.Builder props; private Builder() { this.props = new software.amazon.awscdk.services.ses.actions.BounceTemplateProps.Builder(); } /** * Human-readable text to include in the bounce message. *

* @return {@code this} * @param message Human-readable text to include in the bounce message. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder message(final java.lang.String message) { this.props.message(message); return this; } /** * The SMTP reply code, as defined by RFC 5321. *

* @return {@code this} * @see https://tools.ietf.org/html/rfc5321 * @param smtpReplyCode The SMTP reply code, as defined by RFC 5321. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder smtpReplyCode(final java.lang.String smtpReplyCode) { this.props.smtpReplyCode(smtpReplyCode); return this; } /** * The SMTP enhanced status code, as defined by RFC 3463. *

* @return {@code this} * @see https://tools.ietf.org/html/rfc3463 * @param statusCode The SMTP enhanced status code, as defined by RFC 3463. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder statusCode(final java.lang.String statusCode) { this.props.statusCode(statusCode); return this; } /** * @returns a newly built instance of {@link software.amazon.awscdk.services.ses.actions.BounceTemplate}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public software.amazon.awscdk.services.ses.actions.BounceTemplate build() { return new software.amazon.awscdk.services.ses.actions.BounceTemplate( this.props.build() ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy