Class CreateContainerRepositoryDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • 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