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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofS3Props.getBucket()build()Builds the configured instance.Sets the value ofS3Props.getKmsKey()objectKeyPrefix(String objectKeyPrefix) Sets the value ofS3Props.getObjectKeyPrefix()Sets the value ofS3Props.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofS3Props.getBucket()- Parameters:
bucket- The S3 bucket that incoming email will be saved to. This parameter is required.- Returns:
this
-
kmsKey
Sets the value ofS3Props.getKmsKey()- Parameters:
kmsKey- The master key that SES should use to encrypt your emails before saving them to the S3 bucket.- Returns:
this
-
objectKeyPrefix
Sets the value ofS3Props.getObjectKeyPrefix()- Parameters:
objectKeyPrefix- The key prefix of the S3 bucket.- Returns:
this
-
topic
Sets the value ofS3Props.getTopic()- Parameters:
topic- The SNS topic to notify when the S3 action is taken.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3Props>- Returns:
- a new instance of
S3Props - Throws:
NullPointerException- if any required attribute was not provided
-