Package com.oracle.bmc.datasafe.model
Class Finding.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.Finding.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Finding.BuilderassessmentId(String assessmentId)The OCID of the assessment that generated this finding.Findingbuild()Finding.Buildercopy(Finding model)Finding.Builderdetails(Object details)The details of the finding.Finding.BuilderhasTargetDbRiskLevelChanged(Boolean hasTargetDbRiskLevelChanged)Determines if this risk level has changed on the target database since the last time ‘severity’ was modified by user.Finding.BuilderisRiskModified(Boolean isRiskModified)Determines if this risk level was modified by user.Finding.Builderjustification(String justification)User provided reason for accepting or modifying this finding if they choose to do so.Finding.Builderkey(String key)A unique identifier for the finding.Finding.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the finding.Finding.BuilderlifecycleState(FindingLifecycleState lifecycleState)The current state of the finding.Finding.BuilderoracleDefinedSeverity(Finding.Severity oracleDefinedSeverity)The severity of the finding as determined by security assessment.Finding.Builderreferences(References references)Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, STIG rule, or related to a GDPR Article/Recital.Finding.Builderremarks(String remarks)The explanation of the issue in this finding.Finding.Builderseverity(Finding.Severity severity)The severity of the finding.Finding.Buildersummary(String summary)The brief summary of the finding.Finding.BuildertargetId(String targetId)The OCID of the target database.Finding.BuildertimeUpdated(Date timeUpdated)The date and time the risk level of finding was last updated, in the format defined by RFC3339.Finding.BuildertimeValidUntil(Date timeValidUntil)The time until which the change in severity(deferred/modified) of this finding is valid.Finding.Buildertitle(String title)The short title for the finding.
-
-
-
Method Detail
-
key
public Finding.Builder key(String key)
A unique identifier for the finding.This is common for the finding across targets.
- Parameters:
key- the value to set- Returns:
- this builder
-
severity
public Finding.Builder severity(Finding.Severity severity)
The severity of the finding.- Parameters:
severity- the value to set- Returns:
- this builder
-
assessmentId
public Finding.Builder assessmentId(String assessmentId)
The OCID of the assessment that generated this finding.- Parameters:
assessmentId- the value to set- Returns:
- this builder
-
targetId
public Finding.Builder targetId(String targetId)
The OCID of the target database.- Parameters:
targetId- the value to set- Returns:
- this builder
-
title
public Finding.Builder title(String title)
The short title for the finding.- Parameters:
title- the value to set- Returns:
- this builder
-
remarks
public Finding.Builder remarks(String remarks)
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.
- Parameters:
remarks- the value to set- Returns:
- this builder
-
details
public Finding.Builder details(Object details)
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.
- Parameters:
details- the value to set- Returns:
- this builder
-
summary
public Finding.Builder summary(String summary)
The brief summary of the finding.When the finding is informational, the summary typically reports only the number of data elements that were examined.
- Parameters:
summary- the value to set- Returns:
- this builder
-
references
public Finding.Builder references(References references)
Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, STIG rule, or related to a GDPR Article/Recital.- Parameters:
references- the value to set- Returns:
- this builder
-
oracleDefinedSeverity
public Finding.Builder oracleDefinedSeverity(Finding.Severity oracleDefinedSeverity)
The severity of the finding as determined by security assessment.This cannot be modified by user.
- Parameters:
oracleDefinedSeverity- the value to set- Returns:
- this builder
-
isRiskModified
public Finding.Builder isRiskModified(Boolean isRiskModified)
Determines if this risk level was modified by user.- Parameters:
isRiskModified- the value to set- Returns:
- this builder
-
hasTargetDbRiskLevelChanged
public Finding.Builder hasTargetDbRiskLevelChanged(Boolean hasTargetDbRiskLevelChanged)
Determines if this risk level has changed on the target database since the last time ‘severity’ was modified by user.- Parameters:
hasTargetDbRiskLevelChanged- the value to set- Returns:
- this builder
-
justification
public Finding.Builder justification(String justification)
User provided reason for accepting or modifying this finding if they choose to do so.- Parameters:
justification- the value to set- Returns:
- this builder
-
timeValidUntil
public Finding.Builder timeValidUntil(Date timeValidUntil)
The time until which the change in severity(deferred/modified) of this finding is valid.- Parameters:
timeValidUntil- the value to set- Returns:
- this builder
-
timeUpdated
public Finding.Builder timeUpdated(Date timeUpdated)
The date and time the risk level of finding was last updated, in the format defined by RFC3339.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public Finding.Builder lifecycleState(FindingLifecycleState lifecycleState)
The current state of the finding.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public Finding.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the finding.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
build
public Finding build()
-
copy
public Finding.Builder copy(Finding model)
-
-