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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetPullRequestApprovalStatesResponse.Builderapprovals(Collection<Approval> approvals)Information about users who have approved the pull request.GetPullRequestApprovalStatesResponse.Builderapprovals(Consumer<Approval.Builder>... approvals)Information about users who have approved the pull request.GetPullRequestApprovalStatesResponse.Builderapprovals(Approval... approvals)Information about users who have approved the pull request.-
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 Detail
-
approvals
GetPullRequestApprovalStatesResponse.Builder approvals(Collection<Approval> 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
GetPullRequestApprovalStatesResponse.Builder approvals(Approval... 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
GetPullRequestApprovalStatesResponse.Builder approvals(Consumer<Approval.Builder>... 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 to#approvals(List.) - 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:
#approvals(java.util.Collection)
-
-