Interface PullRequest.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PullRequest.Builder,
,PullRequest> SdkBuilder<PullRequest.Builder,
,PullRequest> SdkPojo
- Enclosing class:
PullRequest
-
Method Summary
Modifier and TypeMethodDescriptionapprovalRules
(Collection<ApprovalRule> approvalRules) The approval rules applied to the pull request.approvalRules
(Consumer<ApprovalRule.Builder>... approvalRules) The approval rules applied to the pull request.approvalRules
(ApprovalRule... approvalRules) The approval rules applied to the pull request.The Amazon Resource Name (ARN) of the user who created the pull request.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.creationDate
(Instant creationDate) The date and time the pull request was originally created, in timestamp format.description
(String description) The user-defined description of the pull request.lastActivityDate
(Instant lastActivityDate) The day and time of the last user or system activity on the pull request, in timestamp format.pullRequestId
(String pullRequestId) The system-generated ID of the pull request.pullRequestStatus
(String pullRequestStatus) The status of the pull request.pullRequestStatus
(PullRequestStatusEnum pullRequestStatus) The status of the pull request.pullRequestTargets
(Collection<PullRequestTarget> pullRequestTargets) The targets of the pull request, including the source branch and destination branch for the pull request.pullRequestTargets
(Consumer<PullRequestTarget.Builder>... pullRequestTargets) The targets of the pull request, including the source branch and destination branch for the pull request.pullRequestTargets
(PullRequestTarget... pullRequestTargets) The targets of the pull request, including the source branch and destination branch for the pull request.revisionId
(String revisionId) The system-generated revision ID for the pull request.The user-defined title of the pull request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
The status of the pull request. Pull request status can only change from
OPEN
toCLOSED
.- Parameters:
pullRequestStatus
- The status of the pull request. Pull request status can only change fromOPEN
toCLOSED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pullRequestStatus
The status of the pull request. Pull request status can only change from
OPEN
toCLOSED
.- Parameters:
pullRequestStatus
- The status of the pull request. Pull request status can only change fromOPEN
toCLOSED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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 thePullRequestTarget.Builder
avoiding the need to create one manually viaPullRequestTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topullRequestTargets(List<PullRequestTarget>)
.- Parameters:
pullRequestTargets
- a consumer that will call methods onPullRequestTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
The approval rules applied to the pull request.
This is a convenience method that creates an instance of theApprovalRule.Builder
avoiding the need to create one manually viaApprovalRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapprovalRules(List<ApprovalRule>)
.- Parameters:
approvalRules
- a consumer that will call methods onApprovalRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-