Class StagingMetadata


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class StagingMetadata
    extends Object
    information about uploaded object
    • Constructor Detail

      • StagingMetadata

        public StagingMetadata()
    • Method Detail

      • getChecksum

        @Nonnull
        public String getChecksum()
        unique identifier of object content on backing store (typically ETag)
        Returns:
        checksum
      • setChecksum

        public void setChecksum​(String checksum)
      • getSizeBytes

        @Nonnull
        public Long getSizeBytes()
        Get sizeBytes
        Returns:
        sizeBytes
      • setSizeBytes

        public void setSizeBytes​(Long sizeBytes)
      • setUserMetadata

        public void setUserMetadata​(Map<String,​String> userMetadata)
      • getContentType

        @Nullable
        public String getContentType()
        Object media type
        Returns:
        contentType
      • setContentType

        public void setContentType​(String contentType)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to StagingMetadata
      • fromJson

        public static StagingMetadata fromJson​(String jsonString)
                                        throws IOException
        Create an instance of StagingMetadata given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of StagingMetadata
        Throws:
        IOException - if the JSON string is invalid with respect to StagingMetadata
      • toJson

        public String toJson()
        Convert an instance of StagingMetadata to an JSON string
        Returns:
        JSON string