|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.s3.model.S3VersionSummary
public class S3VersionSummary
Summary of a version stored in an Amazon S3 bucket. Doesn't contain the version's full metadata or any of the contents.
Constructor Summary | |
---|---|
S3VersionSummary()
|
Method Summary | |
---|---|
String |
getBucketName()
Returns the name of the Amazon S3 bucket in which this version is stored. |
String |
getETag()
Returns the hex encoded 128 bit MD5 hash of this version's contents, as computed by Amazon S3. |
String |
getKey()
Returns the key under which this version is stored in Amazon S3. |
Date |
getLastModified()
Returns the date, according to Amazon S3, at which this version was last modified. |
Owner |
getOwner()
Returns the owner of this version, or null if the requester doesn't have Permission.ReadAcp permission for this version (or own the bucket
in which it resides) and therefore doesn't have permission to see object
ownership. |
long |
getSize()
Returns the size of this version, in bytes. |
String |
getStorageClass()
Returns the type of storage used by Amazon S3 for this version. |
String |
getVersionId()
Returns the version ID which uniquely identifies this version of an object. |
boolean |
isDeleteMarker()
Returns true if this version represents a delete marker. |
boolean |
isLatest()
Returns true if this version is the latest version for the associated object. |
void |
setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket in which this version is stored. |
void |
setETag(String eTag)
Sets the hex encoded 128 bit MD5 hash of this version's contents, as computed by Amazon S3. |
void |
setIsDeleteMarker(boolean isDeleteMarker)
Intended for internal use only in the S3 client code. |
void |
setIsLatest(boolean isLatest)
Sets whether this version is the latest version for the associated object. |
void |
setKey(String key)
Sets the key under which this version is stored in Amazon S3. |
void |
setLastModified(Date lastModified)
Sets the date, according to Amazon S3, at which this version was last modified. |
void |
setOwner(Owner owner)
Sets the owner of this version. |
void |
setSize(long size)
Sets the size of this version, in bytes. |
void |
setStorageClass(String storageClass)
Sets the type of storage used by Amazon S3 for this version. |
void |
setVersionId(String id)
Sets the version ID which uniquely identifies this version of an object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public S3VersionSummary()
Method Detail |
---|
public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket in which this version is
stored.public String getKey()
public void setKey(String key)
key
- The key under which this version is stored in Amazon S3.public String getVersionId()
Objects created before versioning was enabled or when versioning is
suspended will be given the default/null version ID (see
Constants.NULL_VERSION_ID
). Note that the
Constants.NULL_VERSION_ID
is a valid version ID and is not the
same as not having a version ID.
public void setVersionId(String id)
id
- The version ID which uniquely identifies this version of an
object.public boolean isLatest()
public void setIsLatest(boolean isLatest)
isLatest
- True if this version represents the latest version for the
associated object in S3.public Date getLastModified()
public void setLastModified(Date lastModified)
lastModified
- The date, according to Amazon S3, at which this version was
last modified.public Owner getOwner()
Permission.ReadAcp
permission for this version (or own the bucket
in which it resides) and therefore doesn't have permission to see object
ownership.
public void setOwner(Owner owner)
owner
- The owner of this object.public boolean isDeleteMarker()
Delete markers are special types of versions that have no data associated with them. Deleting an versioned object in Amazon S3 without specifying an explicit version ID a new delete marker is created as the latest version of that object to mark that the object was deleted, even though the previous versions still exist in Amazon S3.
Delete markers have no data associated with them and therefore have no associated ACL, size or storage class. Only requesters with read access to a bucket can learn of their existence by listing the versions in a bucket.
public void setIsDeleteMarker(boolean isDeleteMarker)
isDeleteMarker
- True if this version summary represents a delete marker,
otherwise false if it is a regular version summary.public String getETag()
public void setETag(String eTag)
eTag
- The hex encoded 128 bit MD5 hash of this version's contents,
as computed by Amazon S3.public String getStorageClass()
public void setStorageClass(String storageClass)
storageClass
- The type of storage used by Amazon S3 for this version.public long getSize()
public void setSize(long size)
size
- The size of this version, in bytes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |