public class VersionOrDeleteMarker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VersionOrDeleteMarker.Builder |
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)
Deprecated.
|
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()
Obtain the storage class of the object.
|
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.
|
void |
setKey(String key) |
String |
toString() |
@Deprecated 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()
public String getStorageClass()
public StorageClassEnum getObjectStorageClass()
public String getEtag()
public long getSize()
public boolean isDeleteMarker()
public boolean isAppendable()
public String getBucketName()
public void setKey(String key)
Copyright © 2021. All rights reserved.