Class S3ActionConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ses.S3ActionConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3ActionConfig>
- Enclosing interface:
- S3ActionConfig
@Stability(Stable)
public static final class S3ActionConfig.Builder
extends Object
implements software.amazon.jsii.Builder<S3ActionConfig>
A builder for
S3ActionConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName(String bucketName) Sets the value ofS3ActionConfig.getBucketName()build()Builds the configured instance.Sets the value ofS3ActionConfig.getKmsKeyArn()objectKeyPrefix(String objectKeyPrefix) Sets the value ofS3ActionConfig.getObjectKeyPrefix()Sets the value ofS3ActionConfig.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
Sets the value ofS3ActionConfig.getBucketName()- Parameters:
bucketName- The name of the Amazon S3 bucket that you want to send incoming mail to. This parameter is required.- Returns:
this
-
kmsKeyArn
Sets the value ofS3ActionConfig.getKmsKeyArn()- Parameters:
kmsKeyArn- The customer master key that Amazon SES should use to encrypt your emails before saving them to the Amazon S3 bucket.- Returns:
this
-
objectKeyPrefix
Sets the value ofS3ActionConfig.getObjectKeyPrefix()- Parameters:
objectKeyPrefix- The key prefix of the Amazon S3 bucket.- Returns:
this
-
topicArn
Sets the value ofS3ActionConfig.getTopicArn()- Parameters:
topicArn- The ARN of the Amazon SNS topic to notify when the message is saved to the Amazon S3 bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3ActionConfig>- Returns:
- a new instance of
S3ActionConfig - Throws:
NullPointerException- if any required attribute was not provided
-