public static interface PostCommentForPullRequestRequest.Builder extends CodeCommitRequest.Builder, CopyableBuilder<PostCommentForPullRequestRequest.Builder,PostCommentForPullRequestRequest>
Modifier and Type | Method and Description |
---|---|
PostCommentForPullRequestRequest.Builder |
afterCommitId(String afterCommitId)
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull
request when you post the comment.
|
PostCommentForPullRequestRequest.Builder |
beforeCommitId(String beforeCommitId)
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the
pull request was created.
|
PostCommentForPullRequestRequest.Builder |
clientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
PostCommentForPullRequestRequest.Builder |
content(String content)
The content of your comment on the change.
|
default PostCommentForPullRequestRequest.Builder |
location(Consumer<Location.Builder> location)
The location of the change where you want to post your comment.
|
PostCommentForPullRequestRequest.Builder |
location(Location location)
The location of the change where you want to post your comment.
|
PostCommentForPullRequestRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PostCommentForPullRequestRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
PostCommentForPullRequestRequest.Builder |
pullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
PostCommentForPullRequestRequest.Builder |
repositoryName(String repositoryName)
The name of the repository where you want to post a comment on a pull request.
|
build
overrideConfiguration
copy
applyMutation, build
PostCommentForPullRequestRequest.Builder pullRequestId(String pullRequestId)
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
pullRequestId
- The system-generated ID of the pull request. To get this ID, use ListPullRequests.PostCommentForPullRequestRequest.Builder repositoryName(String repositoryName)
The name of the repository where you want to post a comment on a pull request.
repositoryName
- The name of the repository where you want to post a comment on a pull request.PostCommentForPullRequestRequest.Builder beforeCommitId(String beforeCommitId)
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
beforeCommitId
- The full commit ID of the commit in the destination branch that was the tip of the branch at the time
the pull request was created.PostCommentForPullRequestRequest.Builder afterCommitId(String afterCommitId)
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.
afterCommitId
- The full commit ID of the commit in the source branch that is the current tip of the branch for the
pull request when you post the comment.PostCommentForPullRequestRequest.Builder location(Location location)
The location of the change where you want to post your comment. If no location is provided, the comment will be posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
location
- The location of the change where you want to post your comment. If no location is provided, the
comment will be posted as a general comment on the pull request difference between the before commit
ID and the after commit ID.default PostCommentForPullRequestRequest.Builder location(Consumer<Location.Builder> location)
The location of the change where you want to post your comment. If no location is provided, the comment will be posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
This is a convenience that creates an instance of theLocation.Builder
avoiding the need to create
one manually via Location.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to location(Location)
.location
- a consumer that will call methods on Location.Builder
location(Location)
PostCommentForPullRequestRequest.Builder content(String content)
The content of your comment on the change.
content
- The content of your comment on the change.PostCommentForPullRequestRequest.Builder clientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
clientRequestToken
- A unique, client-generated idempotency token that when provided in a request, ensures the request
cannot be repeated with a changed parameter. If a request is received with the same parameters and a
token is included, the request will return information about the initial request that used that token.PostCommentForPullRequestRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.PostCommentForPullRequestRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.