@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafRuleDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about a WAF rule. This rule specifies the web requests that you want to allow, block, or count.
Constructor and Description |
---|
AwsWafRuleDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafRuleDetails |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
The name of the metrics for this rule.
|
String |
getName()
A descriptive name for the rule.
|
List<AwsWafRulePredicateListDetails> |
getPredicateList()
Specifies the
ByteMatchSet , IPSet , SqlInjectionMatchSet ,
XssMatchSet , RegexMatchSet , GeoMatchSet , and
SizeConstraintSet objects that you want to add to a rule and, for each object, indicates whether you
want to negate the settings. |
String |
getRuleId()
The ID of the WAF rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetricName(String metricName)
The name of the metrics for this rule.
|
void |
setName(String name)
A descriptive name for the rule.
|
void |
setPredicateList(Collection<AwsWafRulePredicateListDetails> predicateList)
Specifies the
ByteMatchSet , IPSet , SqlInjectionMatchSet ,
XssMatchSet , RegexMatchSet , GeoMatchSet , and
SizeConstraintSet objects that you want to add to a rule and, for each object, indicates whether you
want to negate the settings. |
void |
setRuleId(String ruleId)
The ID of the WAF rule.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafRuleDetails |
withMetricName(String metricName)
The name of the metrics for this rule.
|
AwsWafRuleDetails |
withName(String name)
A descriptive name for the rule.
|
AwsWafRuleDetails |
withPredicateList(AwsWafRulePredicateListDetails... predicateList)
Specifies the
ByteMatchSet , IPSet , SqlInjectionMatchSet ,
XssMatchSet , RegexMatchSet , GeoMatchSet , and
SizeConstraintSet objects that you want to add to a rule and, for each object, indicates whether you
want to negate the settings. |
AwsWafRuleDetails |
withPredicateList(Collection<AwsWafRulePredicateListDetails> predicateList)
Specifies the
ByteMatchSet , IPSet , SqlInjectionMatchSet ,
XssMatchSet , RegexMatchSet , GeoMatchSet , and
SizeConstraintSet objects that you want to add to a rule and, for each object, indicates whether you
want to negate the settings. |
AwsWafRuleDetails |
withRuleId(String ruleId)
The ID of the WAF rule.
|
public void setMetricName(String metricName)
The name of the metrics for this rule.
metricName
- The name of the metrics for this rule.public String getMetricName()
The name of the metrics for this rule.
public AwsWafRuleDetails withMetricName(String metricName)
The name of the metrics for this rule.
metricName
- The name of the metrics for this rule.public void setName(String name)
A descriptive name for the rule.
name
- A descriptive name for the rule.public String getName()
A descriptive name for the rule.
public AwsWafRuleDetails withName(String name)
A descriptive name for the rule.
name
- A descriptive name for the rule.public List<AwsWafRulePredicateListDetails> getPredicateList()
Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
,
XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and
SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates whether you
want to negate the settings.
ByteMatchSet
, IPSet
, SqlInjectionMatchSet
,
XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and
SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates
whether you want to negate the settings.public void setPredicateList(Collection<AwsWafRulePredicateListDetails> predicateList)
Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
,
XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and
SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates whether you
want to negate the settings.
predicateList
- Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
,
XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and
SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates
whether you want to negate the settings.public AwsWafRuleDetails withPredicateList(AwsWafRulePredicateListDetails... predicateList)
Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
,
XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and
SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates whether you
want to negate the settings.
NOTE: This method appends the values to the existing list (if any). Use
setPredicateList(java.util.Collection)
or withPredicateList(java.util.Collection)
if you want
to override the existing values.
predicateList
- Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
,
XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and
SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates
whether you want to negate the settings.public AwsWafRuleDetails withPredicateList(Collection<AwsWafRulePredicateListDetails> predicateList)
Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
,
XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and
SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates whether you
want to negate the settings.
predicateList
- Specifies the ByteMatchSet
, IPSet
, SqlInjectionMatchSet
,
XssMatchSet
, RegexMatchSet
, GeoMatchSet
, and
SizeConstraintSet
objects that you want to add to a rule and, for each object, indicates
whether you want to negate the settings.public void setRuleId(String ruleId)
The ID of the WAF rule.
ruleId
- The ID of the WAF rule.public String getRuleId()
The ID of the WAF rule.
public AwsWafRuleDetails withRuleId(String ruleId)
The ID of the WAF rule.
ruleId
- The ID of the WAF rule.public String toString()
toString
in class Object
Object.toString()
public AwsWafRuleDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.