Interface GetControlStatusResponse.Builder
- All Superinterfaces:
AssuranceResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetControlStatusResponse.Builder,,GetControlStatusResponse> SdkBuilder<GetControlStatusResponse.Builder,,GetControlStatusResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetControlStatusResponse
-
Method Summary
Modifier and TypeMethodDescriptionapplicableRequirementCount(Integer applicableRequirementCount) The number of the control's requirements that apply to the project.controlGroupId(String controlGroupId) The identifier of the control group that contains the control.The identifier of the control.excludedRequirementCount(Integer excludedRequirementCount) The number of the control's requirements whose status isnot_applicable.lastAssessedAt(Instant lastAssessedAt) The time when the most recent assessment of the control was last updated.lastAssessmentId(String lastAssessmentId) The identifier of the most recent assessment of the control in the project.lastAssessmentStatus(String lastAssessmentStatus) The state of the most recent assessment of the control.lastAssessmentStatus(AssessmentStatus lastAssessmentStatus) The state of the most recent assessment of the control.outcomePercentage(Double outcomePercentage) The compliance percentage that the most recent assessment of the control calculated.requirementStatuses(Collection<RequirementStatus> requirementStatuses) The effective status of each of the control's requirements, including requirements that are not applicable.requirementStatuses(Consumer<RequirementStatus.Builder>... requirementStatuses) The effective status of each of the control's requirements, including requirements that are not applicable.requirementStatuses(RequirementStatus... requirementStatuses) The effective status of each of the control's requirements, including requirements that are not applicable.The effective compliance status of the control.status(ComplianceStatus status) The effective compliance status of the control.default GetControlStatusResponse.BuilderstatusOverride(Consumer<StatusOverride.Builder> statusOverride) The decision declared on the control itself.statusOverride(StatusOverride statusOverride) The decision declared on the control itself.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
-
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
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:
-
COMPLIANTorNEEDS_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:-
COMPLIANTorNEEDS_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:
-
COMPLIANTorNEEDS_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:-
COMPLIANTorNEEDS_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
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
statusisNOT_ASSESSEDorNOT_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 whenstatusisNOT_ASSESSEDorNOT_APPLICABLE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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 isnot_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
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 inrequirementStatuses.- 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
This is a convenience method that creates an instance of therequirementStatuses.StatusOverride.Builderavoiding the need to create one manually viaStatusOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatusOverride(StatusOverride).- Parameters:
statusOverride- a consumer that will call methods onStatusOverride.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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 theRequirementStatus.Builderavoiding the need to create one manually viaRequirementStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torequirementStatuses(List<RequirementStatus>).- Parameters:
requirementStatuses- a consumer that will call methods onRequirementStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-