Interface CreateWebAclRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateWebAclRequest.Builder,CreateWebAclRequest>,SdkBuilder<CreateWebAclRequest.Builder,CreateWebAclRequest>,SdkPojo,SdkRequest.Builder,WafRequest.Builder
- Enclosing class:
- CreateWebAclRequest
public static interface CreateWebAclRequest.Builder extends WafRequest.Builder, SdkPojo, CopyableBuilder<CreateWebAclRequest.Builder,CreateWebAclRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateWebAclRequest.BuilderchangeToken(String changeToken)The value returned by the most recent call to GetChangeToken.default CreateWebAclRequest.BuilderdefaultAction(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 theRuleobjects that are associated with theWebACL.CreateWebAclRequest.BuilderdefaultAction(WafAction defaultAction)The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of theRuleobjects that are associated with theWebACL.CreateWebAclRequest.BuildermetricName(String 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.CreateWebAclRequest.Buildername(String name)A friendly name or description of the WebACL.CreateWebAclRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateWebAclRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateWebAclRequest.Buildertags(Collection<Tag> tags)CreateWebAclRequest.Buildertags(Consumer<Tag.Builder>... tags)This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().CreateWebAclRequest.Buildertags(Tag... tags)-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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
-
Methods inherited from interface software.amazon.awssdk.services.waf.model.WafRequest.Builder
build
-
-
-
-
Method Detail
-
name
CreateWebAclRequest.Builder name(String name)
A friendly name or description of the WebACL. You can't change
Nameafter you create theWebACL.- Parameters:
name- A friendly name or description of the WebACL. You can't changeNameafter you create theWebACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
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), 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 changeMetricNameafter 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 changeMetricNameafter you create theWebACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAction
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
Ruleobjects that are associated with theWebACL.- Parameters:
defaultAction- The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of theRuleobjects that are associated with theWebACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAction
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
This is a convenience method that creates an instance of theRuleobjects that are associated with theWebACL.WafAction.Builderavoiding the need to create one manually viaWafAction.builder().When the
Consumercompletes,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:
defaultAction(WafAction)
-
changeToken
CreateWebAclRequest.Builder changeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.
- Parameters:
changeToken- The value returned by the most recent call to GetChangeToken.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateWebAclRequest.Builder tags(Collection<Tag> tags)
- Parameters:
tags-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateWebAclRequest.Builder tags(Tag... tags)
- Parameters:
tags-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateWebAclRequest.Builder tags(Consumer<Tag.Builder>... tags)
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
CreateWebAclRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateWebAclRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-