@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleGroupReferenceStatement extends Object implements Serializable, Cloneable, StructuredPojo
This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide.
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
. It can only be referenced as a top-level statement within a rule.
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 names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from processing
for this rule statement.
|
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 names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from processing
for this rule statement.
|
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 names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from processing
for this rule statement.
|
RuleGroupReferenceStatement |
withExcludedRules(ExcludedRule... excludedRules)
The names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from processing
for this rule statement.
|
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 names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from processing for this rule statement.
public void setExcludedRules(Collection<ExcludedRule> excludedRules)
The names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from processing for this rule statement.
excludedRules
- The names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from
processing for this rule statement.public RuleGroupReferenceStatement withExcludedRules(ExcludedRule... excludedRules)
The names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from processing for this rule statement.
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 names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from
processing for this rule statement.public RuleGroupReferenceStatement withExcludedRules(Collection<ExcludedRule> excludedRules)
The names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from processing for this rule statement.
excludedRules
- The names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from
processing for this rule statement.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.