@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, is less than the threshold for the next consecutive severity
level for the custom data identifier.
|
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, is less than the threshold for the next consecutive severity
level for the custom data identifier.
|
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, is less than the threshold for the next consecutive severity
level for the custom data identifier.
|
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, is less than the threshold for the next consecutive severity
level for the custom data identifier.
|
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, is less than the threshold for the next consecutive severity level for the custom data identifier.
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, is less than the threshold for the next consecutive
severity level for the custom data identifier.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, is less than the threshold for the next consecutive severity level for the custom data identifier.
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, is less than the threshold for the next consecutive severity level for the custom data identifier.
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, is less than the threshold for the next consecutive
severity level for the custom data identifier.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, is less than the threshold for the next consecutive severity level for the custom data identifier.
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, is less than the threshold for the next consecutive
severity level for the custom data identifier.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.