Class Severity
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.Severity
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Severity.Builder,Severity>
@Generated("software.amazon.awssdk:codegen") public final class Severity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Severity.Builder,Severity>
The severity of the finding.
The finding provider can provide the initial severity. The finding provider can only update the severity if it hasn't been updated using
BatchUpdateFindings.The finding must have either
LabelorNormalizedpopulated. If only one of these attributes is populated, then Security Hub automatically populates the other one. If neither attribute is populated, then the finding is invalid.Labelis the preferred attribute.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSeverity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Severity.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()SeverityLabellabel()The severity value of the finding.StringlabelAsString()The severity value of the finding.Integernormalized()Deprecated.Stringoriginal()The native severity from the finding product that generated the finding.Doubleproduct()Deprecated.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Severity.Builder>serializableBuilderClass()Severity.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
-
product
public final Double product()
Deprecated. This attribute isn't included in findings. Instead of providing
Product, provideOriginal.The native severity as defined by the Amazon Web Services service or integrated partner product that generated the finding.
- Returns:
- Deprecated. This attribute isn't included in findings. Instead of providing
Product, provideOriginal.The native severity as defined by the Amazon Web Services service or integrated partner product that generated the finding.
-
label
public final SeverityLabel label()
The severity value of the finding. The allowed values are the following.
-
INFORMATIONAL- No issue was found. -
LOW- The issue does not require action on its own. -
MEDIUM- The issue must be addressed but not urgently. -
HIGH- The issue must be addressed as a priority. -
CRITICAL- The issue must be remediated immediately to avoid it escalating.
If you provide
Normalizedand don't provideLabel, thenLabelis set automatically as follows.-
0 -
INFORMATIONAL -
1–39 -
LOW -
40–69 -
MEDIUM -
70–89 -
HIGH -
90–100 -
CRITICAL
If the service returns an enum value that is not available in the current SDK version,
labelwill returnSeverityLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlabelAsString().- Returns:
- The severity value of the finding. The allowed values are the following.
-
INFORMATIONAL- No issue was found. -
LOW- The issue does not require action on its own. -
MEDIUM- The issue must be addressed but not urgently. -
HIGH- The issue must be addressed as a priority. -
CRITICAL- The issue must be remediated immediately to avoid it escalating.
If you provide
Normalizedand don't provideLabel, thenLabelis set automatically as follows.-
0 -
INFORMATIONAL -
1–39 -
LOW -
40–69 -
MEDIUM -
70–89 -
HIGH -
90–100 -
CRITICAL
-
- See Also:
SeverityLabel
-
-
labelAsString
public final String labelAsString()
The severity value of the finding. The allowed values are the following.
-
INFORMATIONAL- No issue was found. -
LOW- The issue does not require action on its own. -
MEDIUM- The issue must be addressed but not urgently. -
HIGH- The issue must be addressed as a priority. -
CRITICAL- The issue must be remediated immediately to avoid it escalating.
If you provide
Normalizedand don't provideLabel, thenLabelis set automatically as follows.-
0 -
INFORMATIONAL -
1–39 -
LOW -
40–69 -
MEDIUM -
70–89 -
HIGH -
90–100 -
CRITICAL
If the service returns an enum value that is not available in the current SDK version,
labelwill returnSeverityLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlabelAsString().- Returns:
- The severity value of the finding. The allowed values are the following.
-
INFORMATIONAL- No issue was found. -
LOW- The issue does not require action on its own. -
MEDIUM- The issue must be addressed but not urgently. -
HIGH- The issue must be addressed as a priority. -
CRITICAL- The issue must be remediated immediately to avoid it escalating.
If you provide
Normalizedand don't provideLabel, thenLabelis set automatically as follows.-
0 -
INFORMATIONAL -
1–39 -
LOW -
40–69 -
MEDIUM -
70–89 -
HIGH -
90–100 -
CRITICAL
-
- See Also:
SeverityLabel
-
-
normalized
public final Integer normalized()
Deprecated. The normalized severity of a finding. Instead of providing
Normalized, provideLabel.The value of
Normalizedcan be an integer between0and100.If you provide
Labeland don't provideNormalized, thenNormalizedis set automatically as follows.-
INFORMATIONAL- 0 -
LOW- 1 -
MEDIUM- 40 -
HIGH- 70 -
CRITICAL- 90
- Returns:
- Deprecated. The normalized severity of a finding. Instead of providing
Normalized, provideLabel.The value of
Normalizedcan be an integer between0and100.If you provide
Labeland don't provideNormalized, thenNormalizedis set automatically as follows.-
INFORMATIONAL- 0 -
LOW- 1 -
MEDIUM- 40 -
HIGH- 70 -
CRITICAL- 90
-
-
-
original
public final String original()
The native severity from the finding product that generated the finding.
Length Constraints: Minimum length of 1. Maximum length of 64.
- Returns:
- The native severity from the finding product that generated the finding.
Length Constraints: Minimum length of 1. Maximum length of 64.
-
toBuilder
public Severity.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Severity.Builder,Severity>
-
builder
public static Severity.Builder builder()
-
serializableBuilderClass
public static Class<? extends Severity.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-