Interface PullRequest.Builder

    • Method Detail

      • 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

        PullRequest.Builder title​(String 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:
        PullRequestStatusEnum, PullRequestStatusEnum
      • 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:
        PullRequestStatusEnum, PullRequestStatusEnum
      • 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.
      • 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.