Class Bounce.Builder

java.lang.Object
software.amazon.awscdk.services.ses.actions.Bounce.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Bounce>
Enclosing class:
Bounce

@Stability(Stable) public static final class Bounce.Builder extends Object implements software.amazon.jsii.Builder<Bounce>
A fluent builder for Bounce.
  • Method Details

    • create

      @Stability(Stable) public static Bounce.Builder create()
      Returns:
      a new instance of Bounce.Builder.
    • sender

      @Stability(Stable) public Bounce.Builder sender(String sender)
      The email address of the sender of the bounced email.

      This is the address from which the bounce message will be sent.

      Parameters:
      sender - The email address of the sender of the bounced email. This parameter is required.
      Returns:
      this
    • template

      @Stability(Stable) public Bounce.Builder template(BounceTemplate template)
      The template containing the message, reply code and status code.

      Parameters:
      template - The template containing the message, reply code and status code. This parameter is required.
      Returns:
      this
    • topic

      @Stability(Stable) public Bounce.Builder topic(ITopic topic)
      The SNS topic to notify when the bounce action is taken.

      Default: no notification

      Parameters:
      topic - The SNS topic to notify when the bounce action is taken. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public Bounce build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Bounce>
      Returns:
      a newly built instance of Bounce.