@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafRateBasedRuleMatchPredicate extends Object implements Serializable, Cloneable, StructuredPojo
A match predicate. A predicate might look for characteristics such as specific IP addresses, geographic locations, or sizes.
Constructor and Description |
---|
AwsWafRateBasedRuleMatchPredicate() |
Modifier and Type | Method and Description |
---|---|
AwsWafRateBasedRuleMatchPredicate |
clone() |
boolean |
equals(Object obj) |
String |
getDataId()
The unique identifier for the predicate.
|
Boolean |
getNegated()
If set to
true , then the rule actions are performed on requests that match the predicate settings. |
String |
getType()
The type of predicate.
|
int |
hashCode() |
Boolean |
isNegated()
If set to
true , then the rule actions are performed on requests that match the predicate settings. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDataId(String dataId)
The unique identifier for the predicate.
|
void |
setNegated(Boolean negated)
If set to
true , then the rule actions are performed on requests that match the predicate settings. |
void |
setType(String type)
The type of predicate.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafRateBasedRuleMatchPredicate |
withDataId(String dataId)
The unique identifier for the predicate.
|
AwsWafRateBasedRuleMatchPredicate |
withNegated(Boolean negated)
If set to
true , then the rule actions are performed on requests that match the predicate settings. |
AwsWafRateBasedRuleMatchPredicate |
withType(String type)
The type of predicate.
|
public void setDataId(String dataId)
The unique identifier for the predicate.
dataId
- The unique identifier for the predicate.public String getDataId()
The unique identifier for the predicate.
public AwsWafRateBasedRuleMatchPredicate withDataId(String dataId)
The unique identifier for the predicate.
dataId
- The unique identifier for the predicate.public void setNegated(Boolean negated)
If set to true
, then the rule actions are performed on requests that match the predicate settings.
If set to false
, then the rule actions are performed on all requests except those that match the
predicate settings.
negated
- If set to true
, then the rule actions are performed on requests that match the predicate
settings.
If set to false
, then the rule actions are performed on all requests except those that match
the predicate settings.
public Boolean getNegated()
If set to true
, then the rule actions are performed on requests that match the predicate settings.
If set to false
, then the rule actions are performed on all requests except those that match the
predicate settings.
true
, then the rule actions are performed on requests that match the predicate
settings.
If set to false
, then the rule actions are performed on all requests except those that match
the predicate settings.
public AwsWafRateBasedRuleMatchPredicate withNegated(Boolean negated)
If set to true
, then the rule actions are performed on requests that match the predicate settings.
If set to false
, then the rule actions are performed on all requests except those that match the
predicate settings.
negated
- If set to true
, then the rule actions are performed on requests that match the predicate
settings.
If set to false
, then the rule actions are performed on all requests except those that match
the predicate settings.
public Boolean isNegated()
If set to true
, then the rule actions are performed on requests that match the predicate settings.
If set to false
, then the rule actions are performed on all requests except those that match the
predicate settings.
true
, then the rule actions are performed on requests that match the predicate
settings.
If set to false
, then the rule actions are performed on all requests except those that match
the predicate settings.
public void setType(String type)
The type of predicate. Valid values are as follows:
ByteMatch
GeoMatch
IPMatch
RegexMatch
SizeConstraint
SqlInjectionMatch
XssMatch
type
- The type of predicate. Valid values are as follows:
ByteMatch
GeoMatch
IPMatch
RegexMatch
SizeConstraint
SqlInjectionMatch
XssMatch
public String getType()
The type of predicate. Valid values are as follows:
ByteMatch
GeoMatch
IPMatch
RegexMatch
SizeConstraint
SqlInjectionMatch
XssMatch
ByteMatch
GeoMatch
IPMatch
RegexMatch
SizeConstraint
SqlInjectionMatch
XssMatch
public AwsWafRateBasedRuleMatchPredicate withType(String type)
The type of predicate. Valid values are as follows:
ByteMatch
GeoMatch
IPMatch
RegexMatch
SizeConstraint
SqlInjectionMatch
XssMatch
type
- The type of predicate. Valid values are as follows:
ByteMatch
GeoMatch
IPMatch
RegexMatch
SizeConstraint
SqlInjectionMatch
XssMatch
public String toString()
toString
in class Object
Object.toString()
public AwsWafRateBasedRuleMatchPredicate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.