Interface AuditFinding.Builder

    • Method Detail

      • findingId

        AuditFinding.Builder findingId​(String findingId)

        A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.

        Parameters:
        findingId - A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • taskId

        AuditFinding.Builder taskId​(String taskId)

        The ID of the audit that generated this result (finding).

        Parameters:
        taskId - The ID of the audit that generated this result (finding).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • checkName

        AuditFinding.Builder checkName​(String checkName)

        The audit check that generated this result.

        Parameters:
        checkName - The audit check that generated this result.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • taskStartTime

        AuditFinding.Builder taskStartTime​(Instant taskStartTime)

        The time the audit started.

        Parameters:
        taskStartTime - The time the audit started.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • findingTime

        AuditFinding.Builder findingTime​(Instant findingTime)

        The time the result (finding) was discovered.

        Parameters:
        findingTime - The time the result (finding) was discovered.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nonCompliantResource

        AuditFinding.Builder nonCompliantResource​(NonCompliantResource nonCompliantResource)

        The resource that was found to be noncompliant with the audit check.

        Parameters:
        nonCompliantResource - The resource that was found to be noncompliant with the audit check.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedResources

        AuditFinding.Builder relatedResources​(Collection<RelatedResource> relatedResources)

        The list of related resources.

        Parameters:
        relatedResources - The list of related resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedResources

        AuditFinding.Builder relatedResources​(RelatedResource... relatedResources)

        The list of related resources.

        Parameters:
        relatedResources - The list of related resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • reasonForNonCompliance

        AuditFinding.Builder reasonForNonCompliance​(String reasonForNonCompliance)

        The reason the resource was noncompliant.

        Parameters:
        reasonForNonCompliance - The reason the resource was noncompliant.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • reasonForNonComplianceCode

        AuditFinding.Builder reasonForNonComplianceCode​(String reasonForNonComplianceCode)

        A code that indicates the reason that the resource was noncompliant.

        Parameters:
        reasonForNonComplianceCode - A code that indicates the reason that the resource was noncompliant.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isSuppressed

        AuditFinding.Builder isSuppressed​(Boolean isSuppressed)

        Indicates whether the audit finding was suppressed or not during reporting.

        Parameters:
        isSuppressed - Indicates whether the audit finding was suppressed or not during reporting.
        Returns:
        Returns a reference to this object so that method calls can be chained together.