@Stability(value=Stable) public static final class EmailMapping.Builder extends Object implements software.amazon.jsii.Builder<EmailMapping>
EmailMapping| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EmailMapping |
build()
Builds the configured instance.
|
EmailMapping.Builder |
receiveEmail(String receiveEmail)
Sets the value of
EmailMapping.getReceiveEmail() |
EmailMapping.Builder |
receivePrefix(String receivePrefix)
Sets the value of
EmailMapping.getReceivePrefix() |
EmailMapping.Builder |
targetEmails(List<String> targetEmails)
Sets the value of
EmailMapping.getTargetEmails() |
@Stability(value=Stable) public EmailMapping.Builder targetEmails(List<String> targetEmails)
EmailMapping.getTargetEmails()targetEmails - A list of target email addresses that should receive the forwarded emails for the given email addresses matched by either `receiveEmail` or `receivePrefix`. This parameter is required.
Make sure that you only specify email addresses that are verified by SES. Otherwise SES won't send them out.
Example: ['foobar@gmail.com', 'foo+bar@gmail.com', 'whatever@example.org']
this@Stability(value=Stable) public EmailMapping.Builder receiveEmail(String receiveEmail)
EmailMapping.getReceiveEmail()receiveEmail - You can define a string that is matching an email address, e.g. `hello@example.org`.
If this property is defined, the receivePrefix will be ignored. You must define either this property or receivePrefix, otherwise no emails will be forwarded.this@Stability(value=Stable) public EmailMapping.Builder receivePrefix(String receivePrefix)
EmailMapping.getReceivePrefix()receivePrefix - A short way to match a specific email addresses by only providing a prefix, e.g. `hello`. The prefix will be combined with the given domain name from EmailForwardingRuleProps. If an email was sent to this specific email address, all emails matching this receiver will be forwarded to all email addresses defined in `targetEmails`.
If receiveEmail property is defined as well, then receiveEmail is preferred. Hence, only define one of them.this@Stability(value=Stable) public EmailMapping build()
build in interface software.amazon.jsii.Builder<EmailMapping>EmailMappingNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.