public static class JavaArtifact.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JavaArtifact.Builder |
approximateFileSizeInBytes(Long approximateFileSizeInBytes)
Approximate compressed file size in bytes.
|
JavaArtifact.Builder |
architecture(String architecture)
The target Operating System architecture for the artifact.
|
JavaArtifact.Builder |
artifactContentType(ArtifactContentType artifactContentType)
Product content type of this artifact.
|
JavaArtifact.Builder |
artifactDescription(String artifactDescription)
Description of the binary artifact.
|
JavaArtifact.Builder |
artifactFileName(String artifactFileName)
The file name of the artifact.
|
JavaArtifact.Builder |
artifactId(Long artifactId)
Unique identifier for the artifact.
|
JavaArtifact |
build() |
JavaArtifact.Builder |
copy(JavaArtifact model) |
JavaArtifact.Builder |
downloadUrl(String downloadUrl)
The endpoint that returns a short-lived artifact download URL in the response payload.
|
JavaArtifact.Builder |
osFamily(String osFamily)
The target Operating System family for the artifact.
|
JavaArtifact.Builder |
packageType(String packageType)
The package type(typically the file extension) of the artifact.
|
JavaArtifact.Builder |
packageTypeDetail(String packageTypeDetail)
Additional information about the package type.
|
JavaArtifact.Builder |
scriptChecksumUrl(String scriptChecksumUrl)
The URL for retrieving the checksum for the artifact.
|
JavaArtifact.Builder |
scriptDownloadUrl(String scriptDownloadUrl)
The endpoint for downloading this artifact from command line, automatically in scripts
and dockerfiles.
|
JavaArtifact.Builder |
sha256(String sha256)
SHA256 checksum of the artifact.
|
public JavaArtifact.Builder artifactId(Long artifactId)
Unique identifier for the artifact.
artifactId
- the value to setpublic JavaArtifact.Builder artifactDescription(String artifactDescription)
Description of the binary artifact. Typically includes the OS, architecture, and installer type.
artifactDescription
- the value to setpublic JavaArtifact.Builder artifactContentType(ArtifactContentType artifactContentType)
Product content type of this artifact.
artifactContentType
- the value to setpublic JavaArtifact.Builder approximateFileSizeInBytes(Long approximateFileSizeInBytes)
Approximate compressed file size in bytes.
approximateFileSizeInBytes
- the value to setpublic JavaArtifact.Builder sha256(String sha256)
SHA256 checksum of the artifact.
sha256
- the value to setpublic JavaArtifact.Builder artifactFileName(String artifactFileName)
The file name of the artifact.
artifactFileName
- the value to setpublic JavaArtifact.Builder osFamily(String osFamily)
The target Operating System family for the artifact.
osFamily
- the value to setpublic JavaArtifact.Builder architecture(String architecture)
The target Operating System architecture for the artifact.
architecture
- the value to setpublic JavaArtifact.Builder packageType(String packageType)
The package type(typically the file extension) of the artifact.
packageType
- the value to setpublic JavaArtifact.Builder packageTypeDetail(String packageTypeDetail)
Additional information about the package type.
packageTypeDetail
- the value to setpublic 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.
downloadUrl
- the value to setpublic 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.
scriptDownloadUrl
- the value to setpublic 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.
scriptChecksumUrl
- the value to setpublic JavaArtifact build()
public JavaArtifact.Builder copy(JavaArtifact model)
Copyright © 2016–2024. All rights reserved.