Interface GetAssessmentResponse.Builder

  • Method Details

    • assessmentId

      GetAssessmentResponse.Builder assessmentId(String assessmentId)

      The identifier of the assessment.

      Parameters:
      assessmentId - The identifier of the assessment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environment

      GetAssessmentResponse.Builder environment(String environment)

      The name of the governance environment the assessment belongs to.

      Parameters:
      environment - The name of the governance environment the assessment belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • framework

      GetAssessmentResponse.Builder framework(String framework)

      The name of the compliance framework.

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

      GetAssessmentResponse.Builder frameworkVersion(String frameworkVersion)

      The version of the compliance framework.

      Parameters:
      frameworkVersion - The version of the compliance framework.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • controlId

      GetAssessmentResponse.Builder controlId(String controlId)

      The control identifier. Optional. If omitted, the operation applies to the full framework.

      Parameters:
      controlId - The control identifier. Optional. If omitted, the operation applies to the full framework.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • project

      The name of the project.

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

      The canonical state of the assessment.

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

      The canonical state of the assessment.

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

      The detailed result of the assessment.

      Parameters:
      result - The detailed result of the assessment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outcomePercentage

      GetAssessmentResponse.Builder outcomePercentage(Float outcomePercentage)

      The numeric percentage score of the assessment outcome.

      Parameters:
      outcomePercentage - The numeric percentage score of the assessment outcome.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • context

      The optional user-provided context or guidance for the assessment evaluation.

      Parameters:
      context - The optional user-provided context or guidance for the assessment evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      GetAssessmentResponse.Builder createdAt(Instant createdAt)

      The timestamp when the assessment was created.

      Parameters:
      createdAt - The timestamp when the assessment was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      GetAssessmentResponse.Builder updatedAt(Instant updatedAt)

      The timestamp when the assessment was last updated.

      Parameters:
      updatedAt - The timestamp when the assessment was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organizationSummary

      GetAssessmentResponse.Builder organizationSummary(OrganizationSummary organizationSummary)

      A summary of the assessment across an organization. While the assessment is IN_PROGRESS, totalAccounts and evaluatedAccounts report progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.

      Parameters:
      organizationSummary - A summary of the assessment across an organization. While the assessment is IN_PROGRESS, totalAccounts and evaluatedAccounts report progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organizationSummary

      default GetAssessmentResponse.Builder organizationSummary(Consumer<OrganizationSummary.Builder> organizationSummary)

      A summary of the assessment across an organization. While the assessment is IN_PROGRESS, totalAccounts and evaluatedAccounts report progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.

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

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

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

      The event that started the assessment. The trigger field of the StartAssessment event in your AWS CloudTrail logs has the same value.

      • SCHEDULE – The framework's assessment schedule.

      • DETECTED_CHANGE – A relevant change to your resources.

      • USER_ACTION – A StartAssessment call.

      This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.

      Parameters:
      trigger - The event that started the assessment. The trigger field of the StartAssessment event in your AWS CloudTrail logs has the same value.

      • SCHEDULE – The framework's assessment schedule.

      • DETECTED_CHANGE – A relevant change to your resources.

      • USER_ACTION – A StartAssessment call.

      This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.

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

      The event that started the assessment. The trigger field of the StartAssessment event in your AWS CloudTrail logs has the same value.

      • SCHEDULE – The framework's assessment schedule.

      • DETECTED_CHANGE – A relevant change to your resources.

      • USER_ACTION – A StartAssessment call.

      This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.

      Parameters:
      trigger - The event that started the assessment. The trigger field of the StartAssessment event in your AWS CloudTrail logs has the same value.

      • SCHEDULE – The framework's assessment schedule.

      • DETECTED_CHANGE – A relevant change to your resources.

      • USER_ACTION – A StartAssessment call.

      This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.

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