Package com.oracle.bmc.datasafe.model
Class TemplateAnalyticsDimensions.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.TemplateAnalyticsDimensions.Builder
-
- Enclosing class:
- TemplateAnalyticsDimensions
public static class TemplateAnalyticsDimensions.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateAnalyticsDimensions
build()
TemplateAnalyticsDimensions.Builder
copy(TemplateAnalyticsDimensions model)
TemplateAnalyticsDimensions.Builder
isCompared(Boolean isCompared)
Indicates whether or not the comparison between the latest assessment and the template baseline assessment is done.TemplateAnalyticsDimensions.Builder
isCompliant(Boolean isCompliant)
Indicates whether or not the latest assessment is compliant with the template baseline assessment.TemplateAnalyticsDimensions.Builder
isGroup(Boolean isGroup)
Indicates whether or not the template security assessment is applied to a target group.TemplateAnalyticsDimensions.Builder
targetDatabaseGroupId(String targetDatabaseGroupId)
The OCID of the target database group that the group assessment is created for.TemplateAnalyticsDimensions.Builder
targetId(String targetId)
The OCID of the target database.TemplateAnalyticsDimensions.Builder
templateAssessmentId(String templateAssessmentId)
The OCID of the security assessment of type TEMPLATE.TemplateAnalyticsDimensions.Builder
templateBaselineAssessmentId(String templateBaselineAssessmentId)
The OCID of the security assessment of type TEMPLATE_BASELINE.TemplateAnalyticsDimensions.Builder
timeLastCompared(Date timeLastCompared)
The date and time when the comparison was made upon the template baseline.TemplateAnalyticsDimensions.Builder
totalChecks(Integer totalChecks)
The number of checks inside the template assessment.TemplateAnalyticsDimensions.Builder
totalChecksFailed(Integer totalChecksFailed)
Indicates how many checks in the template have drifts in the comparison report.TemplateAnalyticsDimensions.Builder
totalNonCompliantTargets(Integer totalNonCompliantTargets)
The number of the target(s) that have drifts in the comparison report.TemplateAnalyticsDimensions.Builder
totalTargets(Integer totalTargets)
The number of the target(s) inside the target group for which the template baseline assessment was created for.
-
-
-
Method Detail
-
templateAssessmentId
public TemplateAnalyticsDimensions.Builder templateAssessmentId(String templateAssessmentId)
The OCID of the security assessment of type TEMPLATE.- Parameters:
templateAssessmentId
- the value to set- Returns:
- this builder
-
totalChecks
public TemplateAnalyticsDimensions.Builder totalChecks(Integer totalChecks)
The number of checks inside the template assessment.- Parameters:
totalChecks
- the value to set- Returns:
- this builder
-
templateBaselineAssessmentId
public TemplateAnalyticsDimensions.Builder templateBaselineAssessmentId(String templateBaselineAssessmentId)
The OCID of the security assessment of type TEMPLATE_BASELINE.- Parameters:
templateBaselineAssessmentId
- the value to set- Returns:
- this builder
-
targetId
public TemplateAnalyticsDimensions.Builder targetId(String targetId)
The OCID of the target database.This field will be in the response if the template was applied on an individual target.
- Parameters:
targetId
- the value to set- Returns:
- this builder
-
targetDatabaseGroupId
public TemplateAnalyticsDimensions.Builder targetDatabaseGroupId(String targetDatabaseGroupId)
The OCID of the target database group that the group assessment is created for.This field will be in the response if the template was applied on a target group.
- Parameters:
targetDatabaseGroupId
- the value to set- Returns:
- this builder
-
isGroup
public TemplateAnalyticsDimensions.Builder isGroup(Boolean isGroup)
Indicates whether or not the template security assessment is applied to a target group.If the value is false, it means the template security assessment is applied to a individual target.
- Parameters:
isGroup
- the value to set- Returns:
- this builder
-
isCompared
public TemplateAnalyticsDimensions.Builder isCompared(Boolean isCompared)
Indicates whether or not the comparison between the latest assessment and the template baseline assessment is done.If the value is false, it means the comparison is not done yet.
- Parameters:
isCompared
- the value to set- Returns:
- this builder
-
timeLastCompared
public TemplateAnalyticsDimensions.Builder timeLastCompared(Date timeLastCompared)
The date and time when the comparison was made upon the template baseline.Conforms to the format defined by RFC3339.
- Parameters:
timeLastCompared
- the value to set- Returns:
- this builder
-
isCompliant
public TemplateAnalyticsDimensions.Builder isCompliant(Boolean isCompliant)
Indicates whether or not the latest assessment is compliant with the template baseline assessment.If the value is false, it means there is drift in the comparison report and the totalChecksFailed field will have a non-zero value.
- Parameters:
isCompliant
- the value to set- Returns:
- this builder
-
totalChecksFailed
public TemplateAnalyticsDimensions.Builder totalChecksFailed(Integer totalChecksFailed)
Indicates how many checks in the template have drifts in the comparison report.This field is only present if isCompliant is false.
- Parameters:
totalChecksFailed
- the value to set- Returns:
- this builder
-
totalTargets
public TemplateAnalyticsDimensions.Builder totalTargets(Integer totalTargets)
The number of the target(s) inside the target group for which the template baseline assessment was created for.If the isGroup field is false, the value will be 1, representing the single target.
- Parameters:
totalTargets
- the value to set- Returns:
- this builder
-
totalNonCompliantTargets
public TemplateAnalyticsDimensions.Builder totalNonCompliantTargets(Integer totalNonCompliantTargets)
The number of the target(s) that have drifts in the comparison report.This field is only present if isCompared is true.
- Parameters:
totalNonCompliantTargets
- the value to set- Returns:
- this builder
-
build
public TemplateAnalyticsDimensions build()
-
copy
public TemplateAnalyticsDimensions.Builder copy(TemplateAnalyticsDimensions model)
-
-