Class EmailForwardingRuleSetProps.Builder
- java.lang.Object
-
- de.sebastianhesse.cdk.ses.email.forwarding.EmailForwardingRuleSetProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmailForwardingRuleSetProps>
- Enclosing interface:
- EmailForwardingRuleSetProps
@Stability(Stable) public static final class EmailForwardingRuleSetProps.Builder extends Object implements software.amazon.jsii.Builder<EmailForwardingRuleSetProps>
A builder forEmailForwardingRuleSetProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmailForwardingRuleSetPropsbuild()Builds the configured instance.EmailForwardingRuleSetProps.BuilderemailForwardingProps(List<? extends EmailForwardingProps> emailForwardingProps)Sets the value ofEmailForwardingRuleSetProps.getEmailForwardingProps()EmailForwardingRuleSetProps.BuilderenableRuleSet(Boolean enableRuleSet)Sets the value ofEmailForwardingRuleSetProps.getEnableRuleSet()EmailForwardingRuleSetProps.BuilderruleSet(software.amazon.awscdk.services.ses.IReceiptRuleSet ruleSet)Sets the value ofEmailForwardingRuleSetProps.getRuleSet()EmailForwardingRuleSetProps.BuilderruleSetName(String ruleSetName)Sets the value ofEmailForwardingRuleSetProps.getRuleSetName()
-
-
-
Method Detail
-
emailForwardingProps
@Stability(Stable) public EmailForwardingRuleSetProps.Builder emailForwardingProps(List<? extends EmailForwardingProps> emailForwardingProps)
Sets the value ofEmailForwardingRuleSetProps.getEmailForwardingProps()- Parameters:
emailForwardingProps- A list of mapping options to define how emails should be forwarded. This parameter is required.- Returns:
this
-
enableRuleSet
@Stability(Stable) public EmailForwardingRuleSetProps.Builder enableRuleSet(Boolean enableRuleSet)
Sets the value ofEmailForwardingRuleSetProps.getEnableRuleSet()- Parameters:
enableRuleSet- Optional: whether to enable the rule set or not.- Returns:
this
-
ruleSet
@Stability(Stable) public EmailForwardingRuleSetProps.Builder ruleSet(software.amazon.awscdk.services.ses.IReceiptRuleSet ruleSet)
Sets the value ofEmailForwardingRuleSetProps.getRuleSet()- Parameters:
ruleSet- Optional: an existing SES receipt rule set. If none is provided, a new one will be created using the name provided withruleSetNameor a default one.- Returns:
this
-
ruleSetName
@Stability(Stable) public EmailForwardingRuleSetProps.Builder ruleSetName(String ruleSetName)
Sets the value ofEmailForwardingRuleSetProps.getRuleSetName()- Parameters:
ruleSetName- Optional: provide a name for the receipt rule set that this construct creates if you don't provide one.- Returns:
this
-
build
@Stability(Stable) public EmailForwardingRuleSetProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EmailForwardingRuleSetProps>- Returns:
- a new instance of
EmailForwardingRuleSetProps - Throws:
NullPointerException- if any required attribute was not provided
-
-