Class SeverityLevel
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.SeverityLevel
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SeverityLevel.Builder,SeverityLevel>
@Generated("software.amazon.awssdk:codegen") public final class SeverityLevel extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SeverityLevel.Builder,SeverityLevel>
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 match the custom data identifier's detection criteria.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSeverityLevel.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SeverityLevel.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LongoccurrencesThreshold()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).List<SdkField<?>>sdkFields()static Class<? extends SeverityLevel.Builder>serializableBuilderClass()DataIdentifierSeverityseverity()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.StringseverityAsString()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.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
occurrencesThreshold
public final 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).
- Returns:
- 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).
-
severity
public final 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.
If the service returns an enum value that is not available in the current SDK version,
severitywill returnDataIdentifierSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- 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.
- See Also:
DataIdentifierSeverity
-
severityAsString
public final String severityAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
severitywill returnDataIdentifierSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- 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.
- See Also:
DataIdentifierSeverity
-
toBuilder
public SeverityLevel.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SeverityLevel.Builder,SeverityLevel>
-
builder
public static SeverityLevel.Builder builder()
-
serializableBuilderClass
public static Class<? extends SeverityLevel.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-