Class ReceiptRuleSetProps.Builder
java.lang.Object
software.amazon.awscdk.services.ses.ReceiptRuleSetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ReceiptRuleSetProps>
- Enclosing interface:
- ReceiptRuleSetProps
@Stability(Stable)
public static final class ReceiptRuleSetProps.Builder
extends Object
implements software.amazon.jsii.Builder<ReceiptRuleSetProps>
A builder for
ReceiptRuleSetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofReceiptRuleSetProps.getDropSpam()receiptRuleSetName(String receiptRuleSetName) Sets the value ofReceiptRuleSetProps.getReceiptRuleSetName()rules(List<? extends ReceiptRuleOptions> rules) Sets the value ofReceiptRuleSetProps.getRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dropSpam
Sets the value ofReceiptRuleSetProps.getDropSpam()- Parameters:
dropSpam- Whether to add a first rule to stop processing messages that have at least one spam indicator.- Returns:
this
-
receiptRuleSetName
Sets the value ofReceiptRuleSetProps.getReceiptRuleSetName()- Parameters:
receiptRuleSetName- The name for the receipt rule set.- Returns:
this
-
rules
@Stability(Stable) public ReceiptRuleSetProps.Builder rules(List<? extends ReceiptRuleOptions> rules) Sets the value ofReceiptRuleSetProps.getRules()- Parameters:
rules- The list of rules to add to this rule set. Rules are added in the same order as they appear in the list.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ReceiptRuleSetProps>- Returns:
- a new instance of
ReceiptRuleSetProps - Throws:
NullPointerException- if any required attribute was not provided
-