public class S3ObjectSummary
extends java.lang.Object
implements java.io.Serializable
S3Object
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.lang.String |
bucketName
The name of the bucket in which this object is stored
|
protected java.lang.String |
eTag
Hex encoded MD5 hash of this object's contents, as computed by Amazon S3
|
protected java.lang.String |
key
The key under which this object is stored
|
protected java.util.Date |
lastModified
The date, according to Amazon S3, when this object was last modified
|
protected Owner |
owner
The owner of this object - can be null if the requester doesn't have
permission to view object ownership information
|
protected long |
size
The size of this object, in bytes
|
protected java.lang.String |
storageClass
The class of storage used by Amazon S3 to store this object
|
Constructor and Description |
---|
S3ObjectSummary() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName()
Gets the name of the Amazon S3 bucket in which this object is stored.
|
java.lang.String |
getETag()
Gets the hex encoded 128-bit MD5 hash of this object's contents as
computed by Amazon S3.
|
java.lang.String |
getKey()
Gets the key under which this object is stored in Amazon S3.
|
java.util.Date |
getLastModified()
Gets the date when, according to Amazon S3, this object
was last modified.
|
Owner |
getOwner()
Gets the owner of this object.
|
long |
getSize()
Gets the size of this object in bytes.
|
java.lang.String |
getStorageClass()
Gets the storage class used by Amazon S3 for this object.
|
void |
setBucketName(java.lang.String bucketName)
Sets the name of the Amazon S3 bucket in which this object is stored.
|
void |
setETag(java.lang.String eTag)
Sets the hex encoded 128-bit MD5 hash of this object's contents as
computed by Amazon S3.
|
void |
setKey(java.lang.String key)
Sets the key under which this object is stored in Amazon S3.
|
void |
setLastModified(java.util.Date lastModified)
Sets the date, according to Amazon S3, this object
was last modified.
|
void |
setOwner(Owner owner)
Sets the owner of this object.
|
void |
setSize(long size)
Sets the size of this object in bytes.
|
void |
setStorageClass(java.lang.String storageClass)
Sets the storage class used by Amazon S3 for this object.
|
java.lang.String |
toString() |
protected java.lang.String bucketName
protected java.lang.String key
protected java.lang.String eTag
protected long size
protected java.util.Date lastModified
protected java.lang.String storageClass
protected Owner owner
public java.lang.String getBucketName()
setBucketName(String)
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the Amazon S3 bucket in which this object is
stored.getBucketName()
public java.lang.String getKey()
setKey(String)
public void setKey(java.lang.String key)
key
- The key under which this object is stored in Amazon S3.getKey()
public java.lang.String getETag()
setETag(String)
public void setETag(java.lang.String eTag)
eTag
- The hex encoded 128-bit MD5 hash of this object's contents as
computed by Amazon S3.getETag()
public long getSize()
setSize(long)
public void setSize(long size)
size
- The size of this object in bytes.getSize()
public java.util.Date getLastModified()
setLastModified(Date)
public void setLastModified(java.util.Date lastModified)
lastModified
- The date when, according to Amazon S3, this object
was last modified.getLastModified()
public Owner getOwner()
null
if the requester doesn't have
Permission.ReadAcp
permission for this object or owns the bucket
in which it resides.null
if the requester doesn't have
permission to see object ownership.setOwner(Owner)
public void setOwner(Owner owner)
owner
- The owner of this object.getOwner()
public java.lang.String getStorageClass()
setStorageClass(String)
public void setStorageClass(java.lang.String storageClass)
storageClass
- The storage class used by Amazon S3 for this object.getStorageClass()
public java.lang.String toString()
toString
in class java.lang.Object