Interface S3ObjectMetadata

All Superinterfaces:
net.solarnetwork.io.ResourceMetadata
All Known Implementing Classes:
S3ObjectMeta, SdkS3Object

public interface S3ObjectMetadata extends net.solarnetwork.io.ResourceMetadata
Metadata related to an S3 object.
Version:
1.1
Author:
matt
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The metadata map key for the getSize() value.
    static final String
    The metadata map key for the getStorageClass() value.

    Fields inherited from interface net.solarnetwork.io.ResourceMetadata

    CONTENT_TYPE_KEY, DEFAULT_CONTENT_TYPE, MODIFIED_KEY
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the object's content size.
    Get the object storage class key to use.
    default boolean
     

    Methods inherited from interface net.solarnetwork.io.ResourceMetadata

    asCustomMap, asMap, asStandardMap, getContentType, getModified, populateMap
  • Field Details

  • Method Details

    • getSize

      long getSize()
      Get the object's content size.
      Returns:
      the size, in bytes
    • getStorageClass

      String getStorageClass()
      Get the object storage class key to use.
      Returns:
      the storage class
    • isCustomKey

      default boolean isCustomKey(String key)
      Specified by:
      isCustomKey in interface net.solarnetwork.io.ResourceMetadata