Interface RuleGroupUpdate.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RuleGroupUpdate.Builder,RuleGroupUpdate>,SdkBuilder<RuleGroupUpdate.Builder,RuleGroupUpdate>,SdkPojo
- Enclosing class:
- RuleGroupUpdate
public static interface RuleGroupUpdate.Builder extends SdkPojo, CopyableBuilder<RuleGroupUpdate.Builder,RuleGroupUpdate>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RuleGroupUpdate.Builderaction(String action)SpecifyINSERTto add anActivatedRuleto aRuleGroup.RuleGroupUpdate.Builderaction(ChangeAction action)SpecifyINSERTto add anActivatedRuleto aRuleGroup.default RuleGroupUpdate.BuilderactivatedRule(Consumer<ActivatedRule.Builder> activatedRule)TheActivatedRuleobject specifies aRulethat you want to insert or delete, the priority of theRulein theWebACL, and the action that you want AWS WAF to take when a web request matches theRule(ALLOW,BLOCK, orCOUNT).RuleGroupUpdate.BuilderactivatedRule(ActivatedRule activatedRule)TheActivatedRuleobject specifies aRulethat you want to insert or delete, the priority of theRulein theWebACL, and the action that you want AWS WAF to take when a web request matches theRule(ALLOW,BLOCK, orCOUNT).-
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
-
action
RuleGroupUpdate.Builder action(String action)
Specify
INSERTto add anActivatedRuleto aRuleGroup. UseDELETEto remove anActivatedRulefrom aRuleGroup.- Parameters:
action- SpecifyINSERTto add anActivatedRuleto aRuleGroup. UseDELETEto remove anActivatedRulefrom aRuleGroup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChangeAction,ChangeAction
-
action
RuleGroupUpdate.Builder action(ChangeAction action)
Specify
INSERTto add anActivatedRuleto aRuleGroup. UseDELETEto remove anActivatedRulefrom aRuleGroup.- Parameters:
action- SpecifyINSERTto add anActivatedRuleto aRuleGroup. UseDELETEto remove anActivatedRulefrom aRuleGroup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChangeAction,ChangeAction
-
activatedRule
RuleGroupUpdate.Builder activatedRule(ActivatedRule activatedRule)
The
ActivatedRuleobject specifies aRulethat you want to insert or delete, the priority of theRulein theWebACL, and the action that you want AWS WAF to take when a web request matches theRule(ALLOW,BLOCK, orCOUNT).- Parameters:
activatedRule- TheActivatedRuleobject specifies aRulethat you want to insert or delete, the priority of theRulein theWebACL, and the action that you want AWS WAF to take when a web request matches theRule(ALLOW,BLOCK, orCOUNT).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activatedRule
default RuleGroupUpdate.Builder activatedRule(Consumer<ActivatedRule.Builder> activatedRule)
The
This is a convenience method that creates an instance of theActivatedRuleobject specifies aRulethat you want to insert or delete, the priority of theRulein theWebACL, and the action that you want AWS WAF to take when a web request matches theRule(ALLOW,BLOCK, orCOUNT).ActivatedRule.Builderavoiding the need to create one manually viaActivatedRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactivatedRule(ActivatedRule).- Parameters:
activatedRule- a consumer that will call methods onActivatedRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
activatedRule(ActivatedRule)
-
-