类 BucketSummary
- java.lang.Object
-
- com.baidubce.services.bos.model.BucketSummary
-
public class BucketSummary extends Object
Represents an Baidu Bos bucket.Every object stored in Baidu Bos is contained within a bucket. Buckets partition the namespace of objects stored in Baidu Bos at the top level. Within a bucket, any name can be used for objects. However, bucket names must be unique across all of Baidu Bos.
There are no limits to the number of objects that can be stored in a bucket. Performance does not vary based on the number of buckets used. Store all objects within a single bucket or organize them across several buckets.
-
-
构造器概要
构造器 构造器 说明 BucketSummary()Constructs a bucket without any name specified.BucketSummary(String name)Creates a bucket with a name.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DategetCreationDate()Gets the bucket's creation date.StringgetLocation()Gets the location of the bucket.StringgetName()Gets the name of the bucket.voidsetCreationDate(Date creationDate)For internal use only.voidsetLocation(String location)Sets the location of the bucket.voidsetName(String name)Sets the name of the bucket.StringtoString()
-
-
-
构造器详细资料
-
BucketSummary
public BucketSummary()
Constructs a bucket without any name specified.
-
BucketSummary
public BucketSummary(String name)
Creates a bucket with a name. All buckets in Baidu Bos share a single namespace; ensure the bucket is given a unique name.- 参数:
name- The name for the bucket.
-
-
方法详细资料
-
getName
public String getName()
Gets the name of the bucket.- 返回:
- The name of this bucket.
-
setName
public void setName(String name)
Sets the name of the bucket. All buckets in Baidu Bos share a single namespace; ensure the bucket is given a unique name.- 参数:
name- The name for the bucket.
-
getCreationDate
public Date getCreationDate()
Gets the bucket's creation date. Returnsnullif the creation date is not known.- 返回:
- The bucket's creation date, or
nullif not known.
-
setCreationDate
public void setCreationDate(Date creationDate)
For internal use only. Sets the bucket's creation date in Bos.- 参数:
creationDate- The bucket's creation date.
-
getLocation
public String getLocation()
Gets the location of the bucket.- 返回:
- The location of this bucket.
-
setLocation
public void setLocation(String location)
Sets the location of the bucket. All buckets in Baidu Bos share a single namespace; ensure the bucket is given a unique name.- 参数:
location- The location for the bucket.
-
-