Class Severity
- All Implemented Interfaces:
Serializable
,SdkPojo
,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 Label
or Normalized
populated. 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. Label
is the preferred attribute.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Severity.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final SeverityLabel
label()
The severity value of the finding.final String
The severity value of the finding.final Integer
Deprecated.final String
original()
The native severity from the finding product that generated the finding.final Double
product()
Deprecated.static Class
<? extends Severity.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
Normalized
and do not provideLabel
, thenLabel
is 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,
label
will 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
Normalized
and do not provideLabel
, thenLabel
is set automatically as follows.-
0 -
INFORMATIONAL
-
1–39 -
LOW
-
40–69 -
MEDIUM
-
70–89 -
HIGH
-
90–100 -
CRITICAL
-
- See Also:
-
-
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
Normalized
and do not provideLabel
, thenLabel
is 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,
label
will 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
Normalized
and do not provideLabel
, thenLabel
is set automatically as follows.-
0 -
INFORMATIONAL
-
1–39 -
LOW
-
40–69 -
MEDIUM
-
70–89 -
HIGH
-
90–100 -
CRITICAL
-
- See Also:
-
-
normalized
Deprecated. The normalized severity of a finding. Instead of providing
Normalized
, provideLabel
.If you provide
Label
and do not provideNormalized
, thenNormalized
is 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
.If you provide
Label
and do not provideNormalized
, thenNormalized
is set automatically as follows.-
INFORMATIONAL
- 0 -
LOW
- 1 -
MEDIUM
- 40 -
HIGH
- 70 -
CRITICAL
- 90
-
-
-
original
The native severity from the finding product that generated the finding.
- Returns:
- The native severity from the finding product that generated the finding.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Severity.Builder,
Severity> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-