Package com.oracle.bmc.datasafe.model
Class FindingSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.FindingSummary.Builder
-
- Enclosing class:
- FindingSummary
public static class FindingSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FindingSummary.Builder
assessmentId(String assessmentId)
The OCID of the assessment that generated this finding.FindingSummary
build()
FindingSummary.Builder
copy(FindingSummary model)
FindingSummary.Builder
details(Object details)
The details of the finding.FindingSummary.Builder
hasTargetDbRiskLevelChanged(Boolean hasTargetDbRiskLevelChanged)
Determines if this risk level has changed on the target database since the last time ‘severity’ was modified by user.FindingSummary.Builder
isRiskModified(Boolean isRiskModified)
Determines if this risk level was modified by user.FindingSummary.Builder
isTopFinding(Boolean isTopFinding)
Indicates whether a given finding is marked as topFinding or not.FindingSummary.Builder
justification(String justification)
User provided reason for accepting or modifying this finding if they choose to do so.FindingSummary.Builder
key(String key)
The unique finding key.FindingSummary.Builder
lifecycleDetails(String lifecycleDetails)
Details about the current state of the finding.FindingSummary.Builder
lifecycleState(FindingLifecycleState lifecycleState)
The current state of the finding.FindingSummary.Builder
oneline(String oneline)
Provides a recommended approach to take to remediate the finding reported.FindingSummary.Builder
oracleDefinedSeverity(Finding.Severity oracleDefinedSeverity)
The severity of the finding as determined by security assessment.FindingSummary.Builder
references(References references)
Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, a STIG rule, or a GDPR Article/Recital.FindingSummary.Builder
remarks(String remarks)
The explanation of the issue in this finding.FindingSummary.Builder
severity(FindingSummary.Severity severity)
The severity of the finding as determined by security assessment and is same as oracleDefinedSeverity, unless modified by user.FindingSummary.Builder
summary(String summary)
The brief summary of the finding.FindingSummary.Builder
targetId(String targetId)
The OCID of the target database.FindingSummary.Builder
timeUpdated(Date timeUpdated)
The date and time the risk level of finding was last updated, in the format defined by RFC3339.FindingSummary.Builder
timeValidUntil(Date timeValidUntil)
The time until which the change in severity(deferred / modified) of this finding is valid.FindingSummary.Builder
title(String title)
The short title for the finding.
-
-
-
Method Detail
-
severity
public FindingSummary.Builder severity(FindingSummary.Severity severity)
The severity of the finding as determined by security assessment and is same as oracleDefinedSeverity, unless modified by user.- Parameters:
severity
- the value to set- Returns:
- this builder
-
assessmentId
public FindingSummary.Builder assessmentId(String assessmentId)
The OCID of the assessment that generated this finding.- Parameters:
assessmentId
- the value to set- Returns:
- this builder
-
targetId
public FindingSummary.Builder targetId(String targetId)
The OCID of the target database.- Parameters:
targetId
- the value to set- Returns:
- this builder
-
key
public FindingSummary.Builder key(String key)
The unique finding key.This is a system-generated identifier. To get the finding key for a finding, use ListFindings.
- Parameters:
key
- the value to set- Returns:
- this builder
-
isTopFinding
public FindingSummary.Builder isTopFinding(Boolean isTopFinding)
Indicates whether a given finding is marked as topFinding or not.- Parameters:
isTopFinding
- the value to set- Returns:
- this builder
-
title
public FindingSummary.Builder title(String title)
The short title for the finding.- Parameters:
title
- the value to set- Returns:
- this builder
-
remarks
public FindingSummary.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 FindingSummary.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 FindingSummary.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
-
oneline
public FindingSummary.Builder oneline(String oneline)
Provides a recommended approach to take to remediate the finding reported.- Parameters:
oneline
- the value to set- Returns:
- this builder
-
references
public FindingSummary.Builder references(References references)
Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, a STIG rule, or a GDPR Article/Recital.- Parameters:
references
- the value to set- Returns:
- this builder
-
oracleDefinedSeverity
public FindingSummary.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 FindingSummary.Builder isRiskModified(Boolean isRiskModified)
Determines if this risk level was modified by user.- Parameters:
isRiskModified
- the value to set- Returns:
- this builder
-
hasTargetDbRiskLevelChanged
public FindingSummary.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 FindingSummary.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 FindingSummary.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 FindingSummary.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 FindingSummary.Builder lifecycleState(FindingLifecycleState lifecycleState)
The current state of the finding.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public FindingSummary.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the finding.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
build
public FindingSummary build()
-
copy
public FindingSummary.Builder copy(FindingSummary model)
-
-