Interface WebACLUpdate.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<WebACLUpdate.Builder,WebACLUpdate>,SdkBuilder<WebACLUpdate.Builder,WebACLUpdate>,SdkPojo
- Enclosing class:
- WebACLUpdate
public static interface WebACLUpdate.Builder extends SdkPojo, CopyableBuilder<WebACLUpdate.Builder,WebACLUpdate>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description WebACLUpdate.Builderaction(String action)Specifies whether to insert aRuleinto or delete aRulefrom aWebACL.WebACLUpdate.Builderaction(ChangeAction action)Specifies whether to insert aRuleinto or delete aRulefrom aWebACL.default WebACLUpdate.BuilderactivatedRule(Consumer<ActivatedRule.Builder> activatedRule)TheActivatedRuleobject in an UpdateWebACL request 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).WebACLUpdate.BuilderactivatedRule(ActivatedRule activatedRule)TheActivatedRuleobject in an UpdateWebACL request 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
WebACLUpdate.Builder action(String action)
Specifies whether to insert a
Ruleinto or delete aRulefrom aWebACL.- Parameters:
action- Specifies whether to insert aRuleinto or delete aRulefrom aWebACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChangeAction,ChangeAction
-
action
WebACLUpdate.Builder action(ChangeAction action)
Specifies whether to insert a
Ruleinto or delete aRulefrom aWebACL.- Parameters:
action- Specifies whether to insert aRuleinto or delete aRulefrom aWebACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChangeAction,ChangeAction
-
activatedRule
WebACLUpdate.Builder activatedRule(ActivatedRule activatedRule)
The
ActivatedRuleobject in an UpdateWebACL request 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 in an UpdateWebACL request 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 WebACLUpdate.Builder activatedRule(Consumer<ActivatedRule.Builder> activatedRule)
The
This is a convenience method that creates an instance of theActivatedRuleobject in an UpdateWebACL request 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)
-
-