Interface AwsWafRegionalWebAclDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsWafRegionalWebAclDetails.Builder,
,AwsWafRegionalWebAclDetails> SdkBuilder<AwsWafRegionalWebAclDetails.Builder,
,AwsWafRegionalWebAclDetails> SdkPojo
- Enclosing class:
AwsWafRegionalWebAclDetails
public static interface AwsWafRegionalWebAclDetails.Builder
extends SdkPojo, CopyableBuilder<AwsWafRegionalWebAclDetails.Builder,AwsWafRegionalWebAclDetails>
-
Method Summary
Modifier and TypeMethodDescriptiondefaultAction
(String defaultAction) The action to perform if none of the rules contained in the web ACL match.metricName
(String metricName) A name for the metrics for this web ACL.A descriptive name for the web ACL.rulesList
(Collection<AwsWafRegionalWebAclRulesListDetails> rulesList) An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.rulesList
(Consumer<AwsWafRegionalWebAclRulesListDetails.Builder>... rulesList) An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.rulesList
(AwsWafRegionalWebAclRulesListDetails... rulesList) An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.The ID of the 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, sdkFields
-
Method Details
-
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.
-
metricName
A name for the metrics for this web ACL.
- Parameters:
metricName
- A name for the metrics for this web ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A descriptive name for the web ACL.
- Parameters:
name
- A descriptive name for the web ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rulesList
AwsWafRegionalWebAclDetails.Builder rulesList(Collection<AwsWafRegionalWebAclRulesListDetails> rulesList) 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:
rulesList
- 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.
-
rulesList
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:
rulesList
- 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.
-
rulesList
AwsWafRegionalWebAclDetails.Builder rulesList(Consumer<AwsWafRegionalWebAclRulesListDetails.Builder>... rulesList) 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 theAwsWafRegionalWebAclRulesListDetails.Builder
avoiding the need to create one manually viaAwsWafRegionalWebAclRulesListDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torulesList(List<AwsWafRegionalWebAclRulesListDetails>)
.- Parameters:
rulesList
- a consumer that will call methods onAwsWafRegionalWebAclRulesListDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
webAclId
The ID of the web ACL.
- Parameters:
webAclId
- The ID of the web ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-