public static class CreateRepositoryDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
public CreateRepositoryDetails.Builder name(String name)
Name of the repository. Should be unique within the project.
name
- the value to setpublic CreateRepositoryDetails.Builder projectId(String projectId)
The OCID of the DevOps project containing the repository.
projectId
- the value to setpublic CreateRepositoryDetails.Builder parentRepositoryId(String parentRepositoryId)
The OCID of the parent repository.
parentRepositoryId
- the value to setpublic CreateRepositoryDetails.Builder defaultBranch(String defaultBranch)
The default branch of the repository.
defaultBranch
- the value to setpublic CreateRepositoryDetails.Builder repositoryType(Repository.RepositoryType repositoryType)
Type of repository. Allowed values: MIRRORED
HOSTED
FORKED
repositoryType
- the value to setpublic CreateRepositoryDetails.Builder mirrorRepositoryConfig(MirrorRepositoryConfig mirrorRepositoryConfig)
public CreateRepositoryDetails.Builder description(String description)
Details of the repository. Avoid entering confidential information.
description
- the value to setpublic CreateRepositoryDetails.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 CreateRepositoryDetails.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 CreateRepositoryDetails build()
public CreateRepositoryDetails.Builder copy(CreateRepositoryDetails model)
Copyright © 2016–2024. All rights reserved.