Class CmsS3ObjectMetadata

java.lang.Object
org.opencms.db.storage.s3.CmsS3ObjectMetadata

public final class CmsS3ObjectMetadata extends Object
Metadata returned by an S3 object listing.

  • Constructor Details

    • CmsS3ObjectMetadata

      public CmsS3ObjectMetadata(String key, long length, Instant lastModified, String revision)
      Creates object metadata.

      Parameters:
      key - the object key
      length - the object length
      lastModified - the last-modified timestamp, or null
      revision - the opaque revision, or null
  • Method Details

    • getKey

      public String getKey()
      Returns the object key.
    • getLastModified

      Returns the last-modified timestamp, or null.
    • getLength

      public long getLength()
      Returns the object length.
    • getRevision

      public String getRevision()
      Returns the opaque object revision, or null.