Package com.oracle.bmc.devops.model
Class PullRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.PullRequest.Builder
-
- Enclosing class:
- PullRequest
public static class PullRequest.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PullRequest
build()
PullRequest.Builder
compartmentId(String compartmentId)
Compartment IdentifierPullRequest.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 renamedPullRequest.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 creationPullRequest.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 closedPullRequest.Builder
mergeChecks(MergeCheckCollection mergeChecks)
PullRequest.Builder
mergedBy(PrincipalDetails mergedBy)
PullRequest.Builder
repositoryId(String repositoryId)
DevOps Repository Identifier tells which repository this pull request belongs toPullRequest.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 closedPullRequest.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.
-
-
-
Method Detail
-
id
public PullRequest.Builder id(String id)
Unique identifier that is immutable on creation- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public PullRequest.Builder displayName(String displayName)
PullRequest title, can be renamed- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public PullRequest.Builder description(String description)
Details of the pull request.Avoid entering confidential information.
- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public PullRequest.Builder compartmentId(String compartmentId)
Compartment Identifier- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
repositoryId
public PullRequest.Builder repositoryId(String repositoryId)
DevOps Repository Identifier tells which repository this pull request belongs to- Parameters:
repositoryId
- the value to set- Returns:
- this builder
-
sourceBranch
public PullRequest.Builder sourceBranch(String sourceBranch)
The source branch which contains the changes to be reviewed.Example: “feature/JIRA-123”
- Parameters:
sourceBranch
- the value to set- Returns:
- this builder
-
destinationBranch
public PullRequest.Builder destinationBranch(String destinationBranch)
The destination branch against which the changes are to be reviewed.Example: “main”.
- Parameters:
destinationBranch
- the value to set- Returns:
- this builder
-
sourceCommitIdAtTermination
public PullRequest.Builder sourceCommitIdAtTermination(String sourceCommitIdAtTermination)
The source branch commit ID when the Pull Request status was last changed to merged or closed- Parameters:
sourceCommitIdAtTermination
- the value to set- Returns:
- this builder
-
mergeBaseCommitIdAtTermination
public PullRequest.Builder mergeBaseCommitIdAtTermination(String mergeBaseCommitIdAtTermination)
The merge base commit ID when the Pull Request status was last changed to merged or closed- Parameters:
mergeBaseCommitIdAtTermination
- the value to set- Returns:
- this builder
-
timeCreated
public PullRequest.Builder timeCreated(Date timeCreated)
The time the PullRequest was created.An RFC3339 formatted datetime string
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public PullRequest.Builder timeUpdated(Date timeUpdated)
The time the PullRequest was updated.An RFC3339 formatted datetime string
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public PullRequest.Builder lifecycleState(PullRequest.LifecycleState lifecycleState)
The current state of the PullRequest.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public PullRequest.Builder lifecycleDetails(PullRequest.LifecycleDetails lifecycleDetails)
The status of the Pull Request.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
reviewers
public PullRequest.Builder reviewers(List<Reviewer> reviewers)
List of Reviewers.- Parameters:
reviewers
- the value to set- Returns:
- this builder
-
mergeChecks
public PullRequest.Builder mergeChecks(MergeCheckCollection mergeChecks)
-
createdBy
public PullRequest.Builder createdBy(PrincipalDetails createdBy)
-
mergedBy
public PullRequest.Builder mergedBy(PrincipalDetails mergedBy)
-
sourceRepositoryId
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.- Parameters:
sourceRepositoryId
- the value to set- Returns:
- this builder
-
totalComments
public PullRequest.Builder totalComments(Integer totalComments)
The total number of comments on the pull request.- Parameters:
totalComments
- the value to set- Returns:
- this builder
-
totalReviewers
public PullRequest.Builder totalReviewers(Integer totalReviewers)
The total number of reviewers on the pull request.- Parameters:
totalReviewers
- the value to set- Returns:
- this builder
-
freeformTags
public 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”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public 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”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public 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”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public PullRequest build()
-
copy
public PullRequest.Builder copy(PullRequest model)
-
-