Class ContainerScanResultProblem
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.vulnerabilityscanning.model.ContainerScanResultProblem
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20210215") public final class ContainerScanResultProblem extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A problem found in a container scan
Note: Objects should always be created or deserialized using theContainerScanResultProblem.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
ContainerScanResultProblem.Builder
, which maintain a set of all explicitly set fields calledContainerScanResultProblem.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 class
ContainerScanResultProblem.Builder
-
Constructor Summary
Constructors Constructor Description ContainerScanResultProblem(String name, String description, ScanResultProblemSeverity severity, ScanResultVulnerabilityState state, String cveReference, Date timeFirstDetected, Date timeLastDetected, List<Package> vulnerablePackages)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContainerScanResultProblem.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getCveReference()
Reference to problem MITRE CVE IDString
getDescription()
Problem descriptionString
getName()
Name of the problemScanResultProblemSeverity
getSeverity()
Problem severityScanResultVulnerabilityState
getState()
State of the vulnerabilityDate
getTimeFirstDetected()
Date of scan result that first reported the vulnerabilityDate
getTimeLastDetected()
Date of scan result that most recently reported the vulnerabilityList<Package>
getVulnerablePackages()
Packages in which the problem is detectedint
hashCode()
ContainerScanResultProblem.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
ContainerScanResultProblem
@Deprecated @ConstructorProperties({"name","description","severity","state","cveReference","timeFirstDetected","timeLastDetected","vulnerablePackages"}) public ContainerScanResultProblem(String name, String description, ScanResultProblemSeverity severity, ScanResultVulnerabilityState state, String cveReference, Date timeFirstDetected, Date timeLastDetected, List<Package> vulnerablePackages)
Deprecated.
-
-
Method Detail
-
builder
public static ContainerScanResultProblem.Builder builder()
Create a new builder.
-
toBuilder
public ContainerScanResultProblem.Builder toBuilder()
-
getName
public String getName()
Name of the problem- Returns:
- the value
-
getDescription
public String getDescription()
Problem description- Returns:
- the value
-
getSeverity
public ScanResultProblemSeverity getSeverity()
Problem severity- Returns:
- the value
-
getState
public ScanResultVulnerabilityState getState()
State of the vulnerability- Returns:
- the value
-
getCveReference
public String getCveReference()
Reference to problem MITRE CVE ID- Returns:
- the value
-
getTimeFirstDetected
public Date getTimeFirstDetected()
Date of scan result that first reported the vulnerability- Returns:
- the value
-
getTimeLastDetected
public Date getTimeLastDetected()
Date of scan result that most recently reported the vulnerability- Returns:
- the value
-
getVulnerablePackages
public List<Package> getVulnerablePackages()
Packages in which the problem is detected- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in 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:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-