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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitRequest.Builder
buildMethods 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, 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:
repositoryNamemust be specified whenbeforeCommitIdandafterCommitIdare included.- Parameters:
repositoryName- The name of the repository that contains the pull request. Requirement is conditional:repositoryNamemust be specified whenbeforeCommitIdandafterCommitIdare 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:
beforeCommitIdmust be specified whenrepositoryNameis 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:beforeCommitIdmust be specified whenrepositoryNameis 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:
afterCommitIdmust be specified whenrepositoryNameis 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:afterCommitIdmust be specified whenrepositoryNameis 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-