@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FirewallManagerRuleGroup extends Object implements Serializable, Cloneable, StructuredPojo
A rule group that's defined for an Firewall Manager WAF policy.
Constructor and Description |
---|
FirewallManagerRuleGroup() |
Modifier and Type | Method and Description |
---|---|
FirewallManagerRuleGroup |
clone() |
boolean |
equals(Object obj) |
FirewallManagerStatement |
getFirewallManagerStatement()
The processing guidance for an Firewall Manager rule.
|
String |
getName()
The name of the rule group.
|
OverrideAction |
getOverrideAction()
The override action to apply to the rules in a rule group.
|
Integer |
getPriority()
If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each
request against the rule groups in order, starting from the lowest priority setting.
|
VisibilityConfig |
getVisibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFirewallManagerStatement(FirewallManagerStatement firewallManagerStatement)
The processing guidance for an Firewall Manager rule.
|
void |
setName(String name)
The name of the rule group.
|
void |
setOverrideAction(OverrideAction overrideAction)
The override action to apply to the rules in a rule group.
|
void |
setPriority(Integer priority)
If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each
request against the rule groups in order, starting from the lowest priority setting.
|
void |
setVisibilityConfig(VisibilityConfig visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
String |
toString()
Returns a string representation of this object.
|
FirewallManagerRuleGroup |
withFirewallManagerStatement(FirewallManagerStatement firewallManagerStatement)
The processing guidance for an Firewall Manager rule.
|
FirewallManagerRuleGroup |
withName(String name)
The name of the rule group.
|
FirewallManagerRuleGroup |
withOverrideAction(OverrideAction overrideAction)
The override action to apply to the rules in a rule group.
|
FirewallManagerRuleGroup |
withPriority(Integer priority)
If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each
request against the rule groups in order, starting from the lowest priority setting.
|
FirewallManagerRuleGroup |
withVisibilityConfig(VisibilityConfig visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
public void setName(String name)
The name of the rule group. You cannot change the name of a rule group after you create it.
name
- The name of the rule group. You cannot change the name of a rule group after you create it.public String getName()
The name of the rule group. You cannot change the name of a rule group after you create it.
public FirewallManagerRuleGroup withName(String name)
The name of the rule group. You cannot change the name of a rule group after you create it.
name
- The name of the rule group. You cannot change the name of a rule group after you create it.public void setPriority(Integer priority)
If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each request against the rule groups in order, starting from the lowest priority setting. The priorities don't need to be consecutive, but they must all be different.
priority
- If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates
each request against the rule groups in order, starting from the lowest priority setting. The priorities
don't need to be consecutive, but they must all be different.public Integer getPriority()
If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each request against the rule groups in order, starting from the lowest priority setting. The priorities don't need to be consecutive, but they must all be different.
public FirewallManagerRuleGroup withPriority(Integer priority)
If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each request against the rule groups in order, starting from the lowest priority setting. The priorities don't need to be consecutive, but they must all be different.
priority
- If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates
each request against the rule groups in order, starting from the lowest priority setting. The priorities
don't need to be consecutive, but they must all be different.public void setFirewallManagerStatement(FirewallManagerStatement firewallManagerStatement)
The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it can only contain a rule group reference.
firewallManagerStatement
- The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it
can only contain a rule group reference.public FirewallManagerStatement getFirewallManagerStatement()
The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it can only contain a rule group reference.
public FirewallManagerRuleGroup withFirewallManagerStatement(FirewallManagerStatement firewallManagerStatement)
The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it can only contain a rule group reference.
firewallManagerStatement
- The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it
can only contain a rule group reference.public void setOverrideAction(OverrideAction overrideAction)
The override action to apply to the rules in a rule group. Used only for rule statements that reference a rule
group, like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
In a Rule, you must specify either this OverrideAction
setting or the rule
Action
setting, but not both:
If the rule statement references a rule group, use this override action setting and not the action setting.
If the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
overrideAction
- The override action to apply to the rules in a rule group. Used only for rule statements that reference a
rule group, like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
In a Rule, you must specify either this OverrideAction
setting or the rule
Action
setting, but not both:
If the rule statement references a rule group, use this override action setting and not the action setting.
If the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
public OverrideAction getOverrideAction()
The override action to apply to the rules in a rule group. Used only for rule statements that reference a rule
group, like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
In a Rule, you must specify either this OverrideAction
setting or the rule
Action
setting, but not both:
If the rule statement references a rule group, use this override action setting and not the action setting.
If the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
In a Rule, you must specify either this OverrideAction
setting or the rule
Action
setting, but not both:
If the rule statement references a rule group, use this override action setting and not the action setting.
If the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
public FirewallManagerRuleGroup withOverrideAction(OverrideAction overrideAction)
The override action to apply to the rules in a rule group. Used only for rule statements that reference a rule
group, like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
In a Rule, you must specify either this OverrideAction
setting or the rule
Action
setting, but not both:
If the rule statement references a rule group, use this override action setting and not the action setting.
If the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
overrideAction
- The override action to apply to the rules in a rule group. Used only for rule statements that reference a
rule group, like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
In a Rule, you must specify either this OverrideAction
setting or the rule
Action
setting, but not both:
If the rule statement references a rule group, use this override action setting and not the action setting.
If the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
public void setVisibilityConfig(VisibilityConfig visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
visibilityConfig
- Defines and enables Amazon CloudWatch metrics and web request sample collection.public VisibilityConfig getVisibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
public FirewallManagerRuleGroup withVisibilityConfig(VisibilityConfig visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
visibilityConfig
- Defines and enables Amazon CloudWatch metrics and web request sample collection.public String toString()
toString
in class Object
Object.toString()
public FirewallManagerRuleGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.