public class BosObjectSummary extends Object
| Modifier and Type | Field and Description |
|---|---|
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 Baidu Bos.
|
protected String |
key
The key under which this object is stored.
|
protected Date |
lastModified
The date, according to Baidu Bos, when this object was last modified.
|
protected User |
owner
The user 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 storage class of object.
|
| Constructor and Description |
|---|
BosObjectSummary() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBucketName()
Gets the name of the Baidu Bos 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 Baidu Bos.
|
String |
getKey()
Gets the key under which this object is stored in Baidu Bos.
|
Date |
getLastModified()
Gets the date when, according to Baidu Bos, this object was last modified.
|
User |
getOwner()
Gets the owner of this object.
|
long |
getSize()
Gets the size of this object in bytes.
|
String |
getStorageClass()
Gets the storageClass of this object.
|
void |
setBucketName(String bucketName)
Sets the name of the Baidu Bos 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 Baidu Bos.
|
void |
setKey(String key)
Sets the key under which this object is stored in Baidu Bos.
|
void |
setLastModified(Date lastModified)
Sets the date, according to Baidu Bos, this object was last modified.
|
void |
setOwner(User 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 storageClass of this object.
|
String |
toString() |
protected String bucketName
protected String key
protected String eTag
protected long size
protected Date lastModified
protected User owner
protected String storageClass
public String getBucketName()
public void setBucketName(String bucketName)
bucketName - The name of the Baidu Bos bucket in which this object is stored.public String getKey()
public void setKey(String key)
key - The key under which this object is stored in Baidu Bos.public String getETag()
public void setETag(String eTag)
eTag - The hex encoded 128-bit MD5 hash of this object's contents as computed by Baidu Bos.public long getSize()
public void setSize(long size)
size - The size of this object in bytes.public Date getLastModified()
public void setLastModified(Date lastModified)
lastModified - The date when, according to Baidu Bos, this object was last modified.public User getOwner()
public void setOwner(User owner)
owner - The owner of this object.public String getStorageClass()
public void setStorageClass(String storageClass)
storageClass - The storageClass of this object.Copyright © 2023. All rights reserved.