@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)
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.
|
ArtifactContentType |
getArtifactContentType()
Product content type of this artifact.
|
String |
getArtifactDescription()
Description of the binary artifact.
|
Long |
getArtifactId()
Unique identifier for the artifact.
|
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"}) public JavaArtifact(Long artifactId, String artifactDescription, ArtifactContentType artifactContentType, Long approximateFileSizeInBytes, String sha256)
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 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–2023. All rights reserved.