public static final class CfnRule.PredicateProperty.Builder
extends java.lang.Object
CfnRule.PredicateProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRule.PredicateProperty |
build()
Builds the configured instance.
|
CfnRule.PredicateProperty.Builder |
dataId(java.lang.String dataId)
Sets the value of
CfnRule.PredicateProperty.getDataId() |
CfnRule.PredicateProperty.Builder |
negated(java.lang.Boolean negated)
Sets the value of
CfnRule.PredicateProperty.getNegated() |
CfnRule.PredicateProperty.Builder |
negated(IResolvable negated)
Sets the value of
CfnRule.PredicateProperty.getNegated() |
CfnRule.PredicateProperty.Builder |
type(java.lang.String type)
Sets the value of
CfnRule.PredicateProperty.getType() |
public CfnRule.PredicateProperty.Builder dataId(java.lang.String dataId)
CfnRule.PredicateProperty.getDataId()
dataId
- A unique identifier for a predicate in a `Rule` , such as `ByteMatchSetId` or `IPSetId` . This parameter is required.
The ID is returned by the corresponding Create
or List
command.this
public CfnRule.PredicateProperty.Builder negated(java.lang.Boolean negated)
CfnRule.PredicateProperty.getNegated()
negated
- Set `Negated` to `False` if you want AWS WAF to allow, block, or count requests based on the settings in the specified `ByteMatchSet` , `IPSet` , `SqlInjectionMatchSet` , `XssMatchSet` , `RegexMatchSet` , `GeoMatchSet` , or `SizeConstraintSet` . This parameter is required.
For example, if an IPSet
includes the IP address 192.0.2.44
, AWS WAF will allow or block requests based on that IP address.
Set Negated
to True
if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
, XssMatchSet
, RegexMatchSet
, GeoMatchSet
, or SizeConstraintSet
. For example, if an IPSet
includes the IP address 192.0.2.44
, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44
.
this
public CfnRule.PredicateProperty.Builder negated(IResolvable negated)
CfnRule.PredicateProperty.getNegated()
negated
- Set `Negated` to `False` if you want AWS WAF to allow, block, or count requests based on the settings in the specified `ByteMatchSet` , `IPSet` , `SqlInjectionMatchSet` , `XssMatchSet` , `RegexMatchSet` , `GeoMatchSet` , or `SizeConstraintSet` . This parameter is required.
For example, if an IPSet
includes the IP address 192.0.2.44
, AWS WAF will allow or block requests based on that IP address.
Set Negated
to True
if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
, XssMatchSet
, RegexMatchSet
, GeoMatchSet
, or SizeConstraintSet
. For example, if an IPSet
includes the IP address 192.0.2.44
, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44
.
this
public CfnRule.PredicateProperty.Builder type(java.lang.String type)
CfnRule.PredicateProperty.getType()
type
- The type of predicate in a `Rule` , such as `ByteMatch` or `IPSet` . This parameter is required.this
public CfnRule.PredicateProperty build()
CfnRule.PredicateProperty
java.lang.NullPointerException
- if any required attribute was not provided