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

        public ObjectStats physicalAddressExpiry​(Long physicalAddressExpiry)
      • getPhysicalAddressExpiry

        @Nullable
        public Long getPhysicalAddressExpiry()
        If present and nonzero, physical_address is a pre-signed URL and will expire at this Unix Epoch time. This will be shorter than the pre-signed URL lifetime if an authentication token is about to expire. This field is *optional*.
        Returns:
        physicalAddressExpiry
      • setPhysicalAddressExpiry

        public void setPhysicalAddressExpiry​(Long physicalAddressExpiry)
      • 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)
      • putAdditionalProperty

        public ObjectStats 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 ObjectStats 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 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