Class S3Props.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • bucket

      @Stability(Stable) public S3Props.Builder bucket(IBucket bucket)
      Sets the value of S3Props.getBucket()
      Parameters:
      bucket - The S3 bucket that incoming email will be saved to. This parameter is required.
      Returns:
      this
    • kmsKey

      @Stability(Stable) public S3Props.Builder kmsKey(IKey kmsKey)
      Sets the value of S3Props.getKmsKey()
      Parameters:
      kmsKey - The master key that SES should use to encrypt your emails before saving them to the S3 bucket.
      Returns:
      this
    • objectKeyPrefix

      @Stability(Stable) public S3Props.Builder objectKeyPrefix(String objectKeyPrefix)
      Parameters:
      objectKeyPrefix - The key prefix of the S3 bucket.
      Returns:
      this
    • topic

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

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