Class TemplateAnalyticsDimensions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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