Class ReceiptRuleOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ses.ReceiptRuleOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ReceiptRuleOptions>
- Enclosing interface:
ReceiptRuleOptions
@Stability(Stable)
public static final class ReceiptRuleOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ReceiptRuleOptions>
A builder for
ReceiptRuleOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(List<? extends IReceiptRuleAction> actions) Sets the value ofReceiptRuleOptions.getActions()
after
(IReceiptRule after) Sets the value ofReceiptRuleOptions.getAfter()
build()
Builds the configured instance.Sets the value ofReceiptRuleOptions.getEnabled()
receiptRuleName
(String receiptRuleName) Sets the value ofReceiptRuleOptions.getReceiptRuleName()
recipients
(List<String> recipients) Sets the value ofReceiptRuleOptions.getRecipients()
scanEnabled
(Boolean scanEnabled) Sets the value ofReceiptRuleOptions.getScanEnabled()
Sets the value ofReceiptRuleOptions.getTlsPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
@Stability(Stable) public ReceiptRuleOptions.Builder actions(List<? extends IReceiptRuleAction> actions) Sets the value ofReceiptRuleOptions.getActions()
- Parameters:
actions
- An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.- Returns:
this
-
after
Sets the value ofReceiptRuleOptions.getAfter()
- Parameters:
after
- An existing rule after which the new rule will be placed.- Returns:
this
-
enabled
Sets the value ofReceiptRuleOptions.getEnabled()
- Parameters:
enabled
- Whether the rule is active.- Returns:
this
-
receiptRuleName
Sets the value ofReceiptRuleOptions.getReceiptRuleName()
- Parameters:
receiptRuleName
- The name for the rule.- Returns:
this
-
recipients
Sets the value ofReceiptRuleOptions.getRecipients()
- Parameters:
recipients
- The recipient domains and email addresses that the receipt rule applies to.- Returns:
this
-
scanEnabled
Sets the value ofReceiptRuleOptions.getScanEnabled()
- Parameters:
scanEnabled
- Whether to scan for spam and viruses.- Returns:
this
-
tlsPolicy
Sets the value ofReceiptRuleOptions.getTlsPolicy()
- Parameters:
tlsPolicy
- Whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ReceiptRuleOptions>
- Returns:
- a new instance of
ReceiptRuleOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-