Interface PullRequest.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PullRequest.Builder,PullRequest>,SdkBuilder<PullRequest.Builder,PullRequest>,SdkPojo
- Enclosing class:
- PullRequest
public static interface PullRequest.Builder extends SdkPojo, CopyableBuilder<PullRequest.Builder,PullRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PullRequest.BuilderapprovalRules(Collection<ApprovalRule> approvalRules)The approval rules applied to the pull request.PullRequest.BuilderapprovalRules(Consumer<ApprovalRule.Builder>... approvalRules)The approval rules applied to the pull request.PullRequest.BuilderapprovalRules(ApprovalRule... approvalRules)The approval rules applied to the pull request.PullRequest.BuilderauthorArn(String authorArn)The Amazon Resource Name (ARN) of the user who created the pull request.PullRequest.BuilderclientRequestToken(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.BuildercreationDate(Instant creationDate)The date and time the pull request was originally created, in timestamp format.PullRequest.Builderdescription(String description)The user-defined description of the pull request.PullRequest.BuilderlastActivityDate(Instant lastActivityDate)The day and time of the last user or system activity on the pull request, in timestamp format.PullRequest.BuilderpullRequestId(String pullRequestId)The system-generated ID of the pull request.PullRequest.BuilderpullRequestStatus(String pullRequestStatus)The status of the pull request.PullRequest.BuilderpullRequestStatus(PullRequestStatusEnum pullRequestStatus)The status of the pull request.PullRequest.BuilderpullRequestTargets(Collection<PullRequestTarget> pullRequestTargets)The targets of the pull request, including the source branch and destination branch for the pull request.PullRequest.BuilderpullRequestTargets(Consumer<PullRequestTarget.Builder>... pullRequestTargets)The targets of the pull request, including the source branch and destination branch for the pull request.PullRequest.BuilderpullRequestTargets(PullRequestTarget... pullRequestTargets)The targets of the pull request, including the source branch and destination branch for the pull request.PullRequest.BuilderrevisionId(String revisionId)The system-generated revision ID for the pull request.PullRequest.Buildertitle(String title)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 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
OPENtoCLOSED.- Parameters:
pullRequestStatus- The status of the pull request. Pull request status can only change fromOPENtoCLOSED.- 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
OPENtoCLOSED.- Parameters:
pullRequestStatus- The status of the pull request. Pull request status can only change fromOPENtoCLOSED.- 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.
-
pullRequestTargets
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 method that creates an instance of thePullRequestTarget.Builderavoiding the need to create one manually viaPullRequestTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#pullRequestTargets(List.) - 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:
#pullRequestTargets(java.util.Collection)
-
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.
-
approvalRules
PullRequest.Builder approvalRules(Consumer<ApprovalRule.Builder>... approvalRules)
The approval rules applied to the pull request.
This is a convenience method that creates an instance of theApprovalRule.Builderavoiding the need to create one manually viaApprovalRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#approvalRules(List.) - 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:
#approvalRules(java.util.Collection)
-
-