Interface WebACL.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WebACL.Builder,,WebACL> SdkBuilder<WebACL.Builder,,WebACL> SdkPojo
- Enclosing class:
WebACL
-
Method Summary
Modifier and TypeMethodDescriptiondefault WebACL.BuilderdefaultAction(Consumer<WafAction.Builder> defaultAction) The action to perform if none of theRulescontained in theWebACLmatch.defaultAction(WafAction defaultAction) The action to perform if none of theRulescontained in theWebACLmatch.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 eachRulein aWebACL, the priority of theRule, and the ID of theRule.rules(Consumer<ActivatedRule.Builder>... rules) An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule.rules(ActivatedRule... rules) An array that contains the action for eachRulein 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
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:
-
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
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
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 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.
-