Class EmailForwardingRuleProps.Builder
- java.lang.Object
-
- de.sebastianhesse.cdk.ses.email.forwarding.EmailForwardingRuleProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmailForwardingRuleProps>
- Enclosing interface:
- EmailForwardingRuleProps
@Stability(Stable) public static final class EmailForwardingRuleProps.Builder extends Object implements software.amazon.jsii.Builder<EmailForwardingRuleProps>
A builder forEmailForwardingRuleProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
domainName
@Stability(Stable) public EmailForwardingRuleProps.Builder domainName(String domainName)
Sets the value ofEmailForwardingRuleProps.getDomainName()- Parameters:
domainName- The domain name of the email addresses, e.g. 'example.org'. It is used to connect the `fromPrefix` and `receivePrefix` properties with a proper domain. This parameter is required.- Returns:
this
-
emailMapping
@Stability(Stable) public EmailForwardingRuleProps.Builder emailMapping(List<? extends EmailMapping> emailMapping)
Sets the value ofEmailForwardingRuleProps.getEmailMapping()- Parameters:
emailMapping- An email mapping similar to what the NPM library `aws-lambda-ses-forwarder` expects. This parameter is required.- Returns:
this
-
fromPrefix
@Stability(Stable) public EmailForwardingRuleProps.Builder fromPrefix(String fromPrefix)
Sets the value ofEmailForwardingRuleProps.getFromPrefix()- Parameters:
fromPrefix- A prefix that is used as the sender address of the forwarded mail, e.g. `noreply`. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public EmailForwardingRuleProps.Builder id(String id)
Sets the value ofEmailForwardingRuleProps.getId()- Parameters:
id- An id for the rule. This parameter is required. This will mainly be used to provide a name to the underlying rule but may also be used as a prefix for other resources.- Returns:
this
-
ruleSet
@Stability(Stable) public EmailForwardingRuleProps.Builder ruleSet(software.amazon.awscdk.services.ses.IReceiptRuleSet ruleSet)
Sets the value ofEmailForwardingRuleProps.getRuleSet()- Parameters:
ruleSet- The rule set this rule belongs to. This parameter is required.- Returns:
this
-
bucket
@Stability(Stable) public EmailForwardingRuleProps.Builder bucket(software.amazon.awscdk.services.s3.Bucket bucket)
Sets the value ofEmailForwardingRuleProps.getBucket()- Parameters:
bucket- A bucket to store the email files to. If no bucket is provided, a new one will be created using a managed KMS key to encrypt the bucket.- Returns:
this
-
bucketPrefix
@Stability(Stable) public EmailForwardingRuleProps.Builder bucketPrefix(String bucketPrefix)
Sets the value ofEmailForwardingRuleProps.getBucketPrefix()- Parameters:
bucketPrefix- A prefix for the email files that are saved to the bucket.- Returns:
this
-
enableLambdaLogging
@Stability(Stable) public EmailForwardingRuleProps.Builder enableLambdaLogging(Boolean enableLambdaLogging)
Sets the value ofEmailForwardingRuleProps.getEnableLambdaLogging()- Parameters:
enableLambdaLogging- Enable log messages in Lambda function which forwards emails.- Returns:
this
-
build
@Stability(Stable) public EmailForwardingRuleProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EmailForwardingRuleProps>- Returns:
- a new instance of
EmailForwardingRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-
-