Class ContainerRepository.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public ContainerRepository.Builder compartmentId​(String compartmentId)
        The OCID of the compartment in which the container repository exists.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • createdBy

        public ContainerRepository.Builder createdBy​(String createdBy)
        The id of the user or principal that created the resource.
        Parameters:
        createdBy - the value to set
        Returns:
        this builder
      • displayName

        public ContainerRepository.Builder displayName​(String displayName)
        The container repository name.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • id

        public ContainerRepository.Builder id​(String id)
        The OCID of the container repository.

        Example: ocid1.containerrepo.oc1..exampleuniqueID

        Parameters:
        id - the value to set
        Returns:
        this builder
      • imageCount

        public ContainerRepository.Builder imageCount​(Integer imageCount)
        Total number of images.
        Parameters:
        imageCount - the value to set
        Returns:
        this builder
      • isImmutable

        public ContainerRepository.Builder isImmutable​(Boolean isImmutable)
        Whether the repository is immutable.

        Images cannot be overwritten in an immutable repository.

        Parameters:
        isImmutable - the value to set
        Returns:
        this builder
      • isPublic

        public ContainerRepository.Builder isPublic​(Boolean isPublic)
        Whether the repository is public.

        A public repository allows unauthenticated access.

        Parameters:
        isPublic - the value to set
        Returns:
        this builder
      • layerCount

        public ContainerRepository.Builder layerCount​(Integer layerCount)
        Total number of layers.
        Parameters:
        layerCount - the value to set
        Returns:
        this builder
      • layersSizeInBytes

        public ContainerRepository.Builder layersSizeInBytes​(Long layersSizeInBytes)
        Total storage in bytes consumed by layers.
        Parameters:
        layersSizeInBytes - the value to set
        Returns:
        this builder
      • timeCreated

        public ContainerRepository.Builder timeCreated​(Date timeCreated)
        An RFC 3339 timestamp indicating when the repository was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeLastPushed

        public ContainerRepository.Builder timeLastPushed​(Date timeLastPushed)
        An RFC 3339 timestamp indicating when an image was last pushed to the repository.
        Parameters:
        timeLastPushed - the value to set
        Returns:
        this builder
      • billableSizeInGBs

        public ContainerRepository.Builder billableSizeInGBs​(Long billableSizeInGBs)
        Total storage size in GBs that will be charged.
        Parameters:
        billableSizeInGBs - the value to set
        Returns:
        this builder
      • namespace

        public ContainerRepository.Builder namespace​(String namespace)
        The tenancy namespace used in the container repository path.
        Parameters:
        namespace - the value to set
        Returns:
        this builder
      • isTopLevel

        public ContainerRepository.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 ContainerRepository.Builder upstreamUrl​(String upstreamUrl)
        The upstream registry URL for a pull-through cache repository.
        Parameters:
        upstreamUrl - the value to set
        Returns:
        this builder
      • upstreamUsername

        public ContainerRepository.Builder upstreamUsername​(String upstreamUsername)
        The upstream registry username for a pull-through cache repository.
        Parameters:
        upstreamUsername - the value to set
        Returns:
        this builder
      • upstreamSecretId

        public ContainerRepository.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.
        Parameters:
        upstreamSecretId - the value to set
        Returns:
        this builder
      • multiRegionPeers

        public ContainerRepository.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.

        Parameters:
        multiRegionPeers - the value to set
        Returns:
        this builder
      • freeformTags

        public ContainerRepository.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 ContainerRepository.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
      • systemTags

        public ContainerRepository.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        The system tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

        Parameters:
        systemTags - the value to set
        Returns:
        this builder