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 Details

    • Builder

      public Builder()
  • Method Details

    • sender

      @Stability(Stable) public BounceProps.Builder sender(String sender)
      Sets the value of BounceProps.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

      @Stability(Stable) public BounceProps.Builder template(BounceTemplate template)
      Sets the value of BounceProps.getTemplate()
      Parameters:
      template - The template containing the message, reply code and status code. This parameter is required.
      Returns:
      this
    • topic

      @Stability(Stable) public BounceProps.Builder topic(ITopic topic)
      Sets the value of BounceProps.getTopic()
      Parameters:
      topic - The SNS topic to notify when the bounce action is taken.
      Returns:
      this
    • build

      @Stability(Stable) public BounceProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<BounceProps>
      Returns:
      a new instance of BounceProps
      Throws:
      NullPointerException - if any required attribute was not provided