Interface WebACL.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<WebACL.Builder,WebACL>,SdkBuilder<WebACL.Builder,WebACL>,SdkPojo
- Enclosing class:
- WebACL
public static interface WebACL.Builder extends SdkPojo, CopyableBuilder<WebACL.Builder,WebACL>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default WebACL.BuilderdefaultAction(Consumer<WafAction.Builder> defaultAction)The action to perform if none of theRulescontained in theWebACLmatch.WebACL.BuilderdefaultAction(WafAction defaultAction)The action to perform if none of theRulescontained in theWebACLmatch.WebACL.BuildermetricName(String metricName)A friendly name or description for the metrics for thisWebACL.WebACL.Buildername(String name)A friendly name or description of theWebACL.WebACL.Builderrules(Collection<ActivatedRule> rules)An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule.WebACL.Builderrules(Consumer<ActivatedRule.Builder>... rules)An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule.WebACL.Builderrules(ActivatedRule... rules)An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule.WebACL.BuilderwebACLArn(String webACLArn)Tha Amazon Resource Name (ARN) of the web ACL.WebACL.BuilderwebACLId(String webACLId)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 Detail
-
webACLId
WebACL.Builder webACLId(String webACLId)
A unique identifier for a
WebACL. You useWebACLIdto get information about aWebACL(see GetWebACL), update aWebACL(see UpdateWebACL), and delete aWebACLfrom AWS WAF (see DeleteWebACL).WebACLIdis returned by CreateWebACL and by ListWebACLs.- Parameters:
webACLId- A unique identifier for aWebACL. You useWebACLIdto get information about aWebACL(see GetWebACL), update aWebACL(see UpdateWebACL), and delete aWebACLfrom AWS WAF (see DeleteWebACL).WebACLIdis returned by CreateWebACL and by ListWebACLs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
WebACL.Builder name(String name)
A friendly name or description of the
WebACL. You can't change the name of aWebACLafter you create it.- Parameters:
name- A friendly name or description of theWebACL. You can't change the name of aWebACLafter you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
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), 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
WebACL.Builder defaultAction(WafAction defaultAction)
The action to perform if none of the
Rulescontained in theWebACLmatch. The action is specified by the WafAction object.- Parameters:
defaultAction- The action to perform if none of theRulescontained in theWebACLmatch. The action is specified by the WafAction object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAction
default WebACL.Builder defaultAction(Consumer<WafAction.Builder> defaultAction)
The action to perform if none of the
This is a convenience method that creates an instance of theRulescontained in theWebACLmatch. The action is specified by the WafAction object.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)
-
rules
WebACL.Builder rules(Collection<ActivatedRule> rules)
An array that contains the action for each
Rulein aWebACL, the priority of theRule, and the ID of theRule.- Parameters:
rules- An array that contains the action for eachRulein 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
WebACL.Builder rules(ActivatedRule... rules)
An array that contains the action for each
Rulein aWebACL, the priority of theRule, and the ID of theRule.- Parameters:
rules- An array that contains the action for eachRulein 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
WebACL.Builder rules(Consumer<ActivatedRule.Builder>... rules)
An array that contains the action for each
This is a convenience method that creates an instance of theRulein aWebACL, the priority of theRule, and the ID of theRule.ActivatedRule.Builderavoiding the need to create one manually viaActivatedRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rules(List.) - 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:
#rules(java.util.Collection)
-
webACLArn
WebACL.Builder webACLArn(String 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.
-
-