Interface PostCommentForPullRequestRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeCommitRequest.Builder,CopyableBuilder<PostCommentForPullRequestRequest.Builder,PostCommentForPullRequestRequest>,SdkBuilder<PostCommentForPullRequestRequest.Builder,PostCommentForPullRequestRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PostCommentForPullRequestRequest
public static interface PostCommentForPullRequestRequest.Builder extends CodeCommitRequest.Builder, SdkPojo, CopyableBuilder<PostCommentForPullRequestRequest.Builder,PostCommentForPullRequestRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PostCommentForPullRequestRequest.BuilderafterCommitId(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.BuilderbeforeCommitId(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.BuilderclientRequestToken(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.Buildercontent(String content)The content of your comment on the change.default PostCommentForPullRequestRequest.Builderlocation(Consumer<Location.Builder> location)The location of the change where you want to post your comment.PostCommentForPullRequestRequest.Builderlocation(Location location)The location of the change where you want to post your comment.PostCommentForPullRequestRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PostCommentForPullRequestRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PostCommentForPullRequestRequest.BuilderpullRequestId(String pullRequestId)The system-generated ID of the pull request.PostCommentForPullRequestRequest.BuilderrepositoryName(String repositoryName)The name of the repository where you want to post a comment on a pull request.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitRequest.Builder
build
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
pullRequestId
PostCommentForPullRequestRequest.Builder pullRequestId(String pullRequestId)
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- Parameters:
pullRequestId- The system-generated ID of the pull request. To get this ID, use ListPullRequests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryName
PostCommentForPullRequestRequest.Builder repositoryName(String repositoryName)
The name of the repository where you want to post a comment on a pull request.
- Parameters:
repositoryName- The name of the repository where you want to post a comment on a pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beforeCommitId
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
afterCommitId
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
PostCommentForPullRequestRequest.Builder location(Location location)
The location of the change where you want to post your comment. If no location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
- Parameters:
location- The location of the change where you want to post your comment. If no location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
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 is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
This is a convenience method that creates an instance of theLocation.Builderavoiding the need to create one manually viaLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocation(Location).- Parameters:
location- a consumer that will call methods onLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
location(Location)
-
content
PostCommentForPullRequestRequest.Builder content(String content)
The content of your comment on the change.
- Parameters:
content- The content of your comment on the change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
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 returns information about the initial request that used that token.
- Parameters:
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 returns information about the initial request that used that token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PostCommentForPullRequestRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PostCommentForPullRequestRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-