Class CreateContainerRepositoryDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.artifacts.model.CreateContainerRepositoryDetails.Builder
-
- Enclosing class:
- CreateContainerRepositoryDetails
public static class CreateContainerRepositoryDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
compartmentId
public CreateContainerRepositoryDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment in which to create the resource.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public CreateContainerRepositoryDetails.Builder displayName(String displayName)
The container repository name.- Parameters:
displayName- the value to set- Returns:
- this builder
-
repositoryType
public CreateContainerRepositoryDetails.Builder repositoryType(ContainerRepository.RepositoryType repositoryType)
The type of container repository.This determines the repository behavior and required settings.
- Parameters:
repositoryType- the value to set- Returns:
- this builder
-
isTopLevel
public CreateContainerRepositoryDetails.Builder isTopLevel(Boolean isTopLevel)
Whether the repository is top-level.A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
- Parameters:
isTopLevel- the value to set- Returns:
- this builder
-
upstreamUrl
public CreateContainerRepositoryDetails.Builder upstreamUrl(String upstreamUrl)
The upstream registry URL for a pull-through cache repository.Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.
If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/
/library/ubuntu If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/
/library or iad.ocir.io/ - Parameters:
upstreamUrl- the value to set- Returns:
- this builder
-
upstreamUsername
public CreateContainerRepositoryDetails.Builder upstreamUsername(String upstreamUsername)
The upstream registry username for a pull-through cache repository.Required when repositoryType is PULL_THROUGH.
- Parameters:
upstreamUsername- the value to set- Returns:
- this builder
-
upstreamSecretId
public CreateContainerRepositoryDetails.Builder upstreamSecretId(String upstreamSecretId)
The OCID of the OCI Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository.Required when repositoryType is PULL_THROUGH.
Example: ocid1.vaultsecret.oc1..exampleuniqueID
- Parameters:
upstreamSecretId- the value to set- Returns:
- this builder
-
multiRegionPeers
public CreateContainerRepositoryDetails.Builder multiRegionPeers(List<String> multiRegionPeers)
List of peer regions that define the multi-region group.Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
- Parameters:
multiRegionPeers- the value to set- Returns:
- this builder
-
isImmutable
public CreateContainerRepositoryDetails.Builder isImmutable(Boolean isImmutable)
Whether the repository is immutable.Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
- Parameters:
isImmutable- the value to set- Returns:
- this builder
-
isPublic
public CreateContainerRepositoryDetails.Builder isPublic(Boolean isPublic)
Whether the repository is public.A public repository allows unauthenticated access.
- Parameters:
isPublic- the value to set- Returns:
- this builder
-
readme
public CreateContainerRepositoryDetails.Builder readme(ContainerRepositoryReadme readme)
-
freeformTags
public CreateContainerRepositoryDetails.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public CreateContainerRepositoryDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public CreateContainerRepositoryDetails build()
-
copy
public CreateContainerRepositoryDetails.Builder copy(CreateContainerRepositoryDetails model)
-
-