Interface AssessmentControl.Builder

  • Method Details

    • id

      The identifier for the control.

      Parameters:
      id - The identifier for the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the control.

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

      @Deprecated AssessmentControl.Builder description(String description)
      Deprecated.
      This data type will be deprecated on May 19, 2025. To view the assessment control description, use GetControl.

      The description of the control.

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

      The status of the control.

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

      The status of the control.

      Parameters:
      status - The status of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • response

      AssessmentControl.Builder response(String response)

      The response of the control.

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

      The response of the control.

      Parameters:
      response - The response of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • comments

      The list of comments that's attached to the control.

      Parameters:
      comments - The list of comments that's attached to the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • comments

      The list of comments that's attached to the control.

      Parameters:
      comments - The list of comments that's attached to the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • comments

      The list of comments that's attached to the control.

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

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

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

      AssessmentControl.Builder evidenceSources(Collection<String> evidenceSources)

      The list of data sources for the evidence.

      Parameters:
      evidenceSources - The list of data sources for the evidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evidenceSources

      AssessmentControl.Builder evidenceSources(String... evidenceSources)

      The list of data sources for the evidence.

      Parameters:
      evidenceSources - The list of data sources for the evidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evidenceCount

      AssessmentControl.Builder evidenceCount(Integer evidenceCount)

      The amount of evidence that's collected for the control.

      Parameters:
      evidenceCount - The amount of evidence that's collected for the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assessmentReportEvidenceCount

      AssessmentControl.Builder assessmentReportEvidenceCount(Integer assessmentReportEvidenceCount)

      The amount of evidence in the assessment report.

      Parameters:
      assessmentReportEvidenceCount - The amount of evidence in the assessment report.
      Returns:
      Returns a reference to this object so that method calls can be chained together.