public class Predicate
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet,
XssMatchSet, and SizeConstraintSet objects that you want to add
to a Rule
and, for each object, indicates whether you want to
negate the settings, for example, requests that do NOT originate from the IP
address 192.0.2.44.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
dataId
A unique identifier for a predicate in a
Rule , such as
ByteMatchSetId or IPSetId . |
private java.lang.Boolean |
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, or SizeConstraintSet. |
private java.lang.String |
type
The type of predicate in a
Rule , such as
ByteMatchSet or IPSet . |
Constructor and Description |
---|
Predicate() |
Modifier and Type | Method and Description |
---|---|
Predicate |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDataId()
A unique identifier for a predicate in a
Rule , such as
ByteMatchSetId or IPSetId . |
java.lang.Boolean |
getNegated()
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, or SizeConstraintSet. |
java.lang.String |
getType()
The type of predicate in a
Rule , such as
ByteMatchSet or IPSet . |
int |
hashCode() |
java.lang.Boolean |
isNegated()
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, or SizeConstraintSet. |
void |
setDataId(java.lang.String dataId)
A unique identifier for a predicate in a
Rule , such as
ByteMatchSetId or IPSetId . |
void |
setNegated(java.lang.Boolean 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, or SizeConstraintSet. |
void |
setType(PredicateType type)
The type of predicate in a
Rule , such as
ByteMatchSet or IPSet . |
void |
setType(java.lang.String type)
The type of predicate in a
Rule , such as
ByteMatchSet or IPSet . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Predicate |
withDataId(java.lang.String dataId)
A unique identifier for a predicate in a
Rule , such as
ByteMatchSetId or IPSetId . |
Predicate |
withNegated(java.lang.Boolean 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, or SizeConstraintSet. |
Predicate |
withType(PredicateType type)
The type of predicate in a
Rule , such as
ByteMatchSet or IPSet . |
Predicate |
withType(java.lang.String type)
The type of predicate in a
Rule , such as
ByteMatchSet or IPSet . |
private java.lang.Boolean 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, or SizeConstraintSet. 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, 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
.
private java.lang.String type
The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.
private java.lang.String dataId
A unique identifier for a predicate in a Rule
, such as
ByteMatchSetId
or IPSetId
. The ID is returned
by the corresponding Create
or List
command.
public void setNegated(java.lang.Boolean 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, or SizeConstraintSet. 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, 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
.
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, or
SizeConstraintSet. 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, 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
.
public java.lang.Boolean getNegated()
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, or SizeConstraintSet. 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, 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
.
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, or
SizeConstraintSet. 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, 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
.
public Predicate withNegated(java.lang.Boolean 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, or SizeConstraintSet. 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, 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
.
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, or
SizeConstraintSet. 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, 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
.
public java.lang.Boolean isNegated()
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, or SizeConstraintSet. 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, 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
.
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, or
SizeConstraintSet. 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, 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
.
public void setType(java.lang.String type)
The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.
type
- The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.PredicateType
public java.lang.String getType()
The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.
Rule
, such as
ByteMatchSet
or IPSet
.PredicateType
public Predicate withType(java.lang.String type)
The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.
type
- The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.PredicateType
public void setType(PredicateType type)
The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.
type
- The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.PredicateType
public Predicate withType(PredicateType type)
The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.
type
- The type of predicate in a Rule
, such as
ByteMatchSet
or IPSet
.PredicateType
public void setDataId(java.lang.String dataId)
A unique identifier for a predicate in a Rule
, such as
ByteMatchSetId
or IPSetId
. The ID is returned
by the corresponding Create
or List
command.
dataId
- A unique identifier for a predicate in a Rule
, such
as ByteMatchSetId
or IPSetId
. The ID is
returned by the corresponding Create
or
List
command.public java.lang.String getDataId()
A unique identifier for a predicate in a Rule
, such as
ByteMatchSetId
or IPSetId
. The ID is returned
by the corresponding Create
or List
command.
Rule
, such
as ByteMatchSetId
or IPSetId
. The ID is
returned by the corresponding Create
or
List
command.public Predicate withDataId(java.lang.String dataId)
A unique identifier for a predicate in a Rule
, such as
ByteMatchSetId
or IPSetId
. The ID is returned
by the corresponding Create
or List
command.
dataId
- A unique identifier for a predicate in a Rule
, such
as ByteMatchSetId
or IPSetId
. The ID is
returned by the corresponding Create
or
List
command.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Predicate clone()
clone
in class java.lang.Object