public static interface WebACL.Builder extends CopyableBuilder<WebACL.Builder,WebACL>
Modifier and Type | Method and Description |
---|---|
default WebACL.Builder |
defaultAction(Consumer<WafAction.Builder> defaultAction)
The action to perform if none of the
Rules contained in the WebACL match. |
WebACL.Builder |
defaultAction(WafAction defaultAction)
The action to perform if none of the
Rules contained in the WebACL match. |
WebACL.Builder |
metricName(String metricName)
A friendly name or description for the metrics for this
WebACL . |
WebACL.Builder |
name(String name)
A friendly name or description of the
WebACL . |
WebACL.Builder |
rules(ActivatedRule... rules)
An array that contains the action for each
Rule in a WebACL , the priority of the
Rule , and the ID of the Rule . |
WebACL.Builder |
rules(Collection<ActivatedRule> rules)
An array that contains the action for each
Rule in a WebACL , the priority of the
Rule , and the ID of the Rule . |
WebACL.Builder |
rules(Consumer<ActivatedRule.Builder>... rules)
An array that contains the action for each
Rule in a WebACL , the priority of the
Rule , and the ID of the Rule . |
WebACL.Builder |
webACLId(String webACLId)
A unique identifier for a
WebACL . |
copy
applyMutation, build
WebACL.Builder webACLId(String webACLId)
A unique identifier for a WebACL
. You use WebACLId
to get information about a
WebACL
(see GetWebACL), update a WebACL
(see UpdateWebACL), and
delete a WebACL
from AWS WAF (see DeleteWebACL).
WebACLId
is returned by CreateWebACL and by ListWebACLs.
webACLId
- A unique identifier for a WebACL
. You use WebACLId
to get information about
a WebACL
(see GetWebACL), update a WebACL
(see UpdateWebACL),
and delete a WebACL
from AWS WAF (see DeleteWebACL).
WebACLId
is returned by CreateWebACL and by ListWebACLs.
WebACL.Builder name(String name)
A friendly name or description of the WebACL
. You can't change the name of a WebACL
after you create it.
name
- A friendly name or description of the WebACL
. You can't change the name of a
WebACL
after you create it.WebACL.Builder metricName(String 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); the name can't contain whitespace. You can't change
MetricName
after you create the WebACL
.
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); the name can't contain whitespace. You can't change
MetricName
after you create the WebACL
.WebACL.Builder defaultAction(WafAction defaultAction)
The action to perform if none of the Rules
contained in the WebACL
match. The
action is specified by the WafAction object.
defaultAction
- The action to perform if none of the Rules
contained in the WebACL
match.
The action is specified by the WafAction object.default WebACL.Builder defaultAction(Consumer<WafAction.Builder> defaultAction)
The action to perform if none of the Rules
contained in the WebACL
match. The
action is specified by the WafAction object.
WafAction.Builder
avoiding the need to create
one manually via WafAction.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to defaultAction(WafAction)
.defaultAction
- a consumer that will call methods on WafAction.Builder
defaultAction(WafAction)
WebACL.Builder rules(Collection<ActivatedRule> rules)
An array that contains the action for each Rule
in a WebACL
, the priority of the
Rule
, and the ID of the Rule
.
rules
- An array that contains the action for each Rule
in a WebACL
, the priority of
the Rule
, and the ID of the Rule
.WebACL.Builder rules(ActivatedRule... rules)
An array that contains the action for each Rule
in a WebACL
, the priority of the
Rule
, and the ID of the Rule
.
rules
- An array that contains the action for each Rule
in a WebACL
, the priority of
the Rule
, and the ID of the Rule
.WebACL.Builder rules(Consumer<ActivatedRule.Builder>... rules)
An array that contains the action for each Rule
in a WebACL
, the priority of the
Rule
, and the ID of the Rule
.
List.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #rules(List)
.rules
- a consumer that will call methods on List.Builder
#rules(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.