Class GenericArtifactSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public GenericArtifactSummary.Builder displayName​(String displayName)
        The artifact name with the format of :.

        The artifact name is truncated to a maximum length of 255.

        Example: project01/my-web-app/artifact-abc:1.0.0

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • compartmentId

        public GenericArtifactSummary.Builder compartmentId​(String compartmentId)
        The OCID of the artifact’s compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • artifactPath

        public GenericArtifactSummary.Builder artifactPath​(String artifactPath)
        A user-defined path to describe the location of an artifact.

        Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version.

        Example: project01/my-web-app/artifact-abc

        Parameters:
        artifactPath - the value to set
        Returns:
        this builder
      • version

        public GenericArtifactSummary.Builder version​(String version)
        A user-defined string to describe the artifact version.

        Example: 1.1.0 or 1.2-beta-2

        Parameters:
        version - the value to set
        Returns:
        this builder
      • sha256

        public GenericArtifactSummary.Builder sha256​(String sha256)
        The SHA256 digest for the artifact.

        When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

        Parameters:
        sha256 - the value to set
        Returns:
        this builder
      • sizeInBytes

        public GenericArtifactSummary.Builder sizeInBytes​(Long sizeInBytes)
        The size of the artifact in bytes.
        Parameters:
        sizeInBytes - the value to set
        Returns:
        this builder
      • freeformTags

        public GenericArtifactSummary.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 GenericArtifactSummary.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
      • timeCreated

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