@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafRegionalRuleDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an WAF Regional rule. This rule identifies the web requests that you want to allow, block, or count.
Constructor and Description |
---|
AwsWafRegionalRuleDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafRegionalRuleDetails |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
A name for the metrics for the rule.
|
String |
getName()
A descriptive name for the rule.
|
List<AwsWafRegionalRulePredicateListDetails> |
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 rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetricName(String metricName)
A name for the metrics for the rule.
|
void |
setName(String name)
A descriptive name for the rule.
|
void |
setPredicateList(Collection<AwsWafRegionalRulePredicateListDetails> 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 rule.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafRegionalRuleDetails |
withMetricName(String metricName)
A name for the metrics for the rule.
|
AwsWafRegionalRuleDetails |
withName(String name)
A descriptive name for the rule.
|
AwsWafRegionalRuleDetails |
withPredicateList(AwsWafRegionalRulePredicateListDetails... 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. |
AwsWafRegionalRuleDetails |
withPredicateList(Collection<AwsWafRegionalRulePredicateListDetails> 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. |
AwsWafRegionalRuleDetails |
withRuleId(String ruleId)
The ID of the rule.
|
public void setMetricName(String metricName)
A name for the metrics for the rule.
metricName
- A name for the metrics for the rule.public String getMetricName()
A name for the metrics for the rule.
public AwsWafRegionalRuleDetails withMetricName(String metricName)
A name for the metrics for the rule.
metricName
- A name for the metrics for the 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 AwsWafRegionalRuleDetails withName(String name)
A descriptive name for the rule.
name
- A descriptive name for the rule.public List<AwsWafRegionalRulePredicateListDetails> 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<AwsWafRegionalRulePredicateListDetails> 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 AwsWafRegionalRuleDetails withPredicateList(AwsWafRegionalRulePredicateListDetails... 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 AwsWafRegionalRuleDetails withPredicateList(Collection<AwsWafRegionalRulePredicateListDetails> 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 rule.
ruleId
- The ID of the rule.public String getRuleId()
The ID of the rule.
public AwsWafRegionalRuleDetails withRuleId(String ruleId)
The ID of the rule.
ruleId
- The ID of the rule.public String toString()
toString
in class Object
Object.toString()
public AwsWafRegionalRuleDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.