public class COSObjectSummary extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
bucketName
The name of the bucket in which this object is stored
|
protected String |
eTag
Hex encoded MD5 hash of this object's contents, as computed by Qcloud COS
|
protected String |
key
The key under which this object is stored
|
protected Date |
lastModified
The date, according to Qcloud COS, 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 String |
storageClass
The class of storage used by Qcloud COS to store this object
|
| 构造器和说明 |
|---|
COSObjectSummary() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBucketName()
Gets the name of the Qcloud COS bucket in which this object is stored.
|
String |
getETag()
Gets the hex encoded 128-bit MD5 hash of this object's contents as
computed by Qcloud COS.
|
String |
getKey()
Gets the key under which this object is stored in Qcloud COS.
|
Date |
getLastModified()
Gets the date when, according to Qcloud COS, this object
was last modified.
|
Owner |
getOwner()
Gets the owner of this object.
|
long |
getSize()
Gets the size of this object in bytes.
|
String |
getStorageClass()
Gets the storage class used by Qcloud COS for this object.
|
void |
setBucketName(String bucketName)
Sets the name of the Qcloud COS bucket in which this object is stored.
|
void |
setETag(String eTag)
Sets the hex encoded 128-bit MD5 hash of this object's contents as
computed by Qcloud COS.
|
void |
setKey(String key)
Sets the key under which this object is stored in Qcloud COS.
|
void |
setLastModified(Date lastModified)
Sets the date, according to Qcloud COS, 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(String storageClass)
Sets the storage class used by Qcloud COS for this object.
|
protected String bucketName
protected String key
protected String eTag
protected long size
protected Date lastModified
protected String storageClass
protected Owner owner
public String getBucketName()
setBucketName(String)public void setBucketName(String bucketName)
bucketName - The name of the Qcloud COS bucket in which this object is
stored.getBucketName()public String getKey()
setKey(String)public void setKey(String key)
key - The key under which this object is stored in Qcloud COS.getKey()public String getETag()
setETag(String)public void setETag(String eTag)
eTag - The hex encoded 128-bit MD5 hash of this object's contents as
computed by Qcloud COS.getETag()public long getSize()
setSize(long)public void setSize(long size)
size - The size of this object in bytes.getSize()public Date getLastModified()
setLastModified(Date)public void setLastModified(Date lastModified)
lastModified - The date when, according to Qcloud COS, 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 String getStorageClass()
setStorageClass(String)public void setStorageClass(String storageClass)
storageClass - The storage class used by Qcloud COS for this object.getStorageClass()Copyright © 2020. All rights reserved.