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