Interface AssessmentFinding.Builder

  • Method Details

    • category

      AssessmentFinding.Builder category(String category)

      The category of this finding.

      Parameters:
      category - The category of this finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • category

      The category of this finding.

      Parameters:
      category - The category of this finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • findingId

      AssessmentFinding.Builder findingId(String findingId)

      A deterministic content-based identifier for this finding. Generated from hash(category + resource + check_type). The same resource with the same problem always produces the same findingId across assessment runs.

      Parameters:
      findingId - A deterministic content-based identifier for this finding. Generated from hash(category + resource + check_type). The same resource with the same problem always produces the same findingId across assessment runs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • message

      Human-readable description of what is wrong, why it matters, and what to do.

      Parameters:
      message - Human-readable description of what is wrong, why it matters, and what to do.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remediation

      Guidance for resolving this finding. Absent when no specific remediation applies.

      Parameters:
      remediation - Guidance for resolving this finding. Absent when no specific remediation applies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remediation

      Guidance for resolving this finding. Absent when no specific remediation applies.

      This is a convenience method that creates an instance of the FindingRemediation.Builder avoiding the need to create one manually via FindingRemediation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to remediation(FindingRemediation).

      Parameters:
      remediation - a consumer that will call methods on FindingRemediation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resource

      AssessmentFinding.Builder resource(String resource)

      The specific resource affected (e.g., topic name). Absent for cluster-level findings.

      Parameters:
      resource - The specific resource affected (e.g., topic name). Absent for cluster-level findings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • severity

      AssessmentFinding.Builder severity(String severity)

      The severity of this finding.

      Parameters:
      severity - The severity of this finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      The severity of this finding.

      Parameters:
      severity - The severity of this finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: