Interface GetCommentsForPullRequestRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeCommitRequest.Builder
,CopyableBuilder<GetCommentsForPullRequestRequest.Builder,
,GetCommentsForPullRequestRequest> SdkBuilder<GetCommentsForPullRequestRequest.Builder,
,GetCommentsForPullRequestRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetCommentsForPullRequestRequest
-
Method Summary
Modifier and TypeMethodDescriptionafterCommitId
(String afterCommitId) The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.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.maxResults
(Integer maxResults) A non-zero, non-negative integer used to limit the number of returned results.An enumeration token that, when provided in a request, returns the next batch of the results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.pullRequestId
(String pullRequestId) The system-generated ID of the pull request.repositoryName
(String repositoryName) The name of the repository that contains the 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, sdkFields
-
Method Details
-
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
The name of the repository that contains the pull request. Requirement is conditional:
repositoryName
must be specified whenbeforeCommitId
andafterCommitId
are included.- Parameters:
repositoryName
- The name of the repository that contains the pull request. Requirement is conditional:repositoryName
must be specified whenbeforeCommitId
andafterCommitId
are included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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. Requirement is conditional:
beforeCommitId
must be specified whenrepositoryName
is included.- 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. Requirement is conditional:beforeCommitId
must be specified whenrepositoryName
is included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
afterCommitId
The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made. Requirement is conditional:
afterCommitId
must be specified whenrepositoryName
is included.- Parameters:
afterCommitId
- The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made. Requirement is conditional:afterCommitId
must be specified whenrepositoryName
is included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
An enumeration token that, when provided in a request, returns the next batch of the results.
- Parameters:
nextToken
- An enumeration token that, when provided in a request, returns the next batch of the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.
- Parameters:
maxResults
- A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetCommentsForPullRequestRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetCommentsForPullRequestRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-