Interface Rule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Rule.Builder,Rule>,SdkBuilder<Rule.Builder,Rule>,SdkPojo
- Enclosing class:
- Rule
public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rule.Builderactions(Collection<RuleAction> actions)The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.Rule.Builderactions(Consumer<RuleAction.Builder>... actions)The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.Rule.Builderactions(RuleAction... actions)The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.Rule.Builderconditions(Collection<RuleCondition> conditions)The conditions of this rule.Rule.Builderconditions(Consumer<RuleCondition.Builder>... conditions)The conditions of this rule.Rule.Builderconditions(RuleCondition... conditions)The conditions of this rule.Rule.Buildername(String name)The user-friendly name of the rule.Rule.Builderunless(Collection<RuleCondition> unless)The "unless conditions" of this rule.Rule.Builderunless(Consumer<RuleCondition.Builder>... unless)The "unless conditions" of this rule.Rule.Builderunless(RuleCondition... unless)The "unless conditions" of this rule.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
actions
Rule.Builder actions(Collection<RuleAction> actions)
The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.
- Parameters:
actions- The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Rule.Builder actions(RuleAction... actions)
The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.
- Parameters:
actions- The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Rule.Builder actions(Consumer<RuleAction.Builder>... actions)
The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.
This is a convenience method that creates an instance of theRuleAction.Builderavoiding the need to create one manually viaRuleAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#actions(List.) - Parameters:
actions- a consumer that will call methods onRuleAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#actions(java.util.Collection)
-
conditions
Rule.Builder conditions(Collection<RuleCondition> 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"
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
Rule.Builder conditions(RuleCondition... 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"
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
Rule.Builder conditions(Consumer<RuleCondition.Builder>... 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"
This is a convenience method that creates an instance of theRuleCondition.Builderavoiding the need to create one manually viaRuleCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#conditions(List.) - Parameters:
conditions- a consumer that will call methods onRuleCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#conditions(java.util.Collection)
-
name
Rule.Builder name(String name)
The user-friendly name of the rule.
- Parameters:
name- The user-friendly name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unless
Rule.Builder unless(Collection<RuleCondition> 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
unless
Rule.Builder unless(RuleCondition... 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
unless
Rule.Builder unless(Consumer<RuleCondition.Builder>... 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.
This is a convenience method that creates an instance of theRuleCondition.Builderavoiding the need to create one manually viaRuleCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#unless(List.) - Parameters:
unless- a consumer that will call methods onRuleCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#unless(java.util.Collection)
-
-