public static final class DropSpamReceiptRuleProps.Builder
extends java.lang.Object
DropSpamReceiptRuleProps
Constructor and Description |
---|
Builder() |
public DropSpamReceiptRuleProps.Builder ruleSet(IReceiptRuleSet ruleSet)
ReceiptRuleProps.getRuleSet()
ruleSet
- The name of the rule set that the receipt rule will be added to. This parameter is required.this
public DropSpamReceiptRuleProps.Builder actions(java.util.List<? extends IReceiptRuleAction> actions)
ReceiptRuleOptions.getActions()
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.this
public DropSpamReceiptRuleProps.Builder after(IReceiptRule after)
ReceiptRuleOptions.getAfter()
after
- An existing rule after which the new rule will be placed.this
public DropSpamReceiptRuleProps.Builder enabled(java.lang.Boolean enabled)
ReceiptRuleOptions.getEnabled()
enabled
- Whether the rule is active.this
public DropSpamReceiptRuleProps.Builder receiptRuleName(java.lang.String receiptRuleName)
ReceiptRuleOptions.getReceiptRuleName()
receiptRuleName
- The name for the rule.this
public DropSpamReceiptRuleProps.Builder recipients(java.util.List<java.lang.String> recipients)
ReceiptRuleOptions.getRecipients()
recipients
- The recipient domains and email addresses that the receipt rule applies to.this
public DropSpamReceiptRuleProps.Builder scanEnabled(java.lang.Boolean scanEnabled)
ReceiptRuleOptions.getScanEnabled()
scanEnabled
- Whether to scan for spam and viruses.this
public DropSpamReceiptRuleProps.Builder tlsPolicy(TlsPolicy tlsPolicy)
ReceiptRuleOptions.getTlsPolicy()
tlsPolicy
- Whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS).this
public DropSpamReceiptRuleProps build()
DropSpamReceiptRuleProps
java.lang.NullPointerException
- if any required attribute was not provided