public static class UpdateRepositoryDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UpdateRepositoryDetails |
build() |
UpdateRepositoryDetails.Builder |
copy(UpdateRepositoryDetails model) |
UpdateRepositoryDetails.Builder |
defaultBranch(String defaultBranch)
The default branch of the repository.
|
UpdateRepositoryDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
UpdateRepositoryDetails.Builder |
description(String description)
Details of the repository.
|
UpdateRepositoryDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
UpdateRepositoryDetails.Builder |
mirrorRepositoryConfig(MirrorRepositoryConfig mirrorRepositoryConfig) |
UpdateRepositoryDetails.Builder |
name(String name)
Name of the repository.
|
UpdateRepositoryDetails.Builder |
repositoryType(Repository.RepositoryType repositoryType)
Type of repository.
|
public UpdateRepositoryDetails.Builder name(String name)
Name of the repository. Should be unique within the project.
name
- the value to setpublic UpdateRepositoryDetails.Builder description(String description)
Details of the repository. Avoid entering confidential information.
description
- the value to setpublic UpdateRepositoryDetails.Builder defaultBranch(String defaultBranch)
The default branch of the repository.
defaultBranch
- the value to setpublic UpdateRepositoryDetails.Builder repositoryType(Repository.RepositoryType repositoryType)
Type of repository. Allowed values: MIRRORED
HOSTED
FORKED
repositoryType
- the value to setpublic UpdateRepositoryDetails.Builder mirrorRepositoryConfig(MirrorRepositoryConfig mirrorRepositoryConfig)
public UpdateRepositoryDetails.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 UpdateRepositoryDetails.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 UpdateRepositoryDetails build()
public UpdateRepositoryDetails.Builder copy(UpdateRepositoryDetails model)
Copyright © 2016–2024. All rights reserved.