Package com.oracle.bmc.adm.model
Class VulnerabilityDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.adm.model.VulnerabilityDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20220421") public final class VulnerabilityDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelA vulnerability details contains details for a vulnerability as reported by the source.
Note: Objects should always be created or deserialized using theVulnerabilityDetails.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 theVulnerabilityDetails.Builder, which maintain a set of all explicitly set fields calledVulnerabilityDetails.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVulnerabilityDetails.Builder
-
Constructor Summary
Constructors Constructor Description VulnerabilityDetails(String vulnerabilityId, String source, Boolean isDirectVulnerability, List<RelatedVulnerabilityReference> relatedVulnerabilities, Date timeCreated, Date timeUpdated, VulnerabilitySeverity severity, List<VulnerabilityMetric> metrics, String status, List<String> references, String vulnerabilitySummary, String vulnerabilityDescription)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulnerabilityDetails.Builderbuilder()Create a new builder.booleanequals(Object o)BooleangetIsDirectVulnerability()Indicates if the vulnerability is immediately affecting any artifact in an audit.List<VulnerabilityMetric>getMetrics()List of reported metrics by the source.List<String>getReferences()References of the vulnerability at source.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.VulnerabilitySeveritygetSeverity()ADM qualitative severity score.StringgetSource()Source that published the vulnerability.StringgetStatus()The status of the vulnerability, may be one of Analyzed, Rejected, Modified, Awaiting Analysis, Undergoing Analysis, Published, Withdrawn, Received as reported by the source.DategetTimeCreated()Date when the vulnerability was published, at the source.DategetTimeUpdated()Date when the vulnerability was last modified, at the source.StringgetVulnerabilityDescription()Detailed description of the vulnerability.StringgetVulnerabilityId()Vulnerability identifier from source, e.g., CVE-1999-0067, GHSA-9vjp-v76f-g363.StringgetVulnerabilitySummary()Summary of the vulnerability.inthashCode()VulnerabilityDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
VulnerabilityDetails
@Deprecated @ConstructorProperties({"vulnerabilityId","source","isDirectVulnerability","relatedVulnerabilities","timeCreated","timeUpdated","severity","metrics","status","references","vulnerabilitySummary","vulnerabilityDescription"}) public VulnerabilityDetails(String vulnerabilityId, String source, Boolean isDirectVulnerability, List<RelatedVulnerabilityReference> relatedVulnerabilities, Date timeCreated, Date timeUpdated, VulnerabilitySeverity severity, List<VulnerabilityMetric> metrics, String status, List<String> references, String vulnerabilitySummary, String vulnerabilityDescription)
Deprecated.
-
-
Method Detail
-
builder
public static VulnerabilityDetails.Builder builder()
Create a new builder.
-
toBuilder
public VulnerabilityDetails.Builder toBuilder()
-
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:
toStringin classcom.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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-