Class Predicate
- All Implemented Interfaces:
Serializable, 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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanA unique identifier for a predicate in aRule, such asByteMatchSetIdorIPSetId.SetNegatedtoFalseif you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet.getType()The type of predicate in aRule, such asByteMatchSetorIPSet.inthashCode()SetNegatedtoFalseif you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet.voidA unique identifier for a predicate in aRule, such asByteMatchSetIdorIPSetId.voidsetNegated(Boolean negated) SetNegatedtoFalseif you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet.voidsetType(PredicateType type) The type of predicate in aRule, such asByteMatchSetorIPSet.voidThe type of predicate in aRule, such asByteMatchSetorIPSet.toString()Returns a string representation of this object; useful for testing and debugging.withDataId(String dataId) A unique identifier for a predicate in aRule, such asByteMatchSetIdorIPSetId.withNegated(Boolean negated) SetNegatedtoFalseif you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet.withType(PredicateType type) The type of predicate in aRule, such asByteMatchSetorIPSet.The type of predicate in aRule, such asByteMatchSetorIPSet.
-
Constructor Details
-
Predicate
public Predicate()
-
-
Method Details
-
setNegated
Set
NegatedtoFalseif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.- Parameters:
negated- SetNegatedtoFalseif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.
-
getNegated
Set
NegatedtoFalseif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.- Returns:
- Set
NegatedtoFalseif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.
-
withNegated
Set
NegatedtoFalseif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.- Parameters:
negated- SetNegatedtoFalseif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isNegated
Set
NegatedtoFalseif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.- Returns:
- Set
NegatedtoFalseif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow or block requests based on that IP address.Set
NegatedtoTrueif 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 anIPSetincludes the IP address192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except192.0.2.44.
-
setType
The type of predicate in a
Rule, such asByteMatchSetorIPSet.- Parameters:
type- The type of predicate in aRule, such asByteMatchSetorIPSet.- See Also:
-
getType
The type of predicate in a
Rule, such asByteMatchSetorIPSet.- Returns:
- The type of predicate in a
Rule, such asByteMatchSetorIPSet. - See Also:
-
withType
-
setType
The type of predicate in a
Rule, such asByteMatchSetorIPSet.- Parameters:
type- The type of predicate in aRule, such asByteMatchSetorIPSet.- See Also:
-
withType
The type of predicate in a
Rule, such asByteMatchSetorIPSet.- Parameters:
type- The type of predicate in aRule, such asByteMatchSetorIPSet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setDataId
A unique identifier for a predicate in a
Rule, such asByteMatchSetIdorIPSetId. The ID is returned by the correspondingCreateorListcommand.- Parameters:
dataId- A unique identifier for a predicate in aRule, such asByteMatchSetIdorIPSetId. The ID is returned by the correspondingCreateorListcommand.
-
getDataId
A unique identifier for a predicate in a
Rule, such asByteMatchSetIdorIPSetId. The ID is returned by the correspondingCreateorListcommand.- Returns:
- A unique identifier for a predicate in a
Rule, such asByteMatchSetIdorIPSetId. The ID is returned by the correspondingCreateorListcommand.
-
withDataId
A unique identifier for a predicate in a
Rule, such asByteMatchSetIdorIPSetId. The ID is returned by the correspondingCreateorListcommand.- Parameters:
dataId- A unique identifier for a predicate in aRule, such asByteMatchSetIdorIPSetId. The ID is returned by the correspondingCreateorListcommand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-