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)
      • putAdditionalProperty

        public StagingMetadata putAdditionalProperty​(String key,
                                                     Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the StagingMetadata instance itself
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public Object getAdditionalProperty​(String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element 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