Package com.oracle.bmc.datasafe.model
Class Finding
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.Finding
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class Finding extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The particular finding reported by the security assessment.
Note: Objects should always be created or deserialized using theFinding.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 theFinding.Builder
, which maintain a set of all explicitly set fields calledFinding.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
Finding.Builder
static class
Finding.Severity
The severity of the finding.
-
Constructor Summary
Constructors Constructor Description Finding(String key, Finding.Severity severity, String assessmentId, String targetId, String title, String remarks, Object details, String summary, References references, Finding.Severity oracleDefinedSeverity, Boolean isRiskModified, Boolean hasTargetDbRiskLevelChanged, String justification, Date timeValidUntil, Date timeUpdated, FindingLifecycleState lifecycleState, String lifecycleDetails)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Finding.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getAssessmentId()
The OCID of the assessment that generated this finding.Object
getDetails()
The details of the finding.Boolean
getHasTargetDbRiskLevelChanged()
Determines if this risk level has changed on the target database since the last time ‘severity’ was modified by user.Boolean
getIsRiskModified()
Determines if this risk level was modified by user.String
getJustification()
User provided reason for accepting or modifying this finding if they choose to do so.String
getKey()
A unique identifier for the finding.String
getLifecycleDetails()
Details about the current state of the finding.FindingLifecycleState
getLifecycleState()
The current state of the finding.Finding.Severity
getOracleDefinedSeverity()
The severity of the finding as determined by security assessment.References
getReferences()
Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, STIG rule, or related to a GDPR Article/Recital.String
getRemarks()
The explanation of the issue in this finding.Finding.Severity
getSeverity()
The severity of the finding.String
getSummary()
The brief summary of the finding.String
getTargetId()
The OCID of the target database.Date
getTimeUpdated()
The date and time the risk level of finding was last updated, in the format defined by RFC3339.Date
getTimeValidUntil()
The time until which the change in severity(deferred/modified) of this finding is valid.String
getTitle()
The short title for the finding.int
hashCode()
Finding.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
Finding
@Deprecated @ConstructorProperties({"key","severity","assessmentId","targetId","title","remarks","details","summary","references","oracleDefinedSeverity","isRiskModified","hasTargetDbRiskLevelChanged","justification","timeValidUntil","timeUpdated","lifecycleState","lifecycleDetails"}) public Finding(String key, Finding.Severity severity, String assessmentId, String targetId, String title, String remarks, Object details, String summary, References references, Finding.Severity oracleDefinedSeverity, Boolean isRiskModified, Boolean hasTargetDbRiskLevelChanged, String justification, Date timeValidUntil, Date timeUpdated, FindingLifecycleState lifecycleState, String lifecycleDetails)
Deprecated.
-
-
Method Detail
-
builder
public static Finding.Builder builder()
Create a new builder.
-
toBuilder
public Finding.Builder toBuilder()
-
getKey
public String getKey()
A unique identifier for the finding.This is common for the finding across targets.
- Returns:
- the value
-
getSeverity
public Finding.Severity getSeverity()
The severity of the finding.- Returns:
- the value
-
getAssessmentId
public String getAssessmentId()
The OCID of the assessment that generated this finding.- Returns:
- the value
-
getTargetId
public String getTargetId()
The OCID of the target database.- Returns:
- the value
-
getTitle
public String getTitle()
The short title for the finding.- Returns:
- the value
-
getRemarks
public String getRemarks()
The explanation of the issue in this finding.It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation.
- Returns:
- the value
-
getDetails
public Object getDetails()
The details of the finding.Provides detailed information to explain the finding summary, typically results from the assessed database, followed by any recommendations for changes.
- Returns:
- the value
-
getSummary
public String getSummary()
The brief summary of the finding.When the finding is informational, the summary typically reports only the number of data elements that were examined.
- Returns:
- the value
-
getReferences
public References getReferences()
Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, STIG rule, or related to a GDPR Article/Recital.- Returns:
- the value
-
getOracleDefinedSeverity
public Finding.Severity getOracleDefinedSeverity()
The severity of the finding as determined by security assessment.This cannot be modified by user.
- Returns:
- the value
-
getIsRiskModified
public Boolean getIsRiskModified()
Determines if this risk level was modified by user.- Returns:
- the value
-
getHasTargetDbRiskLevelChanged
public Boolean getHasTargetDbRiskLevelChanged()
Determines if this risk level has changed on the target database since the last time ‘severity’ was modified by user.- Returns:
- the value
-
getJustification
public String getJustification()
User provided reason for accepting or modifying this finding if they choose to do so.- Returns:
- the value
-
getTimeValidUntil
public Date getTimeValidUntil()
The time until which the change in severity(deferred/modified) of this finding is valid.- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
The date and time the risk level of finding was last updated, in the format defined by RFC3339.- Returns:
- the value
-
getLifecycleState
public FindingLifecycleState getLifecycleState()
The current state of the finding.- Returns:
- the value
-
getLifecycleDetails
public String getLifecycleDetails()
Details about the current state of the finding.- 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
-
-