@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafRuleGroupDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an WAF rule group. A rule group is a collection of rules for inspecting and controlling web requests.
Constructor and Description |
---|
AwsWafRuleGroupDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafRuleGroupDetails |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
The name of the metrics for this rule group.
|
String |
getName()
The name of the rule group.
|
String |
getRuleGroupId()
The ID of the rule group.
|
List<AwsWafRuleGroupRulesDetails> |
getRules()
Provides information about the rules attached to the rule group.
|
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 group.
|
void |
setName(String name)
The name of the rule group.
|
void |
setRuleGroupId(String ruleGroupId)
The ID of the rule group.
|
void |
setRules(Collection<AwsWafRuleGroupRulesDetails> rules)
Provides information about the rules attached to the rule group.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafRuleGroupDetails |
withMetricName(String metricName)
The name of the metrics for this rule group.
|
AwsWafRuleGroupDetails |
withName(String name)
The name of the rule group.
|
AwsWafRuleGroupDetails |
withRuleGroupId(String ruleGroupId)
The ID of the rule group.
|
AwsWafRuleGroupDetails |
withRules(AwsWafRuleGroupRulesDetails... rules)
Provides information about the rules attached to the rule group.
|
AwsWafRuleGroupDetails |
withRules(Collection<AwsWafRuleGroupRulesDetails> rules)
Provides information about the rules attached to the rule group.
|
public void setMetricName(String metricName)
The name of the metrics for this rule group.
metricName
- The name of the metrics for this rule group.public String getMetricName()
The name of the metrics for this rule group.
public AwsWafRuleGroupDetails withMetricName(String metricName)
The name of the metrics for this rule group.
metricName
- The name of the metrics for this rule group.public void setName(String name)
The name of the rule group.
name
- The name of the rule group.public String getName()
The name of the rule group.
public AwsWafRuleGroupDetails withName(String name)
The name of the rule group.
name
- The name of the rule group.public void setRuleGroupId(String ruleGroupId)
The ID of the rule group.
ruleGroupId
- The ID of the rule group.public String getRuleGroupId()
The ID of the rule group.
public AwsWafRuleGroupDetails withRuleGroupId(String ruleGroupId)
The ID of the rule group.
ruleGroupId
- The ID of the rule group.public List<AwsWafRuleGroupRulesDetails> getRules()
Provides information about the rules attached to the rule group. These rules identify the web requests that you want to allow, block, or count.
public void setRules(Collection<AwsWafRuleGroupRulesDetails> rules)
Provides information about the rules attached to the rule group. These rules identify the web requests that you want to allow, block, or count.
rules
- Provides information about the rules attached to the rule group. These rules identify the web requests
that you want to allow, block, or count.public AwsWafRuleGroupDetails withRules(AwsWafRuleGroupRulesDetails... rules)
Provides information about the rules attached to the rule group. These rules identify the web requests that you want to allow, block, or count.
NOTE: This method appends the values to the existing list (if any). Use
setRules(java.util.Collection)
or withRules(java.util.Collection)
if you want to override the
existing values.
rules
- Provides information about the rules attached to the rule group. These rules identify the web requests
that you want to allow, block, or count.public AwsWafRuleGroupDetails withRules(Collection<AwsWafRuleGroupRulesDetails> rules)
Provides information about the rules attached to the rule group. These rules identify the web requests that you want to allow, block, or count.
rules
- Provides information about the rules attached to the rule group. These rules identify the web requests
that you want to allow, block, or count.public String toString()
toString
in class Object
Object.toString()
public AwsWafRuleGroupDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.