Interface AwsWafWebAclDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsWafWebAclDetails.Builder,AwsWafWebAclDetails>,SdkBuilder<AwsWafWebAclDetails.Builder,AwsWafWebAclDetails>,SdkPojo
- Enclosing class:
- AwsWafWebAclDetails
public static interface AwsWafWebAclDetails.Builder extends SdkPojo, CopyableBuilder<AwsWafWebAclDetails.Builder,AwsWafWebAclDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsWafWebAclDetails.BuilderdefaultAction(String defaultAction)The action to perform if none of the rules contained in the web ACL match.AwsWafWebAclDetails.Buildername(String name)A friendly name or description of the web ACL.AwsWafWebAclDetails.Builderrules(Collection<AwsWafWebAclRule> rules)An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.AwsWafWebAclDetails.Builderrules(Consumer<AwsWafWebAclRule.Builder>... rules)An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.AwsWafWebAclDetails.Builderrules(AwsWafWebAclRule... rules)An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.AwsWafWebAclDetails.BuilderwebAclId(String webAclId)A unique identifier for a web ACL.-
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
AwsWafWebAclDetails.Builder name(String name)
A friendly name or description of the web ACL. You can't change the name of a web ACL after you create it.
- Parameters:
name- A friendly name or description of the web ACL. You can't change the name of a web ACL after you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAction
AwsWafWebAclDetails.Builder defaultAction(String defaultAction)
The action to perform if none of the rules contained in the web ACL match.
- Parameters:
defaultAction- The action to perform if none of the rules contained in the web ACL match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
AwsWafWebAclDetails.Builder rules(Collection<AwsWafWebAclRule> rules)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
- Parameters:
rules- An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
AwsWafWebAclDetails.Builder rules(AwsWafWebAclRule... rules)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
- Parameters:
rules- An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
AwsWafWebAclDetails.Builder rules(Consumer<AwsWafWebAclRule.Builder>... rules)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
This is a convenience method that creates an instance of theAwsWafWebAclRule.Builderavoiding the need to create one manually viaAwsWafWebAclRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rules(List.) - Parameters:
rules- a consumer that will call methods onAwsWafWebAclRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#rules(java.util.Collection)
-
webAclId
AwsWafWebAclDetails.Builder webAclId(String webAclId)
A unique identifier for a web ACL.
- Parameters:
webAclId- A unique identifier for a web ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-