Interface GetAssessmentResponse.Builder
- All Superinterfaces:
AssuranceResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetAssessmentResponse.Builder,,GetAssessmentResponse> SdkBuilder<GetAssessmentResponse.Builder,,GetAssessmentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetAssessmentResponse
-
Method Summary
Modifier and TypeMethodDescriptionassessmentId(String assessmentId) The identifier of the assessment.The optional user-provided context or guidance for the assessment evaluation.The control identifier.The timestamp when the assessment was created.environment(String environment) The name of the governance environment the assessment belongs to.The name of the compliance framework.frameworkVersion(String frameworkVersion) The version of the compliance framework.default GetAssessmentResponse.BuilderorganizationSummary(Consumer<OrganizationSummary.Builder> organizationSummary) A summary of the assessment across an organization.organizationSummary(OrganizationSummary organizationSummary) A summary of the assessment across an organization.outcomePercentage(Float outcomePercentage) The numeric percentage score of the assessment outcome.The name of the project.The detailed result of the assessment.The canonical state of the assessment.status(AssessmentStatus status) The canonical state of the assessment.The event that started the assessment.trigger(AssessmentTrigger trigger) The event that started the assessment.The timestamp when the assessment was last updated.Methods inherited from interface software.amazon.awssdk.services.assurance.model.AssuranceResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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
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
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
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
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
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
A summary of the assessment across an organization. While the assessment is IN_PROGRESS,
totalAccountsandevaluatedAccountsreport 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,totalAccountsandevaluatedAccountsreport 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,
This is a convenience method that creates an instance of thetotalAccountsandevaluatedAccountsreport progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.OrganizationSummary.Builderavoiding the need to create one manually viaOrganizationSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorganizationSummary(OrganizationSummary).- Parameters:
organizationSummary- a consumer that will call methods onOrganizationSummary.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
triggerfield of theStartAssessmentevent 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– AStartAssessmentcall.
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. Thetriggerfield of theStartAssessmentevent 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– AStartAssessmentcall.
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
triggerfield of theStartAssessmentevent 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– AStartAssessmentcall.
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. Thetriggerfield of theStartAssessmentevent 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– AStartAssessmentcall.
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:
-
-