Package com.amazonaws.services.s3.model
Class S3ObjectSummary
- java.lang.Object
-
- com.amazonaws.services.s3.model.S3ObjectSummary
-
- All Implemented Interfaces:
Serializable
public class S3ObjectSummary extends Object implements 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:
S3Object, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringbucketNameThe name of the bucket in which this object is storedprotected StringeTagHex encoded MD5 hash of this object's contents, as computed by Amazon S3protected StringkeyThe key under which this object is storedprotected DatelastModifiedThe date, according to Amazon S3, when this object was last modifiedprotected OwnerownerThe owner of this object - can be null if the requester doesn't have permission to view object ownership informationprotected longsizeThe size of this object, in bytesprotected StringstorageClassThe class of storage used by Amazon S3 to store this object
-
Constructor Summary
Constructors Constructor Description S3ObjectSummary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBucketName()Gets the name of the Amazon S3 bucket in which this object is stored.StringgetETag()Gets the hex encoded 128-bit MD5 hash of this object's contents as computed by Amazon S3.StringgetKey()Gets the key under which this object is stored in Amazon S3.DategetLastModified()Gets the date when, according to Amazon S3, this object was last modified.OwnergetOwner()Gets the owner of this object.longgetSize()Gets the size of this object in bytes.StringgetStorageClass()Gets the storage class used by Amazon S3 for this object.voidsetBucketName(String bucketName)Sets the name of the Amazon S3 bucket in which this object is stored.voidsetETag(String eTag)Sets the hex encoded 128-bit MD5 hash of this object's contents as computed by Amazon S3.voidsetKey(String key)Sets the key under which this object is stored in Amazon S3.voidsetLastModified(Date lastModified)Sets the date, according to Amazon S3, this object was last modified.voidsetOwner(Owner owner)Sets the owner of this object.voidsetSize(long size)Sets the size of this object in bytes.voidsetStorageClass(String storageClass)Sets the storage class used by Amazon S3 for this object.StringtoString()
-
-
-
Field Detail
-
bucketName
protected String bucketName
The name of the bucket in which this object is stored
-
key
protected String key
The key under which this object is stored
-
eTag
protected String eTag
Hex encoded MD5 hash of this object's contents, as computed by Amazon S3
-
size
protected long size
The size of this object, in bytes
-
lastModified
protected Date lastModified
The date, according to Amazon S3, when this object was last modified
-
storageClass
protected String storageClass
The class of storage used by Amazon S3 to store this object
-
owner
protected Owner owner
The owner of this object - can be null if the requester doesn't have permission to view object ownership information
-
-
Method Detail
-
getBucketName
public String 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(String)
-
setBucketName
public void setBucketName(String bucketName)
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:
getBucketName()
-
getKey
public String 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(String)
-
setKey
public void setKey(String key)
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:
getKey()
-
getETag
public String 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(String)
-
setETag
public void setETag(String eTag)
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:
getETag()
-
getSize
public long getSize()
Gets the size of this object in bytes.- Returns:
- The size of this object in bytes.
- See Also:
setSize(long)
-
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:
getSize()
-
getLastModified
public Date 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(Date)
-
setLastModified
public void setLastModified(Date lastModified)
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:
getLastModified()
-
getOwner
public Owner getOwner()
Gets the owner of this object. Returnsnullif the requester doesn't havePermission.ReadAcppermission for this object or owns the bucket in which it resides.- Returns:
- The owner of this object. Returns
nullif the requester doesn't have permission to see object ownership. - See Also:
setOwner(Owner)
-
setOwner
public void setOwner(Owner owner)
Sets the owner of this object.- Parameters:
owner- The owner of this object.- See Also:
getOwner()
-
getStorageClass
public String 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(String)
-
setStorageClass
public void setStorageClass(String storageClass)
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:
getStorageClass()
-
-