Class DropSpamReceiptRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.ses.DropSpamReceiptRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DropSpamReceiptRuleProps>
- Enclosing interface:
- DropSpamReceiptRuleProps
@Stability(Stable)
public static final class DropSpamReceiptRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<DropSpamReceiptRuleProps>
A builder for
DropSpamReceiptRuleProps-
Constructor Summary
Constructors -
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()ruleSet(IReceiptRuleSet ruleSet) Sets the value ofReceiptRuleProps.getRuleSet()scanEnabled(Boolean scanEnabled) Sets the value ofReceiptRuleOptions.getScanEnabled()Sets the value ofReceiptRuleOptions.getTlsPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ruleSet
Sets the value ofReceiptRuleProps.getRuleSet()- Parameters:
ruleSet- The name of the rule set that the receipt rule will be added to. This parameter is required.- Returns:
this
-
actions
@Stability(Stable) public DropSpamReceiptRuleProps.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:
buildin interfacesoftware.amazon.jsii.Builder<DropSpamReceiptRuleProps>- Returns:
- a new instance of
DropSpamReceiptRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-