Interface GetCommentsForPullRequestRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CodeCommitRequest.Builder, CopyableBuilder<GetCommentsForPullRequestRequest.Builder,GetCommentsForPullRequestRequest>, SdkBuilder<GetCommentsForPullRequestRequest.Builder,GetCommentsForPullRequestRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
GetCommentsForPullRequestRequest

public static interface GetCommentsForPullRequestRequest.Builder extends CodeCommitRequest.Builder, SdkPojo, CopyableBuilder<GetCommentsForPullRequestRequest.Builder,GetCommentsForPullRequestRequest>
  • Method Details

    • pullRequestId

      GetCommentsForPullRequestRequest.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

      GetCommentsForPullRequestRequest.Builder repositoryName(String repositoryName)

      The name of the repository that contains the pull request. Requirement is conditional: repositoryName must be specified when beforeCommitId and afterCommitId are included.

      Parameters:
      repositoryName - The name of the repository that contains the pull request. Requirement is conditional: repositoryName must be specified when beforeCommitId and afterCommitId are included.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • beforeCommitId

      GetCommentsForPullRequestRequest.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. Requirement is conditional: beforeCommitId must be specified when repositoryName 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 when repositoryName is included.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • afterCommitId

      GetCommentsForPullRequestRequest.Builder afterCommitId(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. Requirement is conditional: afterCommitId must be specified when repositoryName 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 when repositoryName 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 interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.