@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleGroup extends Object implements Serializable, Cloneable, StructuredPojo
The object that defines the rules in a rule group. This, along with RuleGroupResponse, define the rule group. You can retrieve all objects for a rule group by calling DescribeRuleGroup.
AWS Network Firewall uses a rule group to inspect and control network traffic. You define stateless rule groups to inspect individual packets and you define stateful rule groups to inspect packets in the context of their traffic flow.
To use a rule group, you include it by reference in an Network Firewall firewall policy, then you use the policy in a firewall. You can reference a rule group from more than one firewall policy, and you can use a firewall policy in more than one firewall.
Constructor and Description |
---|
RuleGroup() |
Modifier and Type | Method and Description |
---|---|
RuleGroup |
clone() |
boolean |
equals(Object obj) |
RulesSource |
getRulesSource()
The stateful rules or stateless rules for the rule group.
|
RuleVariables |
getRuleVariables()
Settings that are available for use in the rules in the rule group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRulesSource(RulesSource rulesSource)
The stateful rules or stateless rules for the rule group.
|
void |
setRuleVariables(RuleVariables ruleVariables)
Settings that are available for use in the rules in the rule group.
|
String |
toString()
Returns a string representation of this object.
|
RuleGroup |
withRulesSource(RulesSource rulesSource)
The stateful rules or stateless rules for the rule group.
|
RuleGroup |
withRuleVariables(RuleVariables ruleVariables)
Settings that are available for use in the rules in the rule group.
|
public void setRuleVariables(RuleVariables ruleVariables)
Settings that are available for use in the rules in the rule group. You can only use these for stateful rule groups.
ruleVariables
- Settings that are available for use in the rules in the rule group. You can only use these for stateful
rule groups.public RuleVariables getRuleVariables()
Settings that are available for use in the rules in the rule group. You can only use these for stateful rule groups.
public RuleGroup withRuleVariables(RuleVariables ruleVariables)
Settings that are available for use in the rules in the rule group. You can only use these for stateful rule groups.
ruleVariables
- Settings that are available for use in the rules in the rule group. You can only use these for stateful
rule groups.public void setRulesSource(RulesSource rulesSource)
The stateful rules or stateless rules for the rule group.
rulesSource
- The stateful rules or stateless rules for the rule group.public RulesSource getRulesSource()
The stateful rules or stateless rules for the rule group.
public RuleGroup withRulesSource(RulesSource rulesSource)
The stateful rules or stateless rules for the rule group.
rulesSource
- The stateful rules or stateless rules for the rule group.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.