Interface Rule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Rule.Builder,
,Rule> SdkBuilder<Rule.Builder,
,Rule> SdkPojo
- Enclosing class:
Rule
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<RuleAction> actions) The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.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.actions
(RuleAction... actions) The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.conditions
(Collection<RuleCondition> conditions) The conditions of this rule.conditions
(Consumer<RuleCondition.Builder>... conditions) The conditions of this rule.conditions
(RuleCondition... conditions) The conditions of this rule.The user-friendly name of the rule.unless
(Collection<RuleCondition> unless) The "unless conditions" of this rule.unless
(Consumer<RuleCondition.Builder>... unless) The "unless conditions" of this rule.unless
(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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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.Builder
avoiding the need to create one manually viaRuleAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(List<RuleAction>)
.- 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:
-
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
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
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.Builder
avoiding the need to create one manually viaRuleCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconditions(List<RuleCondition>)
.- 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:
-
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
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
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
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.Builder
avoiding the need to create one manually viaRuleCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tounless(List<RuleCondition>)
.- 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:
-