Class ObjectStats


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class ObjectStats
    extends Object
    ObjectStats
    • Constructor Detail

      • ObjectStats

        public ObjectStats()
    • Method Detail

      • setPath

        public void setPath​(String path)
      • getPhysicalAddress

        @Nonnull
        public String getPhysicalAddress()
        The location of the object on the underlying object store. Formatted as a native URI with the object store type as scheme (\"s3://...\", \"gs://...\", etc.) Or, in the case of presign=true, will be an HTTP URL to be consumed via regular HTTP GET
        Returns:
        physicalAddress
      • setPhysicalAddress

        public void setPhysicalAddress​(String physicalAddress)
      • getChecksum

        @Nonnull
        public String getChecksum()
        Get checksum
        Returns:
        checksum
      • setChecksum

        public void setChecksum​(String checksum)
      • getSizeBytes

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

        public void setSizeBytes​(Long sizeBytes)
      • getMtime

        @Nonnull
        public Long getMtime()
        Unix Epoch in seconds
        Returns:
        mtime
      • setMtime

        public void setMtime​(Long mtime)
      • setMetadata

        public void setMetadata​(Map<String,​String> metadata)
      • 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 ObjectStats
      • fromJson

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

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