Class HostAgentScanResultProblem
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.vulnerabilityscanning.model.HostAgentScanResultProblem
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20210215") public final class HostAgentScanResultProblem extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelA problem found in a host agent scan
Note: Objects should always be created or deserialized using theHostAgentScanResultProblem.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
HostAgentScanResultProblem.Builder, which maintain a set of all explicitly set fields calledHostAgentScanResultProblem.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 classHostAgentScanResultProblem.Builder
-
Constructor Summary
Constructors Constructor Description HostAgentScanResultProblem(String name, String description, ScanResultProblemSeverity severity, ScanResultVulnerabilityState state, String cveReference, Integer issueId, Date timeFirstDetected, Date timeLastDetected, List<Package> vulnerablePackages)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostAgentScanResultProblem.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCveReference()Reference to problem MITRE CVE IDStringgetDescription()Problem descriptionIntegergetIssueId()Reference to problem issue IDStringgetName()Name of the problemScanResultProblemSeveritygetSeverity()Problem severityScanResultVulnerabilityStategetState()State of the vulnerabilityDategetTimeFirstDetected()Date of scan result that first reported the vulnerabilityDategetTimeLastDetected()Date of scan result that most recently reported the vulnerabilityList<Package>getVulnerablePackages()Packages in which the problem is detectedinthashCode()HostAgentScanResultProblem.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
HostAgentScanResultProblem
@Deprecated @ConstructorProperties({"name","description","severity","state","cveReference","issueId","timeFirstDetected","timeLastDetected","vulnerablePackages"}) public HostAgentScanResultProblem(String name, String description, ScanResultProblemSeverity severity, ScanResultVulnerabilityState state, String cveReference, Integer issueId, Date timeFirstDetected, Date timeLastDetected, List<Package> vulnerablePackages)
Deprecated.
-
-
Method Detail
-
builder
public static HostAgentScanResultProblem.Builder builder()
Create a new builder.
-
toBuilder
public HostAgentScanResultProblem.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
-
getIssueId
public Integer getIssueId()
Reference to problem issue 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:
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
-
-