public static class CreatePullRequestDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreatePullRequestDetails |
build() |
CreatePullRequestDetails.Builder |
copy(CreatePullRequestDetails model) |
CreatePullRequestDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreatePullRequestDetails.Builder |
description(String description)
Details of the pull request.
|
CreatePullRequestDetails.Builder |
destinationBranch(String destinationBranch)
The destination branch of the pull request.
|
CreatePullRequestDetails.Builder |
displayName(String displayName)
Pull Request title
|
CreatePullRequestDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
CreatePullRequestDetails.Builder |
repositoryId(String repositoryId)
The OCID of the repository.
|
CreatePullRequestDetails.Builder |
reviewers(List<CreateReviewerDetails> reviewers)
Reviewers for this pull request.
|
CreatePullRequestDetails.Builder |
sourceBranch(String sourceBranch)
The source branch of the pull request.
|
CreatePullRequestDetails.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.
|
public CreatePullRequestDetails.Builder displayName(String displayName)
Pull Request title
displayName
- the value to setpublic CreatePullRequestDetails.Builder sourceBranch(String sourceBranch)
The source branch of the pull request.
sourceBranch
- the value to setpublic CreatePullRequestDetails.Builder destinationBranch(String destinationBranch)
The destination branch of the pull request. If not provided, default branch will be used as the destination branch.
destinationBranch
- the value to setpublic CreatePullRequestDetails.Builder repositoryId(String repositoryId)
The OCID of the repository.
repositoryId
- the value to setpublic CreatePullRequestDetails.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 CreatePullRequestDetails.Builder description(String description)
Details of the pull request. Avoid entering confidential information.
description
- the value to setpublic CreatePullRequestDetails.Builder reviewers(List<CreateReviewerDetails> reviewers)
Reviewers for this pull request.
reviewers
- the value to setpublic CreatePullRequestDetails.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 CreatePullRequestDetails.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 CreatePullRequestDetails build()
public CreatePullRequestDetails.Builder copy(CreatePullRequestDetails model)
Copyright © 2016–2024. All rights reserved.