Interface RuleActionOverride.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RuleActionOverride.Builder,,RuleActionOverride> SdkBuilder<RuleActionOverride.Builder,,RuleActionOverride> SdkPojo
- Enclosing class:
RuleActionOverride
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuleActionOverride.BuilderactionToUse(Consumer<RuleAction.Builder> actionToUse) The override action to use, in place of the configured action of the rule in the rule group.actionToUse(RuleAction actionToUse) The override action to use, in place of the configured action of the rule in the rule group.The name of the rule to override.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the rule to override.
Take care to verify the rule names in your overrides. If you provide a rule name that doesn't match the name of any rule in the rule group, WAF doesn't return an error and doesn't apply the override setting.
- Parameters:
name- The name of the rule to override.Take care to verify the rule names in your overrides. If you provide a rule name that doesn't match the name of any rule in the rule group, WAF doesn't return an error and doesn't apply the override setting.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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:
-