Class VulnerabilityDetails


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20220421")
    public final class VulnerabilityDetails
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    A vulnerability details contains details for a vulnerability as reported by the source.
    Note: Objects should always be created or deserialized using the VulnerabilityDetails.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the VulnerabilityDetails.Builder, which maintain a set of all explicitly set fields called VulnerabilityDetails.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getVulnerabilityId

        public String getVulnerabilityId()
        Vulnerability identifier from source, e.g., CVE-1999-0067, GHSA-9vjp-v76f-g363.
        Returns:
        the value
      • getSource

        public String getSource()
        Source that published the vulnerability.
        Returns:
        the value
      • getIsDirectVulnerability

        public Boolean getIsDirectVulnerability()
        Indicates if the vulnerability is immediately affecting any artifact in an audit.
        Returns:
        the value
      • getRelatedVulnerabilities

        public List<RelatedVulnerabilityReference> getRelatedVulnerabilities()
        List of related vulnerabilities, as reported by the source, along with aliases, where aliases are the same vulnerability reported by different sources.
        Returns:
        the value
      • getTimeCreated

        public Date getTimeCreated()
        Date when the vulnerability was published, at the source.
        Returns:
        the value
      • getTimeUpdated

        public Date getTimeUpdated()
        Date when the vulnerability was last modified, at the source.
        Returns:
        the value
      • getSeverity

        public VulnerabilitySeverity getSeverity()
        ADM qualitative severity score.

        Can be either NONE, LOW, MEDIUM, HIGH or CRITICAL.

        Returns:
        the value
      • getMetrics

        public List<VulnerabilityMetric> getMetrics()
        List of reported metrics by the source.
        Returns:
        the value
      • getStatus

        public String getStatus()
        The status of the vulnerability, may be one of Analyzed, Rejected, Modified, Awaiting Analysis, Undergoing Analysis, Published, Withdrawn, Received as reported by the source.
        Returns:
        the value
      • getReferences

        public List<String> getReferences()
        References of the vulnerability at source.
        Returns:
        the value
      • getVulnerabilitySummary

        public String getVulnerabilitySummary()
        Summary of the vulnerability.
        Returns:
        the value
      • getVulnerabilityDescription

        public String getVulnerabilityDescription()
        Detailed description of the vulnerability.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel