Interface WebACL.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WebACL.Builder,
,WebACL> SdkBuilder<WebACL.Builder,
,WebACL> SdkPojo
- Enclosing class:
WebACL
-
Method Summary
Modifier and TypeMethodDescriptiondefault WebACL.Builder
defaultAction
(Consumer<WafAction.Builder> defaultAction) The action to perform if none of theRules
contained in theWebACL
match.defaultAction
(WafAction defaultAction) The action to perform if none of theRules
contained in theWebACL
match.metricName
(String metricName) A friendly name or description for the metrics for thisWebACL
.A friendly name or description of theWebACL
.rules
(Collection<ActivatedRule> rules) An array that contains the action for eachRule
in aWebACL
, the priority of theRule
, and the ID of theRule
.rules
(Consumer<ActivatedRule.Builder>... rules) An array that contains the action for eachRule
in aWebACL
, the priority of theRule
, and the ID of theRule
.rules
(ActivatedRule... rules) An array that contains the action for eachRule
in aWebACL
, the priority of theRule
, and the ID of theRule
.Tha Amazon Resource Name (ARN) of the web ACL.A unique identifier for aWebACL
.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
-
webACLId
A unique identifier for a
WebACL
. You useWebACLId
to get information about aWebACL
(see GetWebACL), update aWebACL
(see UpdateWebACL), and delete aWebACL
from AWS WAF (see DeleteWebACL).WebACLId
is returned by CreateWebACL and by ListWebACLs.- Parameters:
webACLId
- A unique identifier for aWebACL
. You useWebACLId
to get information about aWebACL
(see GetWebACL), update aWebACL
(see UpdateWebACL), and delete aWebACL
from AWS WAF (see DeleteWebACL).WebACLId
is returned by CreateWebACL and by ListWebACLs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A friendly name or description of the
WebACL
. You can't change the name of aWebACL
after you create it.- Parameters:
name
- A friendly name or description of theWebACL
. You can't change the name of aWebACL
after you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
A friendly name or description for the metrics for this
WebACL
. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't changeMetricName
after you create theWebACL
.- Parameters:
metricName
- A friendly name or description for the metrics for thisWebACL
. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't changeMetricName
after you create theWebACL
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAction
The action to perform if none of the
Rules
contained in theWebACL
match. The action is specified by the WafAction object.- Parameters:
defaultAction
- The action to perform if none of theRules
contained in theWebACL
match. The action is specified by the WafAction object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAction
The action to perform if none of the
This is a convenience method that creates an instance of theRules
contained in theWebACL
match. The action is specified by the WafAction object.WafAction.Builder
avoiding the need to create one manually viaWafAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultAction(WafAction)
.- Parameters:
defaultAction
- a consumer that will call methods onWafAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rules
An array that contains the action for each
Rule
in aWebACL
, the priority of theRule
, and the ID of theRule
.- Parameters:
rules
- An array that contains the action for eachRule
in aWebACL
, the priority of theRule
, and the ID of theRule
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
An array that contains the action for each
Rule
in aWebACL
, the priority of theRule
, and the ID of theRule
.- Parameters:
rules
- An array that contains the action for eachRule
in aWebACL
, the priority of theRule
, and the ID of theRule
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
An array that contains the action for each
This is a convenience method that creates an instance of theRule
in aWebACL
, the priority of theRule
, and the ID of theRule
.ActivatedRule.Builder
avoiding the need to create one manually viaActivatedRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<ActivatedRule>)
.- Parameters:
rules
- 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:
-
webACLArn
Tha Amazon Resource Name (ARN) of the web ACL.
- Parameters:
webACLArn
- Tha Amazon Resource Name (ARN) of the web ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-