@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleGroup extends Object implements Serializable, Cloneable, StructuredPojo
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
A collection of predefined rules that you can add to a web ACL.
Rule groups are subject to the following limits:
Three rule groups per account. You can request an increase to this limit by contacting customer support.
One rule group per web ACL.
Ten rules per rule group.
Constructor and Description |
---|
RuleGroup() |
Modifier and Type | Method and Description |
---|---|
RuleGroup |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
A friendly name or description for the metrics for this
RuleGroup . |
String |
getName()
The friendly name or description for the
RuleGroup . |
String |
getRuleGroupId()
A unique identifier for a
RuleGroup . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetricName(String metricName)
A friendly name or description for the metrics for this
RuleGroup . |
void |
setName(String name)
The friendly name or description for the
RuleGroup . |
void |
setRuleGroupId(String ruleGroupId)
A unique identifier for a
RuleGroup . |
String |
toString()
Returns a string representation of this object.
|
RuleGroup |
withMetricName(String metricName)
A friendly name or description for the metrics for this
RuleGroup . |
RuleGroup |
withName(String name)
The friendly name or description for the
RuleGroup . |
RuleGroup |
withRuleGroupId(String ruleGroupId)
A unique identifier for a
RuleGroup . |
public void setRuleGroupId(String ruleGroupId)
A unique identifier for a RuleGroup
. You use RuleGroupId
to get more information about
a RuleGroup
(see GetRuleGroup), update a RuleGroup
(see UpdateRuleGroup),
insert a RuleGroup
into a WebACL
or delete a one from a WebACL
(see
UpdateWebACL), or delete a RuleGroup
from AWS WAF (see DeleteRuleGroup).
RuleGroupId
is returned by CreateRuleGroup and by ListRuleGroups.
ruleGroupId
- A unique identifier for a RuleGroup
. You use RuleGroupId
to get more information
about a RuleGroup
(see GetRuleGroup), update a RuleGroup
(see
UpdateRuleGroup), insert a RuleGroup
into a WebACL
or delete a one from a
WebACL
(see UpdateWebACL), or delete a RuleGroup
from AWS WAF (see
DeleteRuleGroup).
RuleGroupId
is returned by CreateRuleGroup and by ListRuleGroups.
public String getRuleGroupId()
A unique identifier for a RuleGroup
. You use RuleGroupId
to get more information about
a RuleGroup
(see GetRuleGroup), update a RuleGroup
(see UpdateRuleGroup),
insert a RuleGroup
into a WebACL
or delete a one from a WebACL
(see
UpdateWebACL), or delete a RuleGroup
from AWS WAF (see DeleteRuleGroup).
RuleGroupId
is returned by CreateRuleGroup and by ListRuleGroups.
RuleGroup
. You use RuleGroupId
to get more
information about a RuleGroup
(see GetRuleGroup), update a RuleGroup
(see UpdateRuleGroup), insert a RuleGroup
into a WebACL
or delete a one
from a WebACL
(see UpdateWebACL), or delete a RuleGroup
from AWS WAF
(see DeleteRuleGroup).
RuleGroupId
is returned by CreateRuleGroup and by ListRuleGroups.
public RuleGroup withRuleGroupId(String ruleGroupId)
A unique identifier for a RuleGroup
. You use RuleGroupId
to get more information about
a RuleGroup
(see GetRuleGroup), update a RuleGroup
(see UpdateRuleGroup),
insert a RuleGroup
into a WebACL
or delete a one from a WebACL
(see
UpdateWebACL), or delete a RuleGroup
from AWS WAF (see DeleteRuleGroup).
RuleGroupId
is returned by CreateRuleGroup and by ListRuleGroups.
ruleGroupId
- A unique identifier for a RuleGroup
. You use RuleGroupId
to get more information
about a RuleGroup
(see GetRuleGroup), update a RuleGroup
(see
UpdateRuleGroup), insert a RuleGroup
into a WebACL
or delete a one from a
WebACL
(see UpdateWebACL), or delete a RuleGroup
from AWS WAF (see
DeleteRuleGroup).
RuleGroupId
is returned by CreateRuleGroup and by ListRuleGroups.
public void setName(String name)
The friendly name or description for the RuleGroup
. You can't change the name of a
RuleGroup
after you create it.
name
- The friendly name or description for the RuleGroup
. You can't change the name of a
RuleGroup
after you create it.public String getName()
The friendly name or description for the RuleGroup
. You can't change the name of a
RuleGroup
after you create it.
RuleGroup
. You can't change the name of a
RuleGroup
after you create it.public RuleGroup withName(String name)
The friendly name or description for the RuleGroup
. You can't change the name of a
RuleGroup
after you create it.
name
- The friendly name or description for the RuleGroup
. You can't change the name of a
RuleGroup
after you create it.public void setMetricName(String metricName)
A friendly name or description for the metrics for this RuleGroup
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name
of the metric after you create the RuleGroup
.
metricName
- A friendly name or description for the metrics for this RuleGroup
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
the name of the metric after you create the RuleGroup
.public String getMetricName()
A friendly name or description for the metrics for this RuleGroup
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name
of the metric after you create the RuleGroup
.
RuleGroup
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
the name of the metric after you create the RuleGroup
.public RuleGroup withMetricName(String metricName)
A friendly name or description for the metrics for this RuleGroup
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name
of the metric after you create the RuleGroup
.
metricName
- A friendly name or description for the metrics for this RuleGroup
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
the name of the metric after you create the RuleGroup
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.