public static class Repository.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Repository.Builder |
branchCount(Integer branchCount)
The count of the branches present in the repository.
|
Repository |
build() |
Repository.Builder |
commitCount(Integer commitCount)
The count of the commits present in the repository.
|
Repository.Builder |
compartmentId(String compartmentId)
The OCID of the repository’s compartment.
|
Repository.Builder |
copy(Repository model) |
Repository.Builder |
defaultBranch(String defaultBranch)
The default branch of the repository.
|
Repository.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Repository.Builder |
description(String description)
Details of the repository.
|
Repository.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
Repository.Builder |
httpUrl(String httpUrl)
HTTP URL that you use to git clone, pull and push.
|
Repository.Builder |
id(String id)
The OCID of the repository.
|
Repository.Builder |
lifecycleState(Repository.LifecycleState lifecycleState)
The current state of the repository.
|
Repository.Builder |
lifecyleDetails(String lifecyleDetails)
A message describing the current state in more detail.
|
Repository.Builder |
mirrorRepositoryConfig(MirrorRepositoryConfig mirrorRepositoryConfig) |
Repository.Builder |
name(String name)
Name of the repository.
|
Repository.Builder |
namespace(String namespace)
Tenancy unique namespace.
|
Repository.Builder |
parentRepositoryId(String parentRepositoryId)
The OCID of the parent repository.
|
Repository.Builder |
projectId(String projectId)
The OCID of the DevOps project containing the repository.
|
Repository.Builder |
projectName(String projectName)
Unique project name in a namespace.
|
Repository.Builder |
repositoryType(Repository.RepositoryType repositoryType)
Type of repository: MIRRORED - Repository created by mirroring an existing repository.
|
Repository.Builder |
sizeInBytes(Long sizeInBytes)
The size of the repository in bytes.
|
Repository.Builder |
sshUrl(String sshUrl)
SSH URL that you use to git clone, pull and push.
|
Repository.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
Repository.Builder |
timeCreated(Date timeCreated)
The time the repository was created.
|
Repository.Builder |
timeUpdated(Date timeUpdated)
The time the repository was updated.
|
Repository.Builder |
triggerBuildEvents(List<Repository.TriggerBuildEvents> triggerBuildEvents)
Trigger build events supported for this repository: PUSH - Build is triggered when a push
event occurs.
|
public Repository.Builder id(String id)
The OCID of the repository. This value is unique and immutable.
id
- the value to setpublic Repository.Builder name(String name)
Name of the repository. Should be unique within the project. This value is mutable.
name
- the value to setpublic Repository.Builder compartmentId(String compartmentId)
The OCID of the repository’s compartment.
compartmentId
- the value to setpublic Repository.Builder namespace(String namespace)
Tenancy unique namespace.
namespace
- the value to setpublic Repository.Builder projectId(String projectId)
The OCID of the DevOps project containing the repository.
projectId
- the value to setpublic Repository.Builder parentRepositoryId(String parentRepositoryId)
The OCID of the parent repository.
parentRepositoryId
- the value to setpublic Repository.Builder projectName(String projectName)
Unique project name in a namespace.
projectName
- the value to setpublic Repository.Builder sshUrl(String sshUrl)
SSH URL that you use to git clone, pull and push.
sshUrl
- the value to setpublic Repository.Builder httpUrl(String httpUrl)
HTTP URL that you use to git clone, pull and push.
httpUrl
- the value to setpublic Repository.Builder description(String description)
Details of the repository. Avoid entering confidential information.
description
- the value to setpublic Repository.Builder defaultBranch(String defaultBranch)
The default branch of the repository.
defaultBranch
- the value to setpublic 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.
repositoryType
- the value to setpublic Repository.Builder mirrorRepositoryConfig(MirrorRepositoryConfig mirrorRepositoryConfig)
public Repository.Builder timeCreated(Date timeCreated)
The time the repository was created. Format defined by RFC3339.
timeCreated
- the value to setpublic Repository.Builder timeUpdated(Date timeUpdated)
The time the repository was updated. Format defined by RFC3339.
timeUpdated
- the value to setpublic Repository.Builder lifecycleState(Repository.LifecycleState lifecycleState)
The current state of the repository.
lifecycleState
- the value to setpublic 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.
lifecyleDetails
- the value to setpublic Repository.Builder branchCount(Integer branchCount)
The count of the branches present in the repository.
branchCount
- the value to setpublic Repository.Builder commitCount(Integer commitCount)
The count of the commits present in the repository.
commitCount
- the value to setpublic Repository.Builder sizeInBytes(Long sizeInBytes)
The size of the repository in bytes.
sizeInBytes
- the value to setpublic 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.
triggerBuildEvents
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic 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"}}
systemTags
- the value to setpublic Repository build()
public Repository.Builder copy(Repository model)
Copyright © 2016–2024. All rights reserved.