Interface CreatePullRequestRequest.Builder

    • Method Detail

      • title

        CreatePullRequestRequest.Builder title​(String title)

        The title of the pull request. This title is used to identify the pull request to other users in the repository.

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

        CreatePullRequestRequest.Builder description​(String description)

        A description of the pull request.

        Parameters:
        description - A description of the pull request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targets

        CreatePullRequestRequest.Builder targets​(Collection<Target> targets)

        The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).

        Parameters:
        targets - The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targets

        CreatePullRequestRequest.Builder targets​(Target... targets)

        The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).

        Parameters:
        targets - The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targets

        CreatePullRequestRequest.Builder targets​(Consumer<Target.Builder>... targets)

        The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #targets(List).

        Parameters:
        targets - a consumer that will call methods on Target.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #targets(java.util.Collection)
      • clientRequestToken

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

        The Amazon Web ServicesSDKs prepopulate client request tokens. If you are using an Amazon Web ServicesSDK, an idempotency token is created for you.

        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.

        The Amazon Web ServicesSDKs prepopulate client request tokens. If you are using an Amazon Web ServicesSDK, an idempotency token is created for you.

        Returns:
        Returns a reference to this object so that method calls can be chained together.