Class EmailForwardingProps.Builder
- java.lang.Object
-
- de.sebastianhesse.cdk.ses.email.forwarding.EmailForwardingProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmailForwardingProps>
- Enclosing interface:
- EmailForwardingProps
@Stability(Stable) public static final class EmailForwardingProps.Builder extends Object implements software.amazon.jsii.Builder<EmailForwardingProps>
A builder forEmailForwardingProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
domainName
@Stability(Stable) public EmailForwardingProps.Builder domainName(String domainName)
Sets the value ofEmailForwardingProps.getDomainName()- Parameters:
domainName- The domain name for which you want to receive emails using SES, e.g. `example.org`. This parameter is required.- Returns:
this
-
emailMappings
@Stability(Stable) public EmailForwardingProps.Builder emailMappings(List<? extends EmailMapping> emailMappings)
Sets the value ofEmailForwardingProps.getEmailMappings()- Parameters:
emailMappings- A list of email mappings to define the receive email address and target email addresses to which the emails are forwarded to. This parameter is required.- Returns:
this
-
fromPrefix
@Stability(Stable) public EmailForwardingProps.Builder fromPrefix(String fromPrefix)
Sets the value ofEmailForwardingProps.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
-
bucket
@Stability(Stable) public EmailForwardingProps.Builder bucket(software.amazon.awscdk.services.s3.Bucket bucket)
Sets the value ofEmailForwardingProps.getBucket()- Parameters:
bucket- Optional: an S3 bucket to store the received emails. If none is provided, a new one will be created.- Returns:
this
-
bucketPrefix
@Stability(Stable) public EmailForwardingProps.Builder bucketPrefix(String bucketPrefix)
Sets the value ofEmailForwardingProps.getBucketPrefix()- Parameters:
bucketPrefix- Optional: a prefix for the email files that are stored on the S3 bucket.- Returns:
this
-
notificationTopic
@Stability(Stable) public EmailForwardingProps.Builder notificationTopic(software.amazon.awscdk.services.sns.Topic notificationTopic)
Sets the value ofEmailForwardingProps.getNotificationTopic()- Parameters:
notificationTopic- Optional: an SNS topic to receive notifications about sending events like bounces or complaints. The events are defined bynotificationTypesusing {@link NotificationType}. If no topic is defined, a new one will be created.- Returns:
this
-
notificationTypes
@Stability(Stable) public EmailForwardingProps.Builder notificationTypes(List<String> notificationTypes)
Sets the value ofEmailForwardingProps.getNotificationTypes()- Parameters:
notificationTypes- Optional: a list ofNotificationTypes to define which sending events should be subscribed.- Returns:
this
-
verifyDomain
@Stability(Stable) public EmailForwardingProps.Builder verifyDomain(Boolean verifyDomain)
Sets the value ofEmailForwardingProps.getVerifyDomain()- Parameters:
verifyDomain- Optional: true if you want to verify the domain identity in SES, false otherwise.- Returns:
this
-
verifyTargetEmailAddresses
@Stability(Stable) public EmailForwardingProps.Builder verifyTargetEmailAddresses(Boolean verifyTargetEmailAddresses)
Sets the value ofEmailForwardingProps.getVerifyTargetEmailAddresses()- Parameters:
verifyTargetEmailAddresses- Optional: true if you want to initiate the verification of your target email addresses, false otherwise. Iftrue, a verification email is sent out to all target email addresses. Then, the owner of an email address needs to verify it by clicking the link in the verification email. Please note in case you don't verify your sender domain, it's required to verify your target email addresses in order to send mails to them.- Returns:
this
-
build
@Stability(Stable) public EmailForwardingProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EmailForwardingProps>- Returns:
- a new instance of
EmailForwardingProps - Throws:
NullPointerException- if any required attribute was not provided
-
-