Package com.amazonaws.services.s3.model
Class S3ObjectSummary
java.lang.Object
com.amazonaws.services.s3.model.S3ObjectSummary
- All Implemented Interfaces:
Serializable
Contains the summary of an object stored in an Amazon S3 bucket. This object
doesn't contain contain the
object's full metadata or any of its contents.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The name of the bucket in which this object is storedprotected String
Hex encoded MD5 hash of this object's contents, as computed by Amazon S3protected String
The key under which this object is storedprotected Date
The date, according to Amazon S3, when this object was last modifiedprotected Owner
The owner of this object - can be null if the requester doesn't have permission to view object ownership informationprotected long
The size of this object, in bytesprotected String
The class of storage used by Amazon S3 to store this object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the Amazon S3 bucket in which this object is stored.getETag()
Gets the hex encoded 128-bit MD5 hash of this object's contents as computed by Amazon S3.getKey()
Gets the key under which this object is stored in Amazon S3.Gets the date when, according to Amazon S3, this object was last modified.getOwner()
Gets the owner of this object.long
getSize()
Gets the size of this object in bytes.Gets the storage class used by Amazon S3 for this object.void
setBucketName
(String bucketName) Sets the name of the Amazon S3 bucket in which this object is stored.void
Sets the hex encoded 128-bit MD5 hash of this object's contents as computed by Amazon S3.void
Sets the key under which this object is stored in Amazon S3.void
setLastModified
(Date lastModified) Sets the date, according to Amazon S3, this object was last modified.void
Sets the owner of this object.void
setSize
(long size) Sets the size of this object in bytes.void
setStorageClass
(String storageClass) Sets the storage class used by Amazon S3 for this object.toString()
-
Field Details
-
bucketName
The name of the bucket in which this object is stored -
key
The key under which this object is stored -
eTag
Hex encoded MD5 hash of this object's contents, as computed by Amazon S3 -
size
protected long sizeThe size of this object, in bytes -
lastModified
The date, according to Amazon S3, when this object was last modified -
storageClass
The class of storage used by Amazon S3 to store this object -
owner
The owner of this object - can be null if the requester doesn't have permission to view object ownership information
-
-
Constructor Details
-
S3ObjectSummary
public S3ObjectSummary()
-
-
Method Details
-
getBucketName
Gets the name of the Amazon S3 bucket in which this object is stored.- Returns:
- The name of the Amazon S3 bucket in which this object is stored.
- See Also:
-
setBucketName
Sets the name of the Amazon S3 bucket in which this object is stored.- Parameters:
bucketName
- The name of the Amazon S3 bucket in which this object is stored.- See Also:
-
getKey
Gets the key under which this object is stored in Amazon S3.- Returns:
- The key under which this object is stored in Amazon S3.
- See Also:
-
setKey
Sets the key under which this object is stored in Amazon S3.- Parameters:
key
- The key under which this object is stored in Amazon S3.- See Also:
-
getETag
Gets the hex encoded 128-bit MD5 hash of this object's contents as computed by Amazon S3.- Returns:
- The hex encoded 128-bit MD5 hash of this object's contents as computed by Amazon S3.
- See Also:
-
setETag
Sets the hex encoded 128-bit MD5 hash of this object's contents as computed by Amazon S3.- Parameters:
eTag
- The hex encoded 128-bit MD5 hash of this object's contents as computed by Amazon S3.- See Also:
-
getSize
public long getSize()Gets the size of this object in bytes.- Returns:
- The size of this object in bytes.
- See Also:
-
setSize
public void setSize(long size) Sets the size of this object in bytes.- Parameters:
size
- The size of this object in bytes.- See Also:
-
getLastModified
Gets the date when, according to Amazon S3, this object was last modified.- Returns:
- The date when, according to Amazon S3, this object was last modified.
- See Also:
-
setLastModified
Sets the date, according to Amazon S3, this object was last modified.- Parameters:
lastModified
- The date when, according to Amazon S3, this object was last modified.- See Also:
-
getOwner
Gets the owner of this object. Returnsnull
if the requester doesn't havePermission.ReadAcp
permission for this object or owns the bucket in which it resides.- Returns:
- The owner of this object. Returns
null
if the requester doesn't have permission to see object ownership. - See Also:
-
setOwner
Sets the owner of this object.- Parameters:
owner
- The owner of this object.- See Also:
-
getStorageClass
Gets the storage class used by Amazon S3 for this object.- Returns:
- The storage class used by Amazon S3 for this object.
- See Also:
-
setStorageClass
Sets the storage class used by Amazon S3 for this object.- Parameters:
storageClass
- The storage class used by Amazon S3 for this object.- See Also:
-
toString
-