Class JavaArtifact.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • artifactId

        public JavaArtifact.Builder artifactId​(Long artifactId)
        Unique identifier for the artifact.
        Parameters:
        artifactId - the value to set
        Returns:
        this builder
      • artifactDescription

        public JavaArtifact.Builder artifactDescription​(String artifactDescription)
        Description of the binary artifact.

        Typically includes the OS, architecture, and installer type.

        Parameters:
        artifactDescription - the value to set
        Returns:
        this builder
      • artifactContentType

        public JavaArtifact.Builder artifactContentType​(ArtifactContentType artifactContentType)
        Product content type of this artifact.
        Parameters:
        artifactContentType - the value to set
        Returns:
        this builder
      • approximateFileSizeInBytes

        public JavaArtifact.Builder approximateFileSizeInBytes​(Long approximateFileSizeInBytes)
        Approximate compressed file size in bytes.
        Parameters:
        approximateFileSizeInBytes - the value to set
        Returns:
        this builder
      • sha256

        public JavaArtifact.Builder sha256​(String sha256)
        SHA256 checksum of the artifact.
        Parameters:
        sha256 - the value to set
        Returns:
        this builder
      • artifactFileName

        public JavaArtifact.Builder artifactFileName​(String artifactFileName)
        The file name of the artifact.
        Parameters:
        artifactFileName - the value to set
        Returns:
        this builder
      • osFamily

        public JavaArtifact.Builder osFamily​(String osFamily)
        The target Operating System family for the artifact.
        Parameters:
        osFamily - the value to set
        Returns:
        this builder
      • architecture

        public JavaArtifact.Builder architecture​(String architecture)
        The target Operating System architecture for the artifact.
        Parameters:
        architecture - the value to set
        Returns:
        this builder
      • packageType

        public JavaArtifact.Builder packageType​(String packageType)
        The package type(typically the file extension) of the artifact.
        Parameters:
        packageType - the value to set
        Returns:
        this builder
      • packageTypeDetail

        public JavaArtifact.Builder packageTypeDetail​(String packageTypeDetail)
        Additional information about the package type.
        Parameters:
        packageTypeDetail - the value to set
        Returns:
        this builder
      • downloadUrl

        public JavaArtifact.Builder downloadUrl​(String downloadUrl)
        The endpoint that returns a short-lived artifact download URL in the response payload.

        This download url can then be used for downloading the artifact. See this API for more details.

        Parameters:
        downloadUrl - the value to set
        Returns:
        this builder
      • scriptDownloadUrl

        public JavaArtifact.Builder scriptDownloadUrl​(String scriptDownloadUrl)
        The endpoint for downloading this artifact from command line, automatically in scripts and dockerfiles.

        Depending on the context, this can point to the archive or latest update release version artifact in the specified family.

        Parameters:
        scriptDownloadUrl - the value to set
        Returns:
        this builder
      • scriptChecksumUrl

        public JavaArtifact.Builder scriptChecksumUrl​(String scriptChecksumUrl)
        The URL for retrieving the checksum for the artifact.

        Depending on the context, this can point to the checksum of the archive or latest update release version artifact.

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