Class S3Object
- java.lang.Object
-
- software.amazon.awssdk.eventnotifications.s3.model.S3Object
-
public class S3Object extends Object
Object information.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getETag()
String
getKey()
String
getSequencer()
The sequencer key provides a way to determine the sequence of events.Long
getSizeAsLong()
String
getUrlDecodedKey()
S3 URL encodes the key of the object involved in the event.String
getVersionId()
int
hashCode()
String
toString()
-
-
-
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.
-
-