@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.
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) |
ReferenceSets |
getReferenceSets()
The list of a rule group's reference sets.
|
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.
|
StatefulRuleOptions |
getStatefulRuleOptions()
Additional options governing how Network Firewall handles stateful rules.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setReferenceSets(ReferenceSets referenceSets)
The list of a rule group's reference sets.
|
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.
|
void |
setStatefulRuleOptions(StatefulRuleOptions statefulRuleOptions)
Additional options governing how Network Firewall handles stateful rules.
|
String |
toString()
Returns a string representation of this object.
|
RuleGroup |
withReferenceSets(ReferenceSets referenceSets)
The list of a rule group's reference sets.
|
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.
|
RuleGroup |
withStatefulRuleOptions(StatefulRuleOptions statefulRuleOptions)
Additional options governing how Network Firewall handles stateful rules.
|
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 setReferenceSets(ReferenceSets referenceSets)
The list of a rule group's reference sets.
referenceSets
- The list of a rule group's reference sets.public ReferenceSets getReferenceSets()
The list of a rule group's reference sets.
public RuleGroup withReferenceSets(ReferenceSets referenceSets)
The list of a rule group's reference sets.
referenceSets
- The list of a rule group's reference sets.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 void setStatefulRuleOptions(StatefulRuleOptions statefulRuleOptions)
Additional options governing how Network Firewall handles stateful rules. The policies where you use your stateful rule group must have stateful rule options settings that are compatible with these settings.
statefulRuleOptions
- Additional options governing how Network Firewall handles stateful rules. The policies where you use your
stateful rule group must have stateful rule options settings that are compatible with these settings.public StatefulRuleOptions getStatefulRuleOptions()
Additional options governing how Network Firewall handles stateful rules. The policies where you use your stateful rule group must have stateful rule options settings that are compatible with these settings.
public RuleGroup withStatefulRuleOptions(StatefulRuleOptions statefulRuleOptions)
Additional options governing how Network Firewall handles stateful rules. The policies where you use your stateful rule group must have stateful rule options settings that are compatible with these settings.
statefulRuleOptions
- Additional options governing how Network Firewall handles stateful rules. The policies where you use your
stateful rule group must have stateful rule options settings that are compatible with these settings.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.