@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ManagedRuleGroupStatement extends Object implements Serializable, Cloneable, StructuredPojo
A rule statement used to run the rules that are defined in a managed rule group. To use this, provide the vendor name and the name of the rule group in this statement. You can retrieve the required names by calling ListAvailableManagedRuleGroups.
You can't nest a ManagedRuleGroupStatement
, 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 |
---|
ManagedRuleGroupStatement() |
Modifier and Type | Method and Description |
---|---|
ManagedRuleGroupStatement |
clone() |
boolean |
equals(Object obj) |
List<ExcludedRule> |
getExcludedRules()
The rules whose actions are set to
COUNT by the web ACL, regardless of the action that is set on the
rule. |
String |
getName()
The name of the managed rule group.
|
Statement |
getScopeDownStatement() |
String |
getVendorName()
The name of the managed rule group vendor.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExcludedRules(Collection<ExcludedRule> excludedRules)
The rules whose actions are set to
COUNT by the web ACL, regardless of the action that is set on the
rule. |
void |
setName(String name)
The name of the managed rule group.
|
void |
setScopeDownStatement(Statement scopeDownStatement) |
void |
setVendorName(String vendorName)
The name of the managed rule group vendor.
|
String |
toString()
Returns a string representation of this object.
|
ManagedRuleGroupStatement |
withExcludedRules(Collection<ExcludedRule> excludedRules)
The rules whose actions are set to
COUNT by the web ACL, regardless of the action that is set on the
rule. |
ManagedRuleGroupStatement |
withExcludedRules(ExcludedRule... excludedRules)
The rules whose actions are set to
COUNT by the web ACL, regardless of the action that is set on the
rule. |
ManagedRuleGroupStatement |
withName(String name)
The name of the managed rule group.
|
ManagedRuleGroupStatement |
withScopeDownStatement(Statement scopeDownStatement) |
ManagedRuleGroupStatement |
withVendorName(String vendorName)
The name of the managed rule group vendor.
|
public void setVendorName(String vendorName)
The name of the managed rule group vendor. You use this, along with the rule group name, to identify the rule group.
vendorName
- The name of the managed rule group vendor. You use this, along with the rule group name, to identify the
rule group.public String getVendorName()
The name of the managed rule group vendor. You use this, along with the rule group name, to identify the rule group.
public ManagedRuleGroupStatement withVendorName(String vendorName)
The name of the managed rule group vendor. You use this, along with the rule group name, to identify the rule group.
vendorName
- The name of the managed rule group vendor. You use this, along with the rule group name, to identify the
rule group.public void setName(String name)
The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
name
- The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.public String getName()
The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
public ManagedRuleGroupStatement withName(String name)
The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
name
- The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.public List<ExcludedRule> getExcludedRules()
The rules whose actions are set to COUNT
by the web ACL, regardless of the action that is set on the
rule. This effectively excludes the rule from acting on web requests.
COUNT
by the web ACL, regardless of the action that is
set on the rule. This effectively excludes the rule from acting on web requests.public void setExcludedRules(Collection<ExcludedRule> excludedRules)
The rules whose actions are set to COUNT
by the web ACL, regardless of the action that is set on the
rule. This effectively excludes the rule from acting on web requests.
excludedRules
- The rules whose actions are set to COUNT
by the web ACL, regardless of the action that is set
on the rule. This effectively excludes the rule from acting on web requests.public ManagedRuleGroupStatement withExcludedRules(ExcludedRule... excludedRules)
The rules whose actions are set to COUNT
by the web ACL, regardless of the action that is set on the
rule. This effectively excludes the rule from acting on web requests.
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 whose actions are set to COUNT
by the web ACL, regardless of the action that is set
on the rule. This effectively excludes the rule from acting on web requests.public ManagedRuleGroupStatement withExcludedRules(Collection<ExcludedRule> excludedRules)
The rules whose actions are set to COUNT
by the web ACL, regardless of the action that is set on the
rule. This effectively excludes the rule from acting on web requests.
excludedRules
- The rules whose actions are set to COUNT
by the web ACL, regardless of the action that is set
on the rule. This effectively excludes the rule from acting on web requests.public void setScopeDownStatement(Statement scopeDownStatement)
scopeDownStatement
- public Statement getScopeDownStatement()
public ManagedRuleGroupStatement withScopeDownStatement(Statement scopeDownStatement)
scopeDownStatement
- public String toString()
toString
in class Object
Object.toString()
public ManagedRuleGroupStatement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.