@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SeverityLevel extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a severity level for findings that a custom data identifier produces. A severity level determines which severity is assigned to the findings, based on the number of occurrences of text that matches the custom data identifier's detection criteria.
Constructor and Description |
---|
SeverityLevel() |
Modifier and Type | Method and Description |
---|---|
SeverityLevel |
clone() |
boolean |
equals(Object obj) |
Long |
getOccurrencesThreshold()
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in
order to produce a finding with the specified severity (severity).
|
String |
getSeverity()
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified
threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for
the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setOccurrencesThreshold(Long occurrencesThreshold)
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in
order to produce a finding with the specified severity (severity).
|
void |
setSeverity(String severity)
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified
threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for
the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
|
String |
toString()
Returns a string representation of this object.
|
SeverityLevel |
withOccurrencesThreshold(Long occurrencesThreshold)
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in
order to produce a finding with the specified severity (severity).
|
SeverityLevel |
withSeverity(DataIdentifierSeverity severity)
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified
threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for
the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
|
SeverityLevel |
withSeverity(String severity)
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified
threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for
the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
|
public void setOccurrencesThreshold(Long occurrencesThreshold)
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in order to produce a finding with the specified severity (severity).
occurrencesThreshold
- The minimum number of occurrences of text that must match the custom data identifier's detection criteria
in order to produce a finding with the specified severity (severity).public Long getOccurrencesThreshold()
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in order to produce a finding with the specified severity (severity).
public SeverityLevel withOccurrencesThreshold(Long occurrencesThreshold)
The minimum number of occurrences of text that must match the custom data identifier's detection criteria in order to produce a finding with the specified severity (severity).
occurrencesThreshold
- The minimum number of occurrences of text that must match the custom data identifier's detection criteria
in order to produce a finding with the specified severity (severity).public void setSeverity(String severity)
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
severity
- The severity to assign to a finding: if the number of occurrences is greater than or equal to the
specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the
threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.DataIdentifierSeverity
public String getSeverity()
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
DataIdentifierSeverity
public SeverityLevel withSeverity(String severity)
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
severity
- The severity to assign to a finding: if the number of occurrences is greater than or equal to the
specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the
threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.DataIdentifierSeverity
public SeverityLevel withSeverity(DataIdentifierSeverity severity)
The severity to assign to a finding: if the number of occurrences is greater than or equal to the specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.
severity
- The severity to assign to a finding: if the number of occurrences is greater than or equal to the
specified threshold (occurrencesThreshold); and, if applicable, the number of occurrences is less than the
threshold for the next consecutive severity level for the custom data identifier, moving from LOW to HIGH.DataIdentifierSeverity
public String toString()
toString
in class Object
Object.toString()
public SeverityLevel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.