public static interface CreatePullRequestRequest.Builder extends CodeCommitRequest.Builder, CopyableBuilder<CreatePullRequestRequest.Builder,CreatePullRequestRequest>
Modifier and Type | Method and Description |
---|---|
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.
|
CreatePullRequestRequest.Builder |
description(String description)
A description of the pull request.
|
CreatePullRequestRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreatePullRequestRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
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).
|
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).
|
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).
|
CreatePullRequestRequest.Builder |
title(String title)
The title of the pull request.
|
build
overrideConfiguration
copy
applyMutation, build
CreatePullRequestRequest.Builder title(String title)
The title of the pull request. This title will be used to identify the pull request to other users in the repository.
title
- The title of the pull request. This title will be used to identify the pull request to other users in
the repository.CreatePullRequestRequest.Builder description(String description)
A description of the pull request.
description
- A description of the pull request.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).
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).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).
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).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 that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #targets(List)
.targets
- a consumer that will call methods on List.Builder
#targets(List)
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 will return information about the initial request that used that token.
The AWS SDKs prepopulate client request tokens. If using an AWS SDK, you do not have to generate an idempotency token, as this will be done for you.
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 will return information about the initial request that used that
token. The AWS SDKs prepopulate client request tokens. If using an AWS SDK, you do not have to generate an idempotency token, as this will be done for you.
CreatePullRequestRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreatePullRequestRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.