public static final class CfnWebACLProps.Builder
extends java.lang.Object
CfnWebACLProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnWebACLProps |
build()
Builds the configured instance.
|
CfnWebACLProps.Builder |
defaultAction(CfnWebACL.ActionProperty defaultAction)
Sets the value of
CfnWebACLProps.getDefaultAction() |
CfnWebACLProps.Builder |
defaultAction(IResolvable defaultAction)
Sets the value of
CfnWebACLProps.getDefaultAction() |
CfnWebACLProps.Builder |
metricName(java.lang.String metricName)
Sets the value of
CfnWebACLProps.getMetricName() |
CfnWebACLProps.Builder |
name(java.lang.String name)
Sets the value of
CfnWebACLProps.getName() |
CfnWebACLProps.Builder |
rules(IResolvable rules)
Sets the value of
CfnWebACLProps.getRules() |
CfnWebACLProps.Builder |
rules(java.util.List<? extends java.lang.Object> rules)
Sets the value of
CfnWebACLProps.getRules() |
public CfnWebACLProps.Builder defaultAction(IResolvable defaultAction)
CfnWebACLProps.getDefaultAction()
defaultAction
- The action to perform if none of the `Rules` contained in the `WebACL` match. This parameter is required.
The action is specified by the WafAction
object.this
public CfnWebACLProps.Builder defaultAction(CfnWebACL.ActionProperty defaultAction)
CfnWebACLProps.getDefaultAction()
defaultAction
- The action to perform if none of the `Rules` contained in the `WebACL` match. This parameter is required.
The action is specified by the WafAction
object.this
public CfnWebACLProps.Builder metricName(java.lang.String metricName)
CfnWebACLProps.getMetricName()
metricName
- A name for the metrics for this `WebACL` . This parameter is required.
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 change MetricName
after you create the WebACL
.this
public CfnWebACLProps.Builder name(java.lang.String name)
CfnWebACLProps.getName()
name
- A friendly name or description of the `WebACL` . This parameter is required.
You can't change the name of a WebACL
after you create it.this
public CfnWebACLProps.Builder rules(IResolvable rules)
CfnWebACLProps.getRules()
rules
- An array that contains the action for each `Rule` in a `WebACL` , the priority of the `Rule` , and the ID of the `Rule` .this
public CfnWebACLProps.Builder rules(java.util.List<? extends java.lang.Object> rules)
CfnWebACLProps.getRules()
rules
- An array that contains the action for each `Rule` in a `WebACL` , the priority of the `Rule` , and the ID of the `Rule` .this
public CfnWebACLProps build()
CfnWebACLProps
java.lang.NullPointerException
- if any required attribute was not provided