Class SnsProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • topic

      @Stability(Stable) public SnsProps.Builder topic(ITopic topic)
      Sets the value of SnsProps.getTopic()
      Parameters:
      topic - The SNS topic to notify. This parameter is required.
      Returns:
      this
    • encoding

      @Stability(Stable) public SnsProps.Builder encoding(EmailEncoding encoding)
      Sets the value of SnsProps.getEncoding()
      Parameters:
      encoding - The encoding to use for the email within the Amazon SNS notification.
      Returns:
      this
    • build

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