Interface RequirementStatus.Builder

  • Method Details

    • requirementId

      RequirementStatus.Builder requirementId(String requirementId)

      The unique identifier of the requirement.

      Parameters:
      requirementId - The unique identifier of the requirement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      RequirementStatus.Builder description(String description)

      A description of the requirement.

      Parameters:
      description - A description of the requirement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The effective outcome of the requirement. The outcome is not_applicable when the requirement or its control is declared not applicable, or when the most recent assessment determined that the requirement doesn't apply. It's unable_to_assess when no assessment produced an outcome for the requirement.

      Parameters:
      status - The effective outcome of the requirement. The outcome is not_applicable when the requirement or its control is declared not applicable, or when the most recent assessment determined that the requirement doesn't apply. It's unable_to_assess when no assessment produced an outcome for the requirement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The effective outcome of the requirement. The outcome is not_applicable when the requirement or its control is declared not applicable, or when the most recent assessment determined that the requirement doesn't apply. It's unable_to_assess when no assessment produced an outcome for the requirement.

      Parameters:
      status - The effective outcome of the requirement. The outcome is not_applicable when the requirement or its control is declared not applicable, or when the most recent assessment determined that the requirement doesn't apply. It's unable_to_assess when no assessment produced an outcome for the requirement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusOverride

      RequirementStatus.Builder statusOverride(StatusOverride statusOverride)

      The decision declared directly on this requirement. Absent when no decision is declared on the requirement, including when the requirement is not applicable only because its control is declared not applicable.

      Parameters:
      statusOverride - The decision declared directly on this requirement. Absent when no decision is declared on the requirement, including when the requirement is not applicable only because its control is declared not applicable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusOverride

      default RequirementStatus.Builder statusOverride(Consumer<StatusOverride.Builder> statusOverride)

      The decision declared directly on this requirement. Absent when no decision is declared on the requirement, including when the requirement is not applicable only because its control is declared not applicable.

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

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

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

      RequirementStatus.Builder rationale(String rationale)

      The evaluator's explanation of the outcome from the most recent assessment.

      Parameters:
      rationale - The evaluator's explanation of the outcome from the most recent assessment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taskId

      The identifier of the remediation task for this requirement in the project, when one exists. The task can be in any state, including CANCELLED.

      Parameters:
      taskId - The identifier of the remediation task for this requirement in the project, when one exists. The task can be in any state, including CANCELLED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.