public static interface CreateWebAclRequest.Builder extends WafRequest.Builder, CopyableBuilder<CreateWebAclRequest.Builder,CreateWebAclRequest>
Modifier and Type | Method and Description |
---|---|
CreateWebAclRequest.Builder |
changeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.
|
default CreateWebAclRequest.Builder |
defaultAction(Consumer<WafAction.Builder> defaultAction)
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the
Rule objects that are associated with the WebACL . |
CreateWebAclRequest.Builder |
defaultAction(WafAction defaultAction)
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the
Rule objects that are associated with the WebACL . |
CreateWebAclRequest.Builder |
metricName(String metricName)
A friendly name or description for the metrics for this
WebACL . |
CreateWebAclRequest.Builder |
name(String name)
A friendly name or description of the WebACL.
|
CreateWebAclRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateWebAclRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
build
overrideConfiguration
copy
applyMutation, build
CreateWebAclRequest.Builder name(String name)
A friendly name or description of the WebACL. You can't change Name
after you create the
WebACL
.
name
- A friendly name or description of the WebACL. You can't change Name
after you
create the WebACL
.CreateWebAclRequest.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
.CreateWebAclRequest.Builder defaultAction(WafAction defaultAction)
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the
Rule
objects that are associated with the WebACL
.
defaultAction
- The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of
the Rule
objects that are associated with the WebACL
.default CreateWebAclRequest.Builder defaultAction(Consumer<WafAction.Builder> defaultAction)
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the
Rule
objects that are associated with the WebACL
.
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)
CreateWebAclRequest.Builder changeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.
changeToken
- The value returned by the most recent call to GetChangeToken.CreateWebAclRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateWebAclRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.