Interface EvaluatePullRequestApprovalRulesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeCommitResponse.Builder
,CopyableBuilder<EvaluatePullRequestApprovalRulesResponse.Builder,
,EvaluatePullRequestApprovalRulesResponse> SdkBuilder<EvaluatePullRequestApprovalRulesResponse.Builder,
,EvaluatePullRequestApprovalRulesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
EvaluatePullRequestApprovalRulesResponse
public static interface EvaluatePullRequestApprovalRulesResponse.Builder
extends CodeCommitResponse.Builder, SdkPojo, CopyableBuilder<EvaluatePullRequestApprovalRulesResponse.Builder,EvaluatePullRequestApprovalRulesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionevaluation
(Consumer<Evaluation.Builder> evaluation) The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.evaluation
(Evaluation evaluation) The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.Methods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
evaluation
The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.
- Parameters:
evaluation
- The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluation
default EvaluatePullRequestApprovalRulesResponse.Builder evaluation(Consumer<Evaluation.Builder> evaluation) The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.
This is a convenience method that creates an instance of theEvaluation.Builder
avoiding the need to create one manually viaEvaluation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toevaluation(Evaluation)
.- Parameters:
evaluation
- a consumer that will call methods onEvaluation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-