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.Builder
assessmentId(String assessmentId)
The OCID of the assessment that generated this finding.Finding
build()
Finding.Builder
copy(Finding model)
Finding.Builder
details(Object details)
The details of the finding.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.Finding.Builder
isRiskModified(Boolean isRiskModified)
Determines if this risk level was modified by user.Finding.Builder
justification(String justification)
User provided reason for accepting or modifying this finding if they choose to do so.Finding.Builder
key(String key)
A unique identifier for the finding.Finding.Builder
lifecycleDetails(String lifecycleDetails)
Details about the current state of the finding.Finding.Builder
lifecycleState(FindingLifecycleState lifecycleState)
The current state of the finding.Finding.Builder
oracleDefinedSeverity(Finding.Severity oracleDefinedSeverity)
The severity of the finding as determined by security assessment.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.Finding.Builder
remarks(String remarks)
The explanation of the issue in this finding.Finding.Builder
severity(Finding.Severity severity)
The severity of the finding.Finding.Builder
summary(String summary)
The brief summary of the finding.Finding.Builder
targetId(String targetId)
The OCID of the target database.Finding.Builder
timeUpdated(Date timeUpdated)
The date and time the risk level of finding was last updated, in the format defined by RFC3339.Finding.Builder
timeValidUntil(Date timeValidUntil)
The time until which the change in severity(deferred/modified) of this finding is valid.Finding.Builder
title(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)
-
-