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