public static class PullRequest.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PullRequest |
build() |
PullRequest.Builder |
compartmentId(String compartmentId)
Compartment Identifier
|
PullRequest.Builder |
copy(PullRequest model) |
PullRequest.Builder |
createdBy(PrincipalDetails createdBy) |
PullRequest.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
PullRequest.Builder |
description(String description)
Details of the pull request.
|
PullRequest.Builder |
destinationBranch(String destinationBranch)
The destination branch against which the changes are to be reviewed.
|
PullRequest.Builder |
displayName(String displayName)
PullRequest title, can be renamed
|
PullRequest.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
PullRequest.Builder |
id(String id)
Unique identifier that is immutable on creation
|
PullRequest.Builder |
lifecycleDetails(PullRequest.LifecycleDetails lifecycleDetails)
The status of the Pull Request.
|
PullRequest.Builder |
lifecycleState(PullRequest.LifecycleState lifecycleState)
The current state of the PullRequest.
|
PullRequest.Builder |
mergeBaseCommitIdAtTermination(String mergeBaseCommitIdAtTermination)
The merge base commit ID when the Pull Request status was last changed to merged or
closed
|
PullRequest.Builder |
mergeChecks(MergeCheckCollection mergeChecks) |
PullRequest.Builder |
mergedBy(PrincipalDetails mergedBy) |
PullRequest.Builder |
repositoryId(String repositoryId)
DevOps Repository Identifier tells which repository this pull request belongs to
|
PullRequest.Builder |
reviewers(List<Reviewer> reviewers)
List of Reviewers.
|
PullRequest.Builder |
sourceBranch(String sourceBranch)
The source branch which contains the changes to be reviewed.
|
PullRequest.Builder |
sourceCommitIdAtTermination(String sourceCommitIdAtTermination)
The source branch commit ID when the Pull Request status was last changed to merged or
closed
|
PullRequest.Builder |
sourceRepositoryId(String sourceRepositoryId)
The OCID of the forked repository that will act as the source of the changes to be
included in the pull request against the parent repository.
|
PullRequest.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
PullRequest.Builder |
timeCreated(Date timeCreated)
The time the PullRequest was created.
|
PullRequest.Builder |
timeUpdated(Date timeUpdated)
The time the PullRequest was updated.
|
PullRequest.Builder |
totalComments(Integer totalComments)
The total number of comments on the pull request.
|
PullRequest.Builder |
totalReviewers(Integer totalReviewers)
The total number of reviewers on the pull request.
|
public PullRequest.Builder id(String id)
Unique identifier that is immutable on creation
id
- the value to setpublic PullRequest.Builder displayName(String displayName)
PullRequest title, can be renamed
displayName
- the value to setpublic PullRequest.Builder description(String description)
Details of the pull request. Avoid entering confidential information.
description
- the value to setpublic PullRequest.Builder compartmentId(String compartmentId)
Compartment Identifier
compartmentId
- the value to setpublic PullRequest.Builder repositoryId(String repositoryId)
DevOps Repository Identifier tells which repository this pull request belongs to
repositoryId
- the value to setpublic PullRequest.Builder sourceBranch(String sourceBranch)
The source branch which contains the changes to be reviewed. Example: “feature/JIRA-123”
sourceBranch
- the value to setpublic PullRequest.Builder destinationBranch(String destinationBranch)
The destination branch against which the changes are to be reviewed. Example: “main”.
destinationBranch
- the value to setpublic PullRequest.Builder sourceCommitIdAtTermination(String sourceCommitIdAtTermination)
The source branch commit ID when the Pull Request status was last changed to merged or closed
sourceCommitIdAtTermination
- the value to setpublic PullRequest.Builder mergeBaseCommitIdAtTermination(String mergeBaseCommitIdAtTermination)
The merge base commit ID when the Pull Request status was last changed to merged or closed
mergeBaseCommitIdAtTermination
- the value to setpublic PullRequest.Builder timeCreated(Date timeCreated)
The time the PullRequest was created. An RFC3339 formatted datetime string
timeCreated
- the value to setpublic PullRequest.Builder timeUpdated(Date timeUpdated)
The time the PullRequest was updated. An RFC3339 formatted datetime string
timeUpdated
- the value to setpublic PullRequest.Builder lifecycleState(PullRequest.LifecycleState lifecycleState)
The current state of the PullRequest.
lifecycleState
- the value to setpublic PullRequest.Builder lifecycleDetails(PullRequest.LifecycleDetails lifecycleDetails)
The status of the Pull Request.
lifecycleDetails
- the value to setpublic PullRequest.Builder reviewers(List<Reviewer> reviewers)
List of Reviewers.
reviewers
- the value to setpublic PullRequest.Builder mergeChecks(MergeCheckCollection mergeChecks)
public PullRequest.Builder createdBy(PrincipalDetails createdBy)
public PullRequest.Builder mergedBy(PrincipalDetails mergedBy)
public PullRequest.Builder sourceRepositoryId(String sourceRepositoryId)
The OCID of the forked repository that will act as the source of the changes to be included in the pull request against the parent repository.
sourceRepositoryId
- the value to setpublic PullRequest.Builder totalComments(Integer totalComments)
The total number of comments on the pull request.
totalComments
- the value to setpublic PullRequest.Builder totalReviewers(Integer totalReviewers)
The total number of reviewers on the pull request.
totalReviewers
- the value to setpublic PullRequest.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope. Exists
for cross-compatibility only. See Resource
Tags. Example:
{"bar-key": "value"}
freeformTags
- the value to setpublic PullRequest.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. See
Resource Tags.
Example: {"foo-namespace": {"bar-key": "value"}}
definedTags
- the value to setpublic PullRequest.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource
Tags. Example:
{"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic PullRequest build()
public PullRequest.Builder copy(PullRequest model)
Copyright © 2016–2024. All rights reserved.