Interface RuleActionOverride.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RuleActionOverride.Builder,RuleActionOverride>,SdkBuilder<RuleActionOverride.Builder,RuleActionOverride>,SdkPojo
- Enclosing class:
- RuleActionOverride
public static interface RuleActionOverride.Builder extends SdkPojo, CopyableBuilder<RuleActionOverride.Builder,RuleActionOverride>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RuleActionOverride.BuilderactionToUse(Consumer<RuleAction.Builder> actionToUse)The override action to use, in place of the configured action of the rule in the rule group.RuleActionOverride.BuilderactionToUse(RuleAction actionToUse)The override action to use, in place of the configured action of the rule in the rule group.RuleActionOverride.Buildername(String name)The name of the rule to override.-
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 Detail
-
name
RuleActionOverride.Builder name(String name)
The name of the rule to override.
- Parameters:
name- The name of the rule to override.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionToUse
RuleActionOverride.Builder actionToUse(RuleAction actionToUse)
The override action to use, in place of the configured action of the rule in the rule group.
- Parameters:
actionToUse- The override action to use, in place of the configured action of the rule in the rule group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionToUse
default RuleActionOverride.Builder actionToUse(Consumer<RuleAction.Builder> actionToUse)
The override action to use, in place of the configured action of the rule in the rule group.
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 toactionToUse(RuleAction).- Parameters:
actionToUse- 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:
actionToUse(RuleAction)
-
-