Class Repository.Builder
- java.lang.Object
- 
- com.oracle.bmc.devops.model.Repository.Builder
 
- 
- Enclosing class:
- Repository
 
 public static class Repository.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Repository.BuilderbranchCount(Integer branchCount)The count of the branches present in the repository.Repositorybuild()Repository.BuildercommitCount(Integer commitCount)The count of the commits present in the repository.Repository.BuildercompartmentId(String compartmentId)The OCID of the repository’s compartment.Repository.Buildercopy(Repository model)Repository.BuilderdefaultBranch(String defaultBranch)The default branch of the repository.Repository.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Repository.Builderdescription(String description)Details of the repository.Repository.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Repository.BuilderhttpUrl(String httpUrl)HTTP URL that you use to git clone, pull and push.Repository.Builderid(String id)The OCID of the repository.Repository.BuilderlifecycleState(Repository.LifecycleState lifecycleState)The current state of the repository.Repository.BuilderlifecyleDetails(String lifecyleDetails)A message describing the current state in more detail.Repository.BuildermirrorRepositoryConfig(MirrorRepositoryConfig mirrorRepositoryConfig)Repository.Buildername(String name)Name of the repository.Repository.Buildernamespace(String namespace)Tenancy unique namespace.Repository.BuilderparentRepositoryId(String parentRepositoryId)The OCID of the parent repository.Repository.BuilderprojectId(String projectId)The OCID of the DevOps project containing the repository.Repository.BuilderprojectName(String projectName)Unique project name in a namespace.Repository.BuilderrepositoryType(Repository.RepositoryType repositoryType)Type of repository: MIRRORED - Repository created by mirroring an existing repository.Repository.BuildersizeInBytes(Long sizeInBytes)The size of the repository in bytes.Repository.BuildersshUrl(String sshUrl)SSH URL that you use to git clone, pull and push.Repository.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.Repository.BuildertimeCreated(Date timeCreated)The time the repository was created.Repository.BuildertimeUpdated(Date timeUpdated)The time the repository was updated.Repository.BuildertriggerBuildEvents(List<Repository.TriggerBuildEvents> triggerBuildEvents)Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs.
 
- 
- 
- 
Method Detail- 
idpublic Repository.Builder id(String id) The OCID of the repository.This value is unique and immutable. - Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
namepublic Repository.Builder name(String name) Name of the repository.Should be unique within the project. This value is mutable. - Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic Repository.Builder compartmentId(String compartmentId) The OCID of the repository’s compartment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
namespacepublic Repository.Builder namespace(String namespace) Tenancy unique namespace.- Parameters:
- namespace- the value to set
- Returns:
- this builder
 
 - 
projectIdpublic Repository.Builder projectId(String projectId) The OCID of the DevOps project containing the repository.- Parameters:
- projectId- the value to set
- Returns:
- this builder
 
 - 
parentRepositoryIdpublic Repository.Builder parentRepositoryId(String parentRepositoryId) The OCID of the parent repository.- Parameters:
- parentRepositoryId- the value to set
- Returns:
- this builder
 
 - 
projectNamepublic Repository.Builder projectName(String projectName) Unique project name in a namespace.- Parameters:
- projectName- the value to set
- Returns:
- this builder
 
 - 
sshUrlpublic Repository.Builder sshUrl(String sshUrl) SSH URL that you use to git clone, pull and push.- Parameters:
- sshUrl- the value to set
- Returns:
- this builder
 
 - 
httpUrlpublic Repository.Builder httpUrl(String httpUrl) HTTP URL that you use to git clone, pull and push.- Parameters:
- httpUrl- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic Repository.Builder description(String description) Details of the repository.Avoid entering confidential information. - Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
defaultBranchpublic Repository.Builder defaultBranch(String defaultBranch) The default branch of the repository.- Parameters:
- defaultBranch- the value to set
- Returns:
- this builder
 
 - 
repositoryTypepublic Repository.Builder repositoryType(Repository.RepositoryType repositoryType) Type of repository: MIRRORED - Repository created by mirroring an existing repository.HOSTED - Repository created and hosted using OCI DevOps code repository. FORKED - Repository created by forking an existing repository. - Parameters:
- repositoryType- the value to set
- Returns:
- this builder
 
 - 
mirrorRepositoryConfigpublic Repository.Builder mirrorRepositoryConfig(MirrorRepositoryConfig mirrorRepositoryConfig) 
 - 
timeCreatedpublic Repository.Builder timeCreated(Date timeCreated) The time the repository was created.Format defined by RFC3339. - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic Repository.Builder timeUpdated(Date timeUpdated) The time the repository was updated.Format defined by RFC3339. - Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic Repository.Builder lifecycleState(Repository.LifecycleState lifecycleState) The current state of the repository.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecyleDetailspublic Repository.Builder lifecyleDetails(String lifecyleDetails) A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state. - Parameters:
- lifecyleDetails- the value to set
- Returns:
- this builder
 
 - 
branchCountpublic Repository.Builder branchCount(Integer branchCount) The count of the branches present in the repository.- Parameters:
- branchCount- the value to set
- Returns:
- this builder
 
 - 
commitCountpublic Repository.Builder commitCount(Integer commitCount) The count of the commits present in the repository.- Parameters:
- commitCount- the value to set
- Returns:
- this builder
 
 - 
sizeInBytespublic Repository.Builder sizeInBytes(Long sizeInBytes) The size of the repository in bytes.- Parameters:
- sizeInBytes- the value to set
- Returns:
- this builder
 
 - 
triggerBuildEventspublic Repository.Builder triggerBuildEvents(List<Repository.TriggerBuildEvents> triggerBuildEvents) Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs.PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository. - Parameters:
- triggerBuildEvents- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic Repository.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
 
 - 
definedTagspublic Repository.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
 
 - 
systemTagspublic Repository.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
 
 - 
buildpublic Repository build() 
 - 
copypublic Repository.Builder copy(Repository model) 
 
- 
 
-