@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RulesSource extends Object implements Serializable, Cloneable, StructuredPojo
The stateless or stateful rules definitions for use in a single rule group. Each rule group requires a single
RulesSource
. You can use an instance of this for either stateless rules or stateful rules.
Constructor and Description |
---|
RulesSource() |
Modifier and Type | Method and Description |
---|---|
RulesSource |
clone() |
boolean |
equals(Object obj) |
RulesSourceList |
getRulesSourceList()
Stateful inspection criteria for a domain list rule group.
|
String |
getRulesString()
Stateful inspection criteria, provided in Suricata compatible rules.
|
List<StatefulRule> |
getStatefulRules()
An array of individual stateful rules inspection criteria to be used together in a stateful rule group.
|
StatelessRulesAndCustomActions |
getStatelessRulesAndCustomActions()
Stateless inspection criteria to be used in a stateless rule group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRulesSourceList(RulesSourceList rulesSourceList)
Stateful inspection criteria for a domain list rule group.
|
void |
setRulesString(String rulesString)
Stateful inspection criteria, provided in Suricata compatible rules.
|
void |
setStatefulRules(Collection<StatefulRule> statefulRules)
An array of individual stateful rules inspection criteria to be used together in a stateful rule group.
|
void |
setStatelessRulesAndCustomActions(StatelessRulesAndCustomActions statelessRulesAndCustomActions)
Stateless inspection criteria to be used in a stateless rule group.
|
String |
toString()
Returns a string representation of this object.
|
RulesSource |
withRulesSourceList(RulesSourceList rulesSourceList)
Stateful inspection criteria for a domain list rule group.
|
RulesSource |
withRulesString(String rulesString)
Stateful inspection criteria, provided in Suricata compatible rules.
|
RulesSource |
withStatefulRules(Collection<StatefulRule> statefulRules)
An array of individual stateful rules inspection criteria to be used together in a stateful rule group.
|
RulesSource |
withStatefulRules(StatefulRule... statefulRules)
An array of individual stateful rules inspection criteria to be used together in a stateful rule group.
|
RulesSource |
withStatelessRulesAndCustomActions(StatelessRulesAndCustomActions statelessRulesAndCustomActions)
Stateless inspection criteria to be used in a stateless rule group.
|
public void setRulesString(String rulesString)
Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.
These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
You can't use the priority
keyword if the RuleOrder
option in
StatefulRuleOptions is set to STRICT_ORDER
.
rulesString
- Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat
detection framework that includes a standard rule-based language for network traffic inspection.
These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
You can't use the priority
keyword if the RuleOrder
option in
StatefulRuleOptions is set to STRICT_ORDER
.
public String getRulesString()
Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.
These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
You can't use the priority
keyword if the RuleOrder
option in
StatefulRuleOptions is set to STRICT_ORDER
.
These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
You can't use the priority
keyword if the RuleOrder
option in
StatefulRuleOptions is set to STRICT_ORDER
.
public RulesSource withRulesString(String rulesString)
Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.
These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
You can't use the priority
keyword if the RuleOrder
option in
StatefulRuleOptions is set to STRICT_ORDER
.
rulesString
- Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat
detection framework that includes a standard rule-based language for network traffic inspection.
These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
You can't use the priority
keyword if the RuleOrder
option in
StatefulRuleOptions is set to STRICT_ORDER
.
public void setRulesSourceList(RulesSourceList rulesSourceList)
Stateful inspection criteria for a domain list rule group.
rulesSourceList
- Stateful inspection criteria for a domain list rule group.public RulesSourceList getRulesSourceList()
Stateful inspection criteria for a domain list rule group.
public RulesSource withRulesSourceList(RulesSourceList rulesSourceList)
Stateful inspection criteria for a domain list rule group.
rulesSourceList
- Stateful inspection criteria for a domain list rule group.public List<StatefulRule> getStatefulRules()
An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this
option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule
options. For information about the Suricata Rules
format, see Rules Format.
Rules
format, see Rules Format.public void setStatefulRules(Collection<StatefulRule> statefulRules)
An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this
option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule
options. For information about the Suricata Rules
format, see Rules Format.
statefulRules
- An array of individual stateful rules inspection criteria to be used together in a stateful rule group.
Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction,
and rule options. For information about the Suricata Rules
format, see Rules Format.public RulesSource withStatefulRules(StatefulRule... statefulRules)
An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this
option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule
options. For information about the Suricata Rules
format, see Rules Format.
NOTE: This method appends the values to the existing list (if any). Use
setStatefulRules(java.util.Collection)
or withStatefulRules(java.util.Collection)
if you want
to override the existing values.
statefulRules
- An array of individual stateful rules inspection criteria to be used together in a stateful rule group.
Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction,
and rule options. For information about the Suricata Rules
format, see Rules Format.public RulesSource withStatefulRules(Collection<StatefulRule> statefulRules)
An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this
option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule
options. For information about the Suricata Rules
format, see Rules Format.
statefulRules
- An array of individual stateful rules inspection criteria to be used together in a stateful rule group.
Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction,
and rule options. For information about the Suricata Rules
format, see Rules Format.public void setStatelessRulesAndCustomActions(StatelessRulesAndCustomActions statelessRulesAndCustomActions)
Stateless inspection criteria to be used in a stateless rule group.
statelessRulesAndCustomActions
- Stateless inspection criteria to be used in a stateless rule group.public StatelessRulesAndCustomActions getStatelessRulesAndCustomActions()
Stateless inspection criteria to be used in a stateless rule group.
public RulesSource withStatelessRulesAndCustomActions(StatelessRulesAndCustomActions statelessRulesAndCustomActions)
Stateless inspection criteria to be used in a stateless rule group.
statelessRulesAndCustomActions
- Stateless inspection criteria to be used in a stateless rule group.public String toString()
toString
in class Object
Object.toString()
public RulesSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.