Class Severity

    • Method Detail

      • description

        public final SeverityDescription description()

        The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).

        If the service returns an enum value that is not available in the current SDK version, description will return SeverityDescription.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from descriptionAsString().

        Returns:
        The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
        See Also:
        SeverityDescription
      • descriptionAsString

        public final String descriptionAsString()

        The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).

        If the service returns an enum value that is not available in the current SDK version, description will return SeverityDescription.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from descriptionAsString().

        Returns:
        The qualitative representation of the finding's severity, ranging from Low (least severe) to High (most severe).
        See Also:
        SeverityDescription
      • score

        public final Long score()

        The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).

        Returns:
        The numerical representation of the finding's severity, ranging from 1 (least severe) to 3 (most severe).
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)