Package com.oracle.bmc.jms.model
Class JavaArtifact.Builder
- java.lang.Object
-
- com.oracle.bmc.jms.model.JavaArtifact.Builder
-
- Enclosing class:
- JavaArtifact
public static class JavaArtifact.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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
-
build
public JavaArtifact build()
-
copy
public JavaArtifact.Builder copy(JavaArtifact model)
-
-