public class VersionOrDeleteMarker extends Object
Constructor and Description |
---|
VersionOrDeleteMarker(String bucketName,
String key,
String versionId,
boolean isLatest,
Date lastModified,
Owner owner,
String etag,
long size,
StorageClassEnum storageClass,
boolean isDeleteMarker,
boolean appendable)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Obtain the name of the bucket to which the versioning object belongs.
|
String |
getEtag()
Obtain ETag of the object.
|
String |
getKey()
Obtain the object name.
|
Date |
getLastModified()
Obtain the last modification date of the object.
|
String |
getObjectKey()
Obtain the object name.
|
StorageClassEnum |
getObjectStorageClass()
Obtain the storage class of the object.
|
Owner |
getOwner()
Obtain the owner of the object.
|
long |
getSize()
Obtain the object size (in bytes).
|
String |
getStorageClass()
Deprecated.
|
String |
getVersionId()
Obtain the object version ID.
|
boolean |
isAppendable()
Identify whether an object is appendable.
|
boolean |
isDeleteMarker()
Check whether the versioning object has been deleted.
|
boolean |
isLatest()
Check whether the object is of the current version.
|
String |
toString() |
public VersionOrDeleteMarker(String bucketName, String key, String versionId, boolean isLatest, Date lastModified, Owner owner, String etag, long size, StorageClassEnum storageClass, boolean isDeleteMarker, boolean appendable)
bucketName
- Bucket namekey
- Object nameversionId
- Version IDisLatest
- Identifier indicating whether the object is of the current versionlastModified
- Last modification dateowner
- Owneretag
- ETag of the objectsize
- Object size (in bytes)storageClass
- Storage class of the objectisDeleteMarker
- Whether the versioning object has been deletedappendable
- Whether object is appendablepublic String getKey()
public String getObjectKey()
public String getVersionId()
public boolean isLatest()
public Date getLastModified()
public Owner getOwner()
@Deprecated public String getStorageClass()
public StorageClassEnum getObjectStorageClass()
public String getEtag()
public long getSize()
public boolean isDeleteMarker()
public boolean isAppendable()
public String getBucketName()
Copyright © 2019. All rights reserved.