Package com.oracle.bmc.devops.model
Class CreatePullRequestDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.CreatePullRequestDetails.Builder
-
- Enclosing class:
- CreatePullRequestDetails
public static class CreatePullRequestDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 titleCreatePullRequestDetails.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.
-
-
-
Method Detail
-
displayName
public CreatePullRequestDetails.Builder displayName(String displayName)
Pull Request title- Parameters:
displayName
- the value to set- Returns:
- this builder
-
sourceBranch
public CreatePullRequestDetails.Builder sourceBranch(String sourceBranch)
The source branch of the pull request.- Parameters:
sourceBranch
- the value to set- Returns:
- this builder
-
destinationBranch
public CreatePullRequestDetails.Builder destinationBranch(String destinationBranch)
The destination branch of the pull request.If not provided, default branch will be used as the destination branch.
- Parameters:
destinationBranch
- the value to set- Returns:
- this builder
-
repositoryId
public CreatePullRequestDetails.Builder repositoryId(String repositoryId)
The OCID of the repository.- Parameters:
repositoryId
- the value to set- Returns:
- this builder
-
sourceRepositoryId
public 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.- Parameters:
sourceRepositoryId
- the value to set- Returns:
- this builder
-
description
public CreatePullRequestDetails.Builder description(String description)
Details of the pull request.Avoid entering confidential information.
- Parameters:
description
- the value to set- Returns:
- this builder
-
reviewers
public CreatePullRequestDetails.Builder reviewers(List<CreateReviewerDetails> reviewers)
Reviewers for this pull request.- Parameters:
reviewers
- the value to set- Returns:
- this builder
-
freeformTags
public 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”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public 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”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public CreatePullRequestDetails build()
-
copy
public CreatePullRequestDetails.Builder copy(CreatePullRequestDetails model)
-
-