Package com.oracle.bmc.devops.model
Class CreateRepositoryDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.CreateRepositoryDetails.Builder
-
- Enclosing class:
- CreateRepositoryDetails
public static class CreateRepositoryDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
public CreateRepositoryDetails.Builder name(String name)
Name of the repository.Should be unique within the project.
- Parameters:
name
- the value to set- Returns:
- this builder
-
projectId
public CreateRepositoryDetails.Builder projectId(String projectId)
The OCID of the DevOps project containing the repository.- Parameters:
projectId
- the value to set- Returns:
- this builder
-
parentRepositoryId
public CreateRepositoryDetails.Builder parentRepositoryId(String parentRepositoryId)
The OCID of the parent repository.- Parameters:
parentRepositoryId
- the value to set- Returns:
- this builder
-
defaultBranch
public CreateRepositoryDetails.Builder defaultBranch(String defaultBranch)
The default branch of the repository.- Parameters:
defaultBranch
- the value to set- Returns:
- this builder
-
repositoryType
public CreateRepositoryDetails.Builder repositoryType(Repository.RepositoryType repositoryType)
Type of repository.Allowed values: MIRRORED HOSTED FORKED
- Parameters:
repositoryType
- the value to set- Returns:
- this builder
-
mirrorRepositoryConfig
public CreateRepositoryDetails.Builder mirrorRepositoryConfig(MirrorRepositoryConfig mirrorRepositoryConfig)
-
description
public CreateRepositoryDetails.Builder description(String description)
Details of the repository.Avoid entering confidential information.
- Parameters:
description
- the value to set- Returns:
- this builder
-
freeformTags
public 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”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public 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”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public CreateRepositoryDetails build()
-
copy
public CreateRepositoryDetails.Builder copy(CreateRepositoryDetails model)
-
-