public static final class ReceiptRuleSetProps.Builder
extends java.lang.Object
ReceiptRuleSetProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ReceiptRuleSetProps |
build()
Builds the configured instance.
|
ReceiptRuleSetProps.Builder |
dropSpam(java.lang.Boolean dropSpam)
Sets the value of
ReceiptRuleSetProps.getDropSpam() |
ReceiptRuleSetProps.Builder |
receiptRuleSetName(java.lang.String receiptRuleSetName)
Sets the value of
ReceiptRuleSetProps.getReceiptRuleSetName() |
ReceiptRuleSetProps.Builder |
rules(java.util.List<? extends ReceiptRuleOptions> rules)
Sets the value of
ReceiptRuleSetProps.getRules() |
public ReceiptRuleSetProps.Builder dropSpam(java.lang.Boolean dropSpam)
ReceiptRuleSetProps.getDropSpam()
dropSpam
- Whether to add a first rule to stop processing messages that have at least one spam indicator.this
public ReceiptRuleSetProps.Builder receiptRuleSetName(java.lang.String receiptRuleSetName)
ReceiptRuleSetProps.getReceiptRuleSetName()
receiptRuleSetName
- The name for the receipt rule set.this
public ReceiptRuleSetProps.Builder rules(java.util.List<? extends ReceiptRuleOptions> rules)
ReceiptRuleSetProps.getRules()
rules
- The list of rules to add to this rule set.
Rules are added in the same
order as they appear in the list.this
public ReceiptRuleSetProps build()
ReceiptRuleSetProps
java.lang.NullPointerException
- if any required attribute was not provided