Class CfnMailManagerRuleSetPropsMixin.RuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnMailManagerRuleSetPropsMixin.RuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RuleProperty>
- Enclosing interface:
CfnMailManagerRuleSetPropsMixin.RuleProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSetPropsMixin.RuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RuleProperty>
A builder for
CfnMailManagerRuleSetPropsMixin.RuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getActions()actions(IResolvable actions) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getActions()build()Builds the configured instance.conditions(List<? extends Object> conditions) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getConditions()conditions(IResolvable conditions) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getConditions()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getName()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getUnless()unless(IResolvable unless) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getUnless()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleProperty.Builder actions(IResolvable actions) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getActions()- Parameters:
actions- The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.- Returns:
this
-
actions
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleProperty.Builder actions(List<? extends Object> actions) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getActions()- Parameters:
actions- The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.- Returns:
this
-
conditions
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleProperty.Builder conditions(IResolvable conditions) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getConditions()- Parameters:
conditions- The conditions of this rule. All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any "unless conditions"- Returns:
this
-
conditions
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleProperty.Builder conditions(List<? extends Object> conditions) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getConditions()- Parameters:
conditions- The conditions of this rule. All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any "unless conditions"- Returns:
this
-
name
Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getName()- Parameters:
name- The user-friendly name of the rule.- Returns:
this
-
unless
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleProperty.Builder unless(IResolvable unless) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getUnless()- Parameters:
unless- The "unless conditions" of this rule. None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.- Returns:
this
-
unless
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleProperty.Builder unless(List<? extends Object> unless) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleProperty.getUnless()- Parameters:
unless- The "unless conditions" of this rule. None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RuleProperty>- Returns:
- a new instance of
CfnMailManagerRuleSetPropsMixin.RuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-