Interface PullRequest.Builder

All Superinterfaces:
Buildable, CopyableBuilder<PullRequest.Builder,PullRequest>, SdkBuilder<PullRequest.Builder,PullRequest>, SdkPojo
Enclosing class:
PullRequest

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

    • pullRequestId

      PullRequest.Builder pullRequestId(String pullRequestId)

      The system-generated ID of the pull request.

      Parameters:
      pullRequestId - The system-generated ID of the pull request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      The user-defined title of the pull request. This title is displayed in the list of pull requests to other repository users.

      Parameters:
      title - The user-defined title of the pull request. This title is displayed in the list of pull requests to other repository users.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      PullRequest.Builder description(String description)

      The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.

      Parameters:
      description - The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastActivityDate

      PullRequest.Builder lastActivityDate(Instant lastActivityDate)

      The day and time of the last user or system activity on the pull request, in timestamp format.

      Parameters:
      lastActivityDate - The day and time of the last user or system activity on the pull request, in timestamp format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationDate

      PullRequest.Builder creationDate(Instant creationDate)

      The date and time the pull request was originally created, in timestamp format.

      Parameters:
      creationDate - The date and time the pull request was originally created, in timestamp format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pullRequestStatus

      PullRequest.Builder pullRequestStatus(String pullRequestStatus)

      The status of the pull request. Pull request status can only change from OPEN to CLOSED.

      Parameters:
      pullRequestStatus - The status of the pull request. Pull request status can only change from OPEN to CLOSED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • pullRequestStatus

      PullRequest.Builder pullRequestStatus(PullRequestStatusEnum pullRequestStatus)

      The status of the pull request. Pull request status can only change from OPEN to CLOSED.

      Parameters:
      pullRequestStatus - The status of the pull request. Pull request status can only change from OPEN to CLOSED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • authorArn

      PullRequest.Builder authorArn(String authorArn)

      The Amazon Resource Name (ARN) of the user who created the pull request.

      Parameters:
      authorArn - The Amazon Resource Name (ARN) of the user who created the pull request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pullRequestTargets

      PullRequest.Builder pullRequestTargets(Collection<PullRequestTarget> pullRequestTargets)

      The targets of the pull request, including the source branch and destination branch for the pull request.

      Parameters:
      pullRequestTargets - The targets of the pull request, including the source branch and destination branch for the pull request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pullRequestTargets

      PullRequest.Builder pullRequestTargets(PullRequestTarget... pullRequestTargets)

      The targets of the pull request, including the source branch and destination branch for the pull request.

      Parameters:
      pullRequestTargets - The targets of the pull request, including the source branch and destination branch for the pull request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pullRequestTargets

      PullRequest.Builder pullRequestTargets(Consumer<PullRequestTarget.Builder>... pullRequestTargets)

      The targets of the pull request, including the source branch and destination branch for the pull request.

      This is a convenience method that creates an instance of the PullRequestTarget.Builder avoiding the need to create one manually via PullRequestTarget.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to pullRequestTargets(List<PullRequestTarget>).

      Parameters:
      pullRequestTargets - a consumer that will call methods on PullRequestTarget.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientRequestToken

      PullRequest.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.
    • revisionId

      PullRequest.Builder revisionId(String revisionId)

      The system-generated revision ID for the pull request.

      Parameters:
      revisionId - The system-generated revision ID for the pull request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalRules

      PullRequest.Builder approvalRules(Collection<ApprovalRule> approvalRules)

      The approval rules applied to the pull request.

      Parameters:
      approvalRules - The approval rules applied to the pull request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalRules

      PullRequest.Builder approvalRules(ApprovalRule... approvalRules)

      The approval rules applied to the pull request.

      Parameters:
      approvalRules - The approval rules applied to the pull request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalRules

      PullRequest.Builder approvalRules(Consumer<ApprovalRule.Builder>... approvalRules)

      The approval rules applied to the pull request.

      This is a convenience method that creates an instance of the ApprovalRule.Builder avoiding the need to create one manually via ApprovalRule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to approvalRules(List<ApprovalRule>).

      Parameters:
      approvalRules - a consumer that will call methods on ApprovalRule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: