public class Bucket extends Object implements Serializable
Constructor and Description |
---|
Bucket()
Constructs a bucket without any name specified.
|
Bucket(String name)
Creates a bucket with a name.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketType() |
Date |
getCreationDate()
Gets the bucket's creation date.
|
String |
getLocation() |
String |
getName()
Gets the name of the bucket.
|
Owner |
getOwner()
Gets the bucket's owner.
|
String |
getType() |
void |
setBucketType(String bucketType) |
void |
setCreationDate(Date creationDate)
For internal use only.
|
void |
setLocation(String location) |
void |
setName(String name)
Sets the name of the bucket.
|
void |
setOwner(Owner owner)
For internal use only.
|
void |
setType(String type) |
String |
toString() |
public Bucket()
Bucket(String)
public String toString()
toString
in class 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.public String getLocation()
public void setLocation(String location)
public void setBucketType(String bucketType)
public String getBucketType()
public void setType(String type)
public String getType()
Copyright © 2024. All rights reserved.