public class BucketSummary extends Object
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.
| Constructor and Description |
|---|
BucketSummary()
Constructs a bucket without any name specified.
|
BucketSummary(String name)
Creates a bucket with a name.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreationDate()
Gets the bucket's creation date.
|
String |
getLocation()
Gets the location of the bucket.
|
String |
getName()
Gets the name of the bucket.
|
void |
setCreationDate(Date creationDate)
For internal use only.
|
void |
setLocation(String location)
Sets the location of the bucket.
|
void |
setName(String name)
Sets the name of the bucket.
|
String |
toString() |
public BucketSummary()
public BucketSummary(String name)
name - The name for the bucket.public String getName()
public void setName(String name)
name - The name for the bucket.public Date getCreationDate()
null if the creation date is not known.null if not known.public void setCreationDate(Date creationDate)
creationDate - The bucket's creation date.public String getLocation()
public void setLocation(String location)
location - The location for the bucket.Copyright © 2022. All rights reserved.