Class FindingDetail

java.lang.Object
software.amazon.awssdk.services.inspector2.model.FindingDetail
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<FindingDetail.Builder,FindingDetail>

@Generated("software.amazon.awssdk:codegen") public final class FindingDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FindingDetail.Builder,FindingDetail>

Details of the vulnerability identified in a finding.

See Also:
  • Method Details

    • cisaData

      public final CisaData cisaData()

      The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.

      Returns:
      The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.
    • hasCwes

      public final boolean hasCwes()
      For responses, this returns true if the service returned a value for the Cwes property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • cwes

      public final List<String> cwes()

      The Common Weakness Enumerations (CWEs) associated with the vulnerability.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasCwes() method.

      Returns:
      The Common Weakness Enumerations (CWEs) associated with the vulnerability.
    • epssScore

      public final Double epssScore()

      The Exploit Prediction Scoring System (EPSS) score of the vulnerability.

      Returns:
      The Exploit Prediction Scoring System (EPSS) score of the vulnerability.
    • hasEvidences

      public final boolean hasEvidences()
      For responses, this returns true if the service returned a value for the Evidences property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • evidences

      public final List<Evidence> evidences()

      Information on the evidence of the vulnerability.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasEvidences() method.

      Returns:
      Information on the evidence of the vulnerability.
    • exploitObserved

      public final ExploitObserved exploitObserved()

      Contains information on when this exploit was observed.

      Returns:
      Contains information on when this exploit was observed.
    • findingArn

      public final String findingArn()

      The finding ARN that the vulnerability details are associated with.

      Returns:
      The finding ARN that the vulnerability details are associated with.
    • hasReferenceUrls

      public final boolean hasReferenceUrls()
      For responses, this returns true if the service returned a value for the ReferenceUrls property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • referenceUrls

      public final List<String> referenceUrls()

      The reference URLs for the vulnerability data.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasReferenceUrls() method.

      Returns:
      The reference URLs for the vulnerability data.
    • riskScore

      public final Integer riskScore()

      The risk score of the vulnerability.

      Returns:
      The risk score of the vulnerability.
    • hasTools

      public final boolean hasTools()
      For responses, this returns true if the service returned a value for the Tools property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • tools

      public final List<String> tools()

      The known malware tools or kits that can exploit the vulnerability.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTools() method.

      Returns:
      The known malware tools or kits that can exploit the vulnerability.
    • hasTtps

      public final boolean hasTtps()
      For responses, this returns true if the service returned a value for the Ttps property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • ttps

      public final List<String> ttps()

      The MITRE adversary tactics, techniques, or procedures (TTPs) associated with the vulnerability.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTtps() method.

      Returns:
      The MITRE adversary tactics, techniques, or procedures (TTPs) associated with the vulnerability.
    • toBuilder

      public FindingDetail.Builder 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 interface ToCopyableBuilder<FindingDetail.Builder,FindingDetail>
      Returns:
      a builder for type T
    • builder

      public static FindingDetail.Builder builder()
    • serializableBuilderClass

      public static Class<? extends FindingDetail.Builder> serializableBuilderClass()
    • hashCode

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

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      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 an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.