Class S3Object


  • public class S3Object
    extends Object
    Object information.
    • Method Detail

      • getKey

        public String getKey()
        Returns:
        the object key.
      • getUrlDecodedKey

        public String getUrlDecodedKey()
        S3 URL encodes the key of the object involved in the event. This is a convenience method to automatically URL decode the key.
        Returns:
        The URL decoded object key.
      • getSizeAsLong

        public Long getSizeAsLong()
        Returns:
        the object size in bytes.
      • getETag

        public String getETag()
        Returns:
        the object eTag
      • getVersionId

        public String getVersionId()
        Returns:
        the object version if bucket is versioning-enabled, otherwise null
      • getSequencer

        public String getSequencer()
        The sequencer key provides a way to determine the sequence of events. Event notifications aren't guaranteed to arrive in the same order that the events occurred. However, notifications from events that create objects (PUTs) and delete objects contain a sequencer. It can be used to determine the order of events for a given object key.
        Returns:
        A string representation of a hexadecimal value used to determine event sequence, only used with PUTs and DELETEs.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object