Interface GetCommentsForPullRequestResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeCommitResponse.Builder,CopyableBuilder<GetCommentsForPullRequestResponse.Builder,,GetCommentsForPullRequestResponse> SdkBuilder<GetCommentsForPullRequestResponse.Builder,,GetCommentsForPullRequestResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCommentsForPullRequestResponse
public static interface GetCommentsForPullRequestResponse.Builder
extends CodeCommitResponse.Builder, SdkPojo, CopyableBuilder<GetCommentsForPullRequestResponse.Builder,GetCommentsForPullRequestResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncommentsForPullRequestData(Collection<CommentsForPullRequest> commentsForPullRequestData) An array of comment objects on the pull request.commentsForPullRequestData(Consumer<CommentsForPullRequest.Builder>... commentsForPullRequestData) An array of comment objects on the pull request.commentsForPullRequestData(CommentsForPullRequest... commentsForPullRequestData) An array of comment objects on the pull request.An enumeration token that can be used in a request to return the next batch of the results.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
-
commentsForPullRequestData
GetCommentsForPullRequestResponse.Builder commentsForPullRequestData(Collection<CommentsForPullRequest> commentsForPullRequestData) An array of comment objects on the pull request.
- Parameters:
commentsForPullRequestData- An array of comment objects on the pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commentsForPullRequestData
GetCommentsForPullRequestResponse.Builder commentsForPullRequestData(CommentsForPullRequest... commentsForPullRequestData) An array of comment objects on the pull request.
- Parameters:
commentsForPullRequestData- An array of comment objects on the pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commentsForPullRequestData
GetCommentsForPullRequestResponse.Builder commentsForPullRequestData(Consumer<CommentsForPullRequest.Builder>... commentsForPullRequestData) An array of comment objects on the pull request.
This is a convenience method that creates an instance of theCommentsForPullRequest.Builderavoiding the need to create one manually viaCommentsForPullRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocommentsForPullRequestData(List<CommentsForPullRequest>).- Parameters:
commentsForPullRequestData- a consumer that will call methods onCommentsForPullRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
An enumeration token that can be used in a request to return the next batch of the results.
- Parameters:
nextToken- An enumeration token that can be used in a request to return the next batch of the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-