org.jets3t.service.model
Class GSBucket
java.lang.Object
org.jets3t.service.model.BaseStorageItem
org.jets3t.service.model.StorageBucket
org.jets3t.service.model.GSBucket
public class GSBucket
- extends StorageBucket
Represents a bucket in the Google Storage service.
- Author:
- James Murty
Constructor Summary |
GSBucket()
Create a bucket without any name or location specified |
GSBucket(java.lang.String name)
Create a bucket with a name. |
Methods inherited from class org.jets3t.service.model.BaseStorageItem |
addAllMetadata, addMetadata, addMetadata, addMetadata, containsMetadata, getMetadata, getMetadataMap, getName, getOwner, removeMetadata, replaceAllMetadata, setName, setOwner |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GSBucket
public GSBucket()
- Create a bucket without any name or location specified
GSBucket
public GSBucket(java.lang.String name)
- Create a bucket with a name. All buckets share a single namespace,
so choose a unique name for your bucket.
- Parameters:
name
- the name for the bucket
toString
public java.lang.String toString()
- Overrides:
toString
in class StorageBucket
getAcl
public GSAccessControlList getAcl()
- Overrides:
getAcl
in class StorageBucket
- Returns:
- the bucket's Access Control List, or null if it is unknown.
setAcl
public void setAcl(GSAccessControlList acl)
- Sets the bucket's Access Control List - this should only be used internally
by JetS3t methods that retrieve information directly from the service.
- Parameters:
acl
-
cast
public static GSBucket[] cast(StorageBucket[] buckets)