public static final class ReceiptRuleOptions.Builder
extends java.lang.Object
ReceiptRuleOptions
Constructor and Description |
---|
Builder() |
public ReceiptRuleOptions.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 ReceiptRuleOptions.Builder after(IReceiptRule after)
ReceiptRuleOptions.getAfter()
after
- An existing rule after which the new rule will be placed.this
public ReceiptRuleOptions.Builder enabled(java.lang.Boolean enabled)
ReceiptRuleOptions.getEnabled()
enabled
- Whether the rule is active.this
public ReceiptRuleOptions.Builder receiptRuleName(java.lang.String receiptRuleName)
ReceiptRuleOptions.getReceiptRuleName()
receiptRuleName
- The name for the rule.this
public ReceiptRuleOptions.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 ReceiptRuleOptions.Builder scanEnabled(java.lang.Boolean scanEnabled)
ReceiptRuleOptions.getScanEnabled()
scanEnabled
- Whether to scan for spam and viruses.this
public ReceiptRuleOptions.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 ReceiptRuleOptions build()
ReceiptRuleOptions
java.lang.NullPointerException
- if any required attribute was not provided