Class JavaArtifact


  • @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).
    • Constructor Detail

      • JavaArtifact

        @Deprecated
        @ConstructorProperties({"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)
        Deprecated.
    • Method Detail

      • getArtifactId

        public Long getArtifactId()
        Unique identifier for the artifact.
        Returns:
        the value
      • getArtifactDescription

        public String getArtifactDescription()
        Description of the binary artifact.

        Typically includes the OS, architecture, and installer type.

        Returns:
        the value
      • getArtifactContentType

        public ArtifactContentType getArtifactContentType()
        Product content type of this artifact.
        Returns:
        the value
      • getApproximateFileSizeInBytes

        public Long getApproximateFileSizeInBytes()
        Approximate compressed file size in bytes.
        Returns:
        the value
      • getSha256

        public String getSha256()
        SHA256 checksum of the artifact.
        Returns:
        the value
      • getArtifactFileName

        public String getArtifactFileName()
        The file name of the artifact.
        Returns:
        the value
      • getOsFamily

        public String getOsFamily()
        The target Operating System family for the artifact.
        Returns:
        the value
      • getArchitecture

        public String getArchitecture()
        The target Operating System architecture for the artifact.
        Returns:
        the value
      • getPackageType

        public String getPackageType()
        The package type(typically the file extension) of the artifact.
        Returns:
        the value
      • getPackageTypeDetail

        public String getPackageTypeDetail()
        Additional information about the package type.
        Returns:
        the value
      • getDownloadUrl

        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.

        Returns:
        the value
      • getScriptDownloadUrl

        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.

        Returns:
        the value
      • getScriptChecksumUrl

        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.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel