Interface OrganizationSummary.Builder

  • Method Details

    • totalAccounts

      OrganizationSummary.Builder totalAccounts(Integer totalAccounts)

      The total number of member accounts included in the assessment.

      Parameters:
      totalAccounts - The total number of member accounts included in the assessment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluatedAccounts

      OrganizationSummary.Builder evaluatedAccounts(Integer evaluatedAccounts)

      The number of evaluated member accounts, whether they completed or failed. Together with totalAccounts, this value shows assessment progress. Equals totalAccounts when the assessment finalizes.

      Parameters:
      evaluatedAccounts - The number of evaluated member accounts, whether they completed or failed. Together with totalAccounts, this value shows assessment progress. Equals totalAccounts when the assessment finalizes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • passedCount

      OrganizationSummary.Builder passedCount(Integer passedCount)

      The accounts whose score was exactly 100.

      Parameters:
      passedCount - The accounts whose score was exactly 100.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failedCount

      OrganizationSummary.Builder failedCount(Integer failedCount)

      The accounts whose score was exactly 0.

      Parameters:
      failedCount - The accounts whose score was exactly 0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partiallyPassedCount

      OrganizationSummary.Builder partiallyPassedCount(Integer partiallyPassedCount)

      The accounts scoring strictly between 0 and 100.

      Parameters:
      partiallyPassedCount - The accounts scoring strictly between 0 and 100.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notApplicableCount

      OrganizationSummary.Builder notApplicableCount(Integer notApplicableCount)

      The accounts excluded from the score because the control did not apply (no in-scope resources).

      Parameters:
      notApplicableCount - The accounts excluded from the score because the control did not apply (no in-scope resources).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failedRunCount

      OrganizationSummary.Builder failedRunCount(Integer failedRunCount)

      The accounts for which the assessment run failed before producing an outcome. These accounts are excluded from the score.

      Parameters:
      failedRunCount - The accounts for which the assessment run failed before producing an outcome. These accounts are excluded from the score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lowestScoringAccounts

      OrganizationSummary.Builder lowestScoringAccounts(Collection<AccountOutcome> lowestScoringAccounts)

      The lowest-scoring accounts, ascending by score, at most 5.

      Parameters:
      lowestScoringAccounts - The lowest-scoring accounts, ascending by score, at most 5.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lowestScoringAccounts

      OrganizationSummary.Builder lowestScoringAccounts(AccountOutcome... lowestScoringAccounts)

      The lowest-scoring accounts, ascending by score, at most 5.

      Parameters:
      lowestScoringAccounts - The lowest-scoring accounts, ascending by score, at most 5.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lowestScoringAccounts

      OrganizationSummary.Builder lowestScoringAccounts(Consumer<AccountOutcome.Builder>... lowestScoringAccounts)

      The lowest-scoring accounts, ascending by score, at most 5.

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

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

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