类 BosObjectSummary
- java.lang.Object
-
- com.baidubce.services.bos.model.BosObjectSummary
-
public class BosObjectSummary extends Object
Contains the summary of an object stored in a Baidu Bos bucket. This object doesn't contain contain the object's full metadata or any of its contents.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected StringbucketNameThe name of the bucket in which this object is stored.protected StringeTagHex encoded MD5 hash of this object's contents, as computed by Baidu Bos.protected StringkeyThe key under which this object is stored.protected DatelastModifiedThe date, according to Baidu Bos, when this object was last modified.protected UserownerThe user of this object - can be null if the requester doesn't have permission to view object ownership information.protected longsizeThe size of this object, in bytes.protected StringstorageClassThe storage class of object.
-
构造器概要
构造器 构造器 说明 BosObjectSummary()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetBucketName()Gets the name of the Baidu Bos bucket in which this object is stored.StringgetETag()Gets the hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.StringgetKey()Gets the key under which this object is stored in Baidu Bos.DategetLastModified()Gets the date when, according to Baidu Bos, this object was last modified.UsergetOwner()Gets the owner of this object.longgetSize()Gets the size of this object in bytes.StringgetStorageClass()Gets the storageClass of this object.voidsetBucketName(String bucketName)Sets the name of the Baidu Bos bucket in which this object is stored.voidsetETag(String eTag)Sets the hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.voidsetKey(String key)Sets the key under which this object is stored in Baidu Bos.voidsetLastModified(Date lastModified)Sets the date, according to Baidu Bos, this object was last modified.voidsetOwner(User owner)Sets the owner of this object.voidsetSize(long size)Sets the size of this object in bytes.voidsetStorageClass(String storageClass)Sets the storageClass of this object.StringtoString()
-
-
-
字段详细资料
-
bucketName
protected String bucketName
The name of the bucket in which this object is stored.
-
key
protected String key
The key under which this object is stored.
-
eTag
protected String eTag
Hex encoded MD5 hash of this object's contents, as computed by Baidu Bos.
-
size
protected long size
The size of this object, in bytes.
-
lastModified
protected Date lastModified
The date, according to Baidu Bos, when this object was last modified.
-
owner
protected User owner
The user of this object - can be null if the requester doesn't have permission to view object ownership information.
-
storageClass
protected String storageClass
The storage class of object.
-
-
方法详细资料
-
getBucketName
public String getBucketName()
Gets the name of the Baidu Bos bucket in which this object is stored.- 返回:
- The name of the Baidu Bos bucket in which this object is stored.
-
setBucketName
public void setBucketName(String bucketName)
Sets the name of the Baidu Bos bucket in which this object is stored.- 参数:
bucketName- The name of the Baidu Bos bucket in which this object is stored.
-
getKey
public String getKey()
Gets the key under which this object is stored in Baidu Bos.- 返回:
- The key under which this object is stored in Baidu Bos.
-
setKey
public void setKey(String key)
Sets the key under which this object is stored in Baidu Bos.- 参数:
key- The key under which this object is stored in Baidu Bos.
-
getETag
public String getETag()
Gets the hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.- 返回:
- The hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.
-
setETag
public void setETag(String eTag)
Sets the hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.- 参数:
eTag- The hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.
-
getSize
public long getSize()
Gets the size of this object in bytes.- 返回:
- The size of this object in bytes.
-
setSize
public void setSize(long size)
Sets the size of this object in bytes.- 参数:
size- The size of this object in bytes.
-
getLastModified
public Date getLastModified()
Gets the date when, according to Baidu Bos, this object was last modified.- 返回:
- The date when, according to Baidu Bos, this object was last modified.
-
setLastModified
public void setLastModified(Date lastModified)
Sets the date, according to Baidu Bos, this object was last modified.- 参数:
lastModified- The date when, according to Baidu Bos, this object was last modified.
-
getOwner
public User getOwner()
Gets the owner of this object.- 返回:
- The owner of this object.
-
setOwner
public void setOwner(User owner)
Sets the owner of this object.- 参数:
owner- The owner of this object.
-
getStorageClass
public String getStorageClass()
Gets the storageClass of this object.- 返回:
- The storageClass of this object.
-
setStorageClass
public void setStorageClass(String storageClass)
Sets the storageClass of this object.- 参数:
storageClass- The storageClass of this object.
-
-