Interface GetPullRequestApprovalStatesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeCommitResponse.Builder,CopyableBuilder<GetPullRequestApprovalStatesResponse.Builder,,GetPullRequestApprovalStatesResponse> SdkBuilder<GetPullRequestApprovalStatesResponse.Builder,,GetPullRequestApprovalStatesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPullRequestApprovalStatesResponse
public static interface GetPullRequestApprovalStatesResponse.Builder
extends CodeCommitResponse.Builder, SdkPojo, CopyableBuilder<GetPullRequestApprovalStatesResponse.Builder,GetPullRequestApprovalStatesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionapprovals(Collection<Approval> approvals) Information about users who have approved the pull request.approvals(Consumer<Approval.Builder>... approvals) Information about users who have approved the pull request.Information about users who have approved the pull request.Methods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitResponse.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
approvals
Information about users who have approved the pull request.
- Parameters:
approvals- Information about users who have approved the pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvals
Information about users who have approved the pull request.
- Parameters:
approvals- Information about users who have approved the pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvals
Information about users who have approved the pull request.
This is a convenience method that creates an instance of theApproval.Builderavoiding the need to create one manually viaApproval.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toapprovals(List<Approval>).- Parameters:
approvals- a consumer that will call methods onApproval.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-