public class Bucket extends Object implements Serializable
构造器和说明 |
---|
Bucket()
Constructs a bucket without any name specified.
|
Bucket(String name)
Creates a bucket with a name.
|
限定符和类型 | 方法和说明 |
---|---|
Date |
getCreationDate()
Gets the bucket's creation date.
|
String |
getName()
Gets the name of the bucket.
|
Owner |
getOwner()
Gets the bucket's owner.
|
void |
setCreationDate(Date creationDate)
For internal use only.
|
void |
setName(String name)
Sets the name of the bucket.
|
void |
setOwner(Owner owner)
For internal use only.
|
String |
toString() |
public Bucket()
Bucket(String)
public String toString()
toString
在类中 Object
Object.toString()
public Owner getOwner()
null
if the bucket's owner is unknown.null
if it is unknown.setOwner(Owner)
public void setOwner(Owner owner)
owner
- The bucket's owner.getOwner()
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 getName()
setName(String)
public void setName(String name)
name
- The name for the bucket.Copyright © 2017. All rights reserved.