@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleOption extends Object implements Serializable, Cloneable, StructuredPojo
Additional settings for a stateful rule. This is part of the StatefulRule configuration.
Constructor and Description |
---|
RuleOption() |
Modifier and Type | Method and Description |
---|---|
RuleOption |
clone() |
boolean |
equals(Object obj) |
String |
getKeyword()
The keyword for the Suricata compatible rule option.
|
List<String> |
getSettings()
The settings of the Suricata compatible rule option.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKeyword(String keyword)
The keyword for the Suricata compatible rule option.
|
void |
setSettings(Collection<String> settings)
The settings of the Suricata compatible rule option.
|
String |
toString()
Returns a string representation of this object.
|
RuleOption |
withKeyword(String keyword)
The keyword for the Suricata compatible rule option.
|
RuleOption |
withSettings(Collection<String> settings)
The settings of the Suricata compatible rule option.
|
RuleOption |
withSettings(String... settings)
The settings of the Suricata compatible rule option.
|
public void setKeyword(String keyword)
The keyword for the Suricata compatible rule option. You must include a sid
(signature ID), and can
optionally include other keywords. For information about Suricata compatible keywords, see Rule options in the
Suricata documentation.
keyword
- The keyword for the Suricata compatible rule option. You must include a sid
(signature ID),
and can optionally include other keywords. For information about Suricata compatible keywords, see Rule options in
the Suricata documentation.public String getKeyword()
The keyword for the Suricata compatible rule option. You must include a sid
(signature ID), and can
optionally include other keywords. For information about Suricata compatible keywords, see Rule options in the
Suricata documentation.
sid
(signature ID),
and can optionally include other keywords. For information about Suricata compatible keywords, see Rule options
in the Suricata documentation.public RuleOption withKeyword(String keyword)
The keyword for the Suricata compatible rule option. You must include a sid
(signature ID), and can
optionally include other keywords. For information about Suricata compatible keywords, see Rule options in the
Suricata documentation.
keyword
- The keyword for the Suricata compatible rule option. You must include a sid
(signature ID),
and can optionally include other keywords. For information about Suricata compatible keywords, see Rule options in
the Suricata documentation.public List<String> getSettings()
The settings of the Suricata compatible rule option. Rule options have zero or more setting values, and the
number of possible and required settings depends on the Keyword
. For more information about the
settings for specific options, see Rule options.
Keyword
. For more information
about the settings for specific options, see Rule options.public void setSettings(Collection<String> settings)
The settings of the Suricata compatible rule option. Rule options have zero or more setting values, and the
number of possible and required settings depends on the Keyword
. For more information about the
settings for specific options, see Rule options.
settings
- The settings of the Suricata compatible rule option. Rule options have zero or more setting values, and
the number of possible and required settings depends on the Keyword
. For more information
about the settings for specific options, see Rule options.public RuleOption withSettings(String... settings)
The settings of the Suricata compatible rule option. Rule options have zero or more setting values, and the
number of possible and required settings depends on the Keyword
. For more information about the
settings for specific options, see Rule options.
NOTE: This method appends the values to the existing list (if any). Use
setSettings(java.util.Collection)
or withSettings(java.util.Collection)
if you want to override
the existing values.
settings
- The settings of the Suricata compatible rule option. Rule options have zero or more setting values, and
the number of possible and required settings depends on the Keyword
. For more information
about the settings for specific options, see Rule options.public RuleOption withSettings(Collection<String> settings)
The settings of the Suricata compatible rule option. Rule options have zero or more setting values, and the
number of possible and required settings depends on the Keyword
. For more information about the
settings for specific options, see Rule options.
settings
- The settings of the Suricata compatible rule option. Rule options have zero or more setting values, and
the number of possible and required settings depends on the Keyword
. For more information
about the settings for specific options, see Rule options.public String toString()
toString
in class Object
Object.toString()
public RuleOption clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.