public class S3VersionSummary extends Object implements Serializable
S3ObjectSummary,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected String |
bucketName
The name of the bucket in which this version is stored
|
| Constructor and Description |
|---|
S3VersionSummary() |
S3VersionSummary(String bucketName,
String key,
String versionId,
boolean isLatest,
LocalDateTime lastModified,
Owner owner,
String eTag,
long size,
String storageClass,
boolean isDeleteMarker) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getBucketName()
Gets the name of the Amazon S3 bucket in which this version is stored.
|
String |
getETag()
Gets the hex encoded 128-bit MD5 hash of this version's contents as computed by Amazon S3.
|
String |
getKey()
Gets the key under which this version is stored in Amazon S3.
|
LocalDateTime |
getLastModified()
Gets the date according to Amazon S3 at which this version was last modified.
|
Owner |
getOwner()
Gets the owner of this version.
|
long |
getSize()
Gets the size of this version in bytes.
|
String |
getStorageClass()
Gets the storage class used by Amazon S3 for this version.
|
String |
getVersionId()
Gets the version ID which uniquely identifies this version of an object.
|
int |
hashCode() |
boolean |
isDeleteMarker()
Returns whether or not this version represents a delete marker.
|
boolean |
isLatest()
Returns whether or not this version is the latest version for the associated object.
|
protected String bucketName
public String getBucketName()
public String getKey()
public String getVersionId()
Objects created before versioning was enabled or when versioning is suspended will be given the default/null version ID.
public boolean isLatest()
true if this version is the latest version for the associated object; returns the value false if otherwise.public LocalDateTime getLastModified()
public Owner getOwner()
null if the requester doesn't have Permission.READ_ACP permission for this version or owns the bucket in which it
resides.null if the requester doesn't have permission to see object ownership for this version.public boolean isDeleteMarker()
Delete markers are special types of versions that have no data associated with them. When deleting a 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. This occurs 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.
true if this version represents a delete marker. Returns the value false if otherwise.public String getETag()
public String getStorageClass()
public long getSize()
Copyright © 2021 MuleSoft, Inc.. All rights reserved.