Interface ControlAssessment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ControlAssessment.Builder,,ControlAssessment> SdkBuilder<ControlAssessment.Builder,,ControlAssessment> SdkPojo
- Enclosing class:
ControlAssessment
@Mutable
@NotThreadSafe
public static interface ControlAssessment.Builder
extends SdkPojo, CopyableBuilder<ControlAssessment.Builder,ControlAssessment>
-
Method Summary
Modifier and TypeMethodDescriptioncontrolAssessmentResult(String controlAssessmentResult) The result of the control evaluation.controlAssessmentResult(ControlAssessmentResult controlAssessmentResult) The result of the control evaluation.The unique ID of the control that was evaluated.errors(Collection<ControlError> errors) An array ofControlErrorobjects associated with the control evaluation.errors(Consumer<ControlError.Builder>... errors) An array ofControlErrorobjects associated with the control evaluation.errors(ControlError... errors) An array ofControlErrorobjects associated with the control evaluation.Methods 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, sdkFields
-
Method Details
-
controlId
The unique ID of the control that was evaluated.
- Parameters:
controlId- The unique ID of the control that was evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
controlAssessmentResult
The result of the control evaluation.
- Parameters:
controlAssessmentResult- The result of the control evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
controlAssessmentResult
The result of the control evaluation.
- Parameters:
controlAssessmentResult- The result of the control evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
An array of
ControlErrorobjects associated with the control evaluation.- Parameters:
errors- An array ofControlErrorobjects associated with the control evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
An array of
ControlErrorobjects associated with the control evaluation.- Parameters:
errors- An array ofControlErrorobjects associated with the control evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
An array of
This is a convenience method that creates an instance of theControlErrorobjects associated with the control evaluation.ControlError.Builderavoiding the need to create one manually viaControlError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrors(List<ControlError>).- Parameters:
errors- a consumer that will call methods onControlError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-