@Generated(value="OracleSDKGenerator", comments="API Version: 20210610") public final class JavaArtifact extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Information about a binary artifact of Java.
Note: Objects should always be created or deserialized using the JavaArtifact.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the JavaArtifact.Builder
, which maintain a
set of all explicitly set fields called JavaArtifact.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
JavaArtifact.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
JavaArtifact(Long artifactId,
String artifactDescription,
ArtifactContentType artifactContentType,
Long approximateFileSizeInBytes,
String sha256,
String artifactFileName,
String osFamily,
String architecture,
String packageType,
String packageTypeDetail,
String downloadUrl,
String scriptDownloadUrl,
String scriptChecksumUrl)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static JavaArtifact.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Long |
getApproximateFileSizeInBytes()
Approximate compressed file size in bytes.
|
String |
getArchitecture()
The target Operating System architecture for the artifact.
|
ArtifactContentType |
getArtifactContentType()
Product content type of this artifact.
|
String |
getArtifactDescription()
Description of the binary artifact.
|
String |
getArtifactFileName()
The file name of the artifact.
|
Long |
getArtifactId()
Unique identifier for the artifact.
|
String |
getDownloadUrl()
The endpoint that returns a short-lived artifact download URL in the response payload.
|
String |
getOsFamily()
The target Operating System family for the artifact.
|
String |
getPackageType()
The package type(typically the file extension) of the artifact.
|
String |
getPackageTypeDetail()
Additional information about the package type.
|
String |
getScriptChecksumUrl()
The URL for retrieving the checksum for the artifact.
|
String |
getScriptDownloadUrl()
The endpoint for downloading this artifact from command line, automatically in scripts and
dockerfiles.
|
String |
getSha256()
SHA256 checksum of the artifact.
|
int |
hashCode() |
JavaArtifact.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"artifactId","artifactDescription","artifactContentType","approximateFileSizeInBytes","sha256","artifactFileName","osFamily","architecture","packageType","packageTypeDetail","downloadUrl","scriptDownloadUrl","scriptChecksumUrl"}) public JavaArtifact(Long artifactId, String artifactDescription, ArtifactContentType artifactContentType, Long approximateFileSizeInBytes, String sha256, String artifactFileName, String osFamily, String architecture, String packageType, String packageTypeDetail, String downloadUrl, String scriptDownloadUrl, String scriptChecksumUrl)
public static JavaArtifact.Builder builder()
Create a new builder.
public JavaArtifact.Builder toBuilder()
public Long getArtifactId()
Unique identifier for the artifact.
public String getArtifactDescription()
Description of the binary artifact. Typically includes the OS, architecture, and installer type.
public ArtifactContentType getArtifactContentType()
Product content type of this artifact.
public Long getApproximateFileSizeInBytes()
Approximate compressed file size in bytes.
public String getSha256()
SHA256 checksum of the artifact.
public String getArtifactFileName()
The file name of the artifact.
public String getOsFamily()
The target Operating System family for the artifact.
public String getArchitecture()
The target Operating System architecture for the artifact.
public String getPackageType()
The package type(typically the file extension) of the artifact.
public String getPackageTypeDetail()
Additional information about the package type.
public String getDownloadUrl()
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.
public String getScriptDownloadUrl()
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.
public String getScriptChecksumUrl()
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.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.