Interface GetControlStatusResponse.Builder

  • Method Details

    • controlId

      The identifier of the control.

      Parameters:
      controlId - The identifier of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • controlGroupId

      GetControlStatusResponse.Builder controlGroupId(String controlGroupId)

      The identifier of the control group that contains the control. Absent when the control isn't in a control group.

      Parameters:
      controlGroupId - The identifier of the control group that contains the control. Absent when the control isn't in a control group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The effective compliance status of the control. Valid values:

      • COMPLIANT or NEEDS_ATTENTION – Based on the compliance percentage that the most recent assessment calculated.

      • NOT_APPLICABLE – The control, or every one of its requirements, is not applicable to the project.

      • NOT_ASSESSED – The most recent assessment hasn't finished, ended in an error, or found no outcome for any applicable requirement.

      Parameters:
      status - The effective compliance status of the control. Valid values:

      • COMPLIANT or NEEDS_ATTENTION – Based on the compliance percentage that the most recent assessment calculated.

      • NOT_APPLICABLE – The control, or every one of its requirements, is not applicable to the project.

      • NOT_ASSESSED – The most recent assessment hasn't finished, ended in an error, or found no outcome for any applicable requirement.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The effective compliance status of the control. Valid values:

      • COMPLIANT or NEEDS_ATTENTION – Based on the compliance percentage that the most recent assessment calculated.

      • NOT_APPLICABLE – The control, or every one of its requirements, is not applicable to the project.

      • NOT_ASSESSED – The most recent assessment hasn't finished, ended in an error, or found no outcome for any applicable requirement.

      Parameters:
      status - The effective compliance status of the control. Valid values:

      • COMPLIANT or NEEDS_ATTENTION – Based on the compliance percentage that the most recent assessment calculated.

      • NOT_APPLICABLE – The control, or every one of its requirements, is not applicable to the project.

      • NOT_ASSESSED – The most recent assessment hasn't finished, ended in an error, or found no outcome for any applicable requirement.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • outcomePercentage

      GetControlStatusResponse.Builder outcomePercentage(Double outcomePercentage)

      The compliance percentage that the most recent assessment of the control calculated. A decision that you declare after that assessment doesn't change this value. The next assessment calculates a new percentage. Absent when status is NOT_ASSESSED or NOT_APPLICABLE.

      Parameters:
      outcomePercentage - The compliance percentage that the most recent assessment of the control calculated. A decision that you declare after that assessment doesn't change this value. The next assessment calculates a new percentage. Absent when status is NOT_ASSESSED or NOT_APPLICABLE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • applicableRequirementCount

      GetControlStatusResponse.Builder applicableRequirementCount(Integer applicableRequirementCount)

      The number of the control's requirements that apply to the project.

      Parameters:
      applicableRequirementCount - The number of the control's requirements that apply to the project.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedRequirementCount

      GetControlStatusResponse.Builder excludedRequirementCount(Integer excludedRequirementCount)

      The number of the control's requirements whose status is not_applicable. The count includes requirements that you declare not applicable, directly or through the control. It also includes requirements that the assessment determines don't apply.

      Parameters:
      excludedRequirementCount - The number of the control's requirements whose status is not_applicable. The count includes requirements that you declare not applicable, directly or through the control. It also includes requirements that the assessment determines don't apply.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusOverride

      GetControlStatusResponse.Builder statusOverride(StatusOverride statusOverride)

      The decision declared on the control itself. Absent when no decision is declared on the control. Decisions on individual requirements are returned in requirementStatuses.

      Parameters:
      statusOverride - The decision declared on the control itself. Absent when no decision is declared on the control. Decisions on individual requirements are returned in requirementStatuses.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusOverride

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

      The decision declared on the control itself. Absent when no decision is declared on the control. Decisions on individual requirements are returned in requirementStatuses.

      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:
    • lastAssessmentId

      GetControlStatusResponse.Builder lastAssessmentId(String lastAssessmentId)

      The identifier of the most recent assessment of the control in the project. Absent if no assessment has run for the control.

      Parameters:
      lastAssessmentId - The identifier of the most recent assessment of the control in the project. Absent if no assessment has run for the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastAssessedAt

      GetControlStatusResponse.Builder lastAssessedAt(Instant lastAssessedAt)

      The time when the most recent assessment of the control was last updated.

      Parameters:
      lastAssessedAt - The time when the most recent assessment of the control was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastAssessmentStatus

      GetControlStatusResponse.Builder lastAssessmentStatus(String lastAssessmentStatus)

      The state of the most recent assessment of the control.

      Parameters:
      lastAssessmentStatus - The state of the most recent assessment of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastAssessmentStatus

      GetControlStatusResponse.Builder lastAssessmentStatus(AssessmentStatus lastAssessmentStatus)

      The state of the most recent assessment of the control.

      Parameters:
      lastAssessmentStatus - The state of the most recent assessment of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • requirementStatuses

      GetControlStatusResponse.Builder requirementStatuses(Collection<RequirementStatus> requirementStatuses)

      The effective status of each of the control's requirements, including requirements that are not applicable.

      Parameters:
      requirementStatuses - The effective status of each of the control's requirements, including requirements that are not applicable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requirementStatuses

      GetControlStatusResponse.Builder requirementStatuses(RequirementStatus... requirementStatuses)

      The effective status of each of the control's requirements, including requirements that are not applicable.

      Parameters:
      requirementStatuses - The effective status of each of the control's requirements, including requirements that are not applicable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requirementStatuses

      GetControlStatusResponse.Builder requirementStatuses(Consumer<RequirementStatus.Builder>... requirementStatuses)

      The effective status of each of the control's requirements, including requirements that are not applicable.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to requirementStatuses(List<RequirementStatus>).

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