@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleGroupReferenceStatement extends Object implements Serializable, Cloneable, StructuredPojo
A rule statement used to run the rules that are defined in a RuleGroup. To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement.
You cannot nest a RuleGroupReferenceStatement
, for example for use inside a NotStatement
or
OrStatement
. You can only use a rule group reference statement at the top level inside a web ACL.
Constructor and Description |
---|
RuleGroupReferenceStatement() |
Modifier and Type | Method and Description |
---|---|
RuleGroupReferenceStatement |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The Amazon Resource Name (ARN) of the entity.
|
List<ExcludedRule> |
getExcludedRules()
The rules in the referenced rule group whose actions are set to
Count . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
|
void |
setExcludedRules(Collection<ExcludedRule> excludedRules)
The rules in the referenced rule group whose actions are set to
Count . |
String |
toString()
Returns a string representation of this object.
|
RuleGroupReferenceStatement |
withARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
|
RuleGroupReferenceStatement |
withExcludedRules(Collection<ExcludedRule> excludedRules)
The rules in the referenced rule group whose actions are set to
Count . |
RuleGroupReferenceStatement |
withExcludedRules(ExcludedRule... excludedRules)
The rules in the referenced rule group whose actions are set to
Count . |
public void setARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
aRN
- The Amazon Resource Name (ARN) of the entity.public String getARN()
The Amazon Resource Name (ARN) of the entity.
public RuleGroupReferenceStatement withARN(String aRN)
The Amazon Resource Name (ARN) of the entity.
aRN
- The Amazon Resource Name (ARN) of the entity.public List<ExcludedRule> getExcludedRules()
The rules in the referenced rule group whose actions are set to Count
. When you exclude a rule, WAF
evaluates it exactly as it would if the rule action setting were Count
. This is a useful option for
testing the rules in a rule group without modifying how they handle your web traffic.
Count
. When you exclude a
rule, WAF evaluates it exactly as it would if the rule action setting were Count
. This is a
useful option for testing the rules in a rule group without modifying how they handle your web traffic.public void setExcludedRules(Collection<ExcludedRule> excludedRules)
The rules in the referenced rule group whose actions are set to Count
. When you exclude a rule, WAF
evaluates it exactly as it would if the rule action setting were Count
. This is a useful option for
testing the rules in a rule group without modifying how they handle your web traffic.
excludedRules
- The rules in the referenced rule group whose actions are set to Count
. When you exclude a
rule, WAF evaluates it exactly as it would if the rule action setting were Count
. This is a
useful option for testing the rules in a rule group without modifying how they handle your web traffic.public RuleGroupReferenceStatement withExcludedRules(ExcludedRule... excludedRules)
The rules in the referenced rule group whose actions are set to Count
. When you exclude a rule, WAF
evaluates it exactly as it would if the rule action setting were Count
. This is a useful option for
testing the rules in a rule group without modifying how they handle your web traffic.
NOTE: This method appends the values to the existing list (if any). Use
setExcludedRules(java.util.Collection)
or withExcludedRules(java.util.Collection)
if you want
to override the existing values.
excludedRules
- The rules in the referenced rule group whose actions are set to Count
. When you exclude a
rule, WAF evaluates it exactly as it would if the rule action setting were Count
. This is a
useful option for testing the rules in a rule group without modifying how they handle your web traffic.public RuleGroupReferenceStatement withExcludedRules(Collection<ExcludedRule> excludedRules)
The rules in the referenced rule group whose actions are set to Count
. When you exclude a rule, WAF
evaluates it exactly as it would if the rule action setting were Count
. This is a useful option for
testing the rules in a rule group without modifying how they handle your web traffic.
excludedRules
- The rules in the referenced rule group whose actions are set to Count
. When you exclude a
rule, WAF evaluates it exactly as it would if the rule action setting were Count
. This is a
useful option for testing the rules in a rule group without modifying how they handle your web traffic.public String toString()
toString
in class Object
Object.toString()
public RuleGroupReferenceStatement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.