public static interface PullRequest.Builder extends SdkPojo, CopyableBuilder<PullRequest.Builder,PullRequest>
Modifier and Type | Method and Description |
---|---|
PullRequest.Builder |
authorArn(String authorArn)
The Amazon Resource Name (ARN) of the user who created the pull request.
|
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.
|
PullRequest.Builder |
creationDate(Instant creationDate)
The date and time the pull request was originally created, in timestamp format.
|
PullRequest.Builder |
description(String description)
The user-defined description of the pull request.
|
PullRequest.Builder |
lastActivityDate(Instant lastActivityDate)
The day and time of the last user or system activity on the pull request, in timestamp format.
|
PullRequest.Builder |
pullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
PullRequest.Builder |
pullRequestStatus(PullRequestStatusEnum pullRequestStatus)
The status of the pull request.
|
PullRequest.Builder |
pullRequestStatus(String pullRequestStatus)
The status of the pull request.
|
PullRequest.Builder |
pullRequestTargets(Collection<PullRequestTarget> pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
|
PullRequest.Builder |
pullRequestTargets(Consumer<PullRequestTarget.Builder>... pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
|
PullRequest.Builder |
pullRequestTargets(PullRequestTarget... pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
|
PullRequest.Builder |
title(String title)
The user-defined title of the pull request.
|
copy
applyMutation, build
PullRequest.Builder pullRequestId(String pullRequestId)
The system-generated ID of the pull request.
pullRequestId
- The system-generated ID of the pull request.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 users of the repository.
title
- The user-defined title of the pull request. This title is displayed in the list of pull requests to
other users of the repository.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.
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.PullRequest.Builder lastActivityDate(Instant lastActivityDate)
The day and time of the last user or system activity on the pull request, in timestamp format.
lastActivityDate
- The day and time of the last user or system activity on the pull request, in timestamp format.PullRequest.Builder creationDate(Instant creationDate)
The date and time the pull request was originally created, in timestamp format.
creationDate
- The date and time the pull request was originally created, in timestamp format.PullRequest.Builder pullRequestStatus(String pullRequestStatus)
The status of the pull request. Pull request status can only change from OPEN
to
CLOSED
.
pullRequestStatus
- The status of the pull request. Pull request status can only change from OPEN
to
CLOSED
.PullRequestStatusEnum
,
PullRequestStatusEnum
PullRequest.Builder pullRequestStatus(PullRequestStatusEnum pullRequestStatus)
The status of the pull request. Pull request status can only change from OPEN
to
CLOSED
.
pullRequestStatus
- The status of the pull request. Pull request status can only change from OPEN
to
CLOSED
.PullRequestStatusEnum
,
PullRequestStatusEnum
PullRequest.Builder authorArn(String authorArn)
The Amazon Resource Name (ARN) of the user who created the pull request.
authorArn
- The Amazon Resource Name (ARN) of the user who created the pull request.PullRequest.Builder pullRequestTargets(Collection<PullRequestTarget> pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
pullRequestTargets
- The targets of the pull request, including the source branch and destination branch for the pull
request.PullRequest.Builder pullRequestTargets(PullRequestTarget... pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
pullRequestTargets
- The targets of the pull request, including the source branch and destination branch for the pull
request.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 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 #pullRequestTargets(List)
.pullRequestTargets
- a consumer that will call methods on List.Builder
#pullRequestTargets(List)
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 will return information about the initial request that used that token.
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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.