Cloud Storage API v1beta1 (revision 34)



com.google.api.services.storage.model
Class Bucket

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.storage.model.Bucket
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class Bucket
extends GenericJson

A bucket.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Storage API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON

Author:
Google, Inc.

Nested Class Summary
static class Bucket.Owner
          The owner of the bucket.
static class Bucket.Website
          The bucket's website configuration.
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Bucket()
           
 
Method Summary
 Bucket clone()
           
 List<BucketAccessControl> getAcl()
          Access controls on the bucket.
 List<ObjectAccessControl> getDefaultObjectAcl()
          Default access controls to apply to new objects when no ACL is provided.
 String getId()
          The name of the bucket.
 String getKind()
          The kind of item this is.
 String getLocation()
          The location of the bucket.
 Bucket.Owner getOwner()
          The owner of the bucket.
 BigInteger getProjectId()
          The project the bucket belongs to.
 String getSelfLink()
          The URI of this bucket.
 DateTime getTimeCreated()
          Creation time of the bucket in RFC 3339 format.
 Bucket.Website getWebsite()
          The bucket's website configuration.
 Bucket set(String fieldName, Object value)
           
 Bucket setAcl(List<BucketAccessControl> acl)
          Access controls on the bucket.
 Bucket setDefaultObjectAcl(List<ObjectAccessControl> defaultObjectAcl)
          Default access controls to apply to new objects when no ACL is provided.
 Bucket setId(String id)
          The name of the bucket.
 Bucket setKind(String kind)
          The kind of item this is.
 Bucket setLocation(String location)
          The location of the bucket.
 Bucket setOwner(Bucket.Owner owner)
          The owner of the bucket.
 Bucket setProjectId(BigInteger projectId)
          The project the bucket belongs to.
 Bucket setSelfLink(String selfLink)
          The URI of this bucket.
 Bucket setTimeCreated(DateTime timeCreated)
          Creation time of the bucket in RFC 3339 format.
 Bucket setWebsite(Bucket.Website website)
          The bucket's website configuration.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bucket

public Bucket()
Method Detail

getAcl

public List<BucketAccessControl> getAcl()
Access controls on the bucket.

Returns:
value or null for none

setAcl

public Bucket setAcl(List<BucketAccessControl> acl)
Access controls on the bucket.

Parameters:
acl - acl or null for none

getDefaultObjectAcl

public List<ObjectAccessControl> getDefaultObjectAcl()
Default access controls to apply to new objects when no ACL is provided.

Returns:
value or null for none

setDefaultObjectAcl

public Bucket setDefaultObjectAcl(List<ObjectAccessControl> defaultObjectAcl)
Default access controls to apply to new objects when no ACL is provided.

Parameters:
defaultObjectAcl - defaultObjectAcl or null for none

getId

public String getId()
The name of the bucket.

Returns:
value or null for none

setId

public Bucket setId(String id)
The name of the bucket.

Parameters:
id - id or null for none

getKind

public String getKind()
The kind of item this is. For buckets, this is always storage#bucket.

Returns:
value or null for none

setKind

public Bucket setKind(String kind)
The kind of item this is. For buckets, this is always storage#bucket.

Parameters:
kind - kind or null for none

getLocation

public String getLocation()
The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.

Returns:
value or null for none

setLocation

public Bucket setLocation(String location)
The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.

Parameters:
location - location or null for none

getOwner

public Bucket.Owner getOwner()
The owner of the bucket. This will always be the project team's owner group.

Returns:
value or null for none

setOwner

public Bucket setOwner(Bucket.Owner owner)
The owner of the bucket. This will always be the project team's owner group.

Parameters:
owner - owner or null for none

getProjectId

public BigInteger getProjectId()
The project the bucket belongs to.

Returns:
value or null for none

setProjectId

public Bucket setProjectId(BigInteger projectId)
The project the bucket belongs to.

Parameters:
projectId - projectId or null for none

getSelfLink

public String getSelfLink()
The URI of this bucket.

Returns:
value or null for none

setSelfLink

public Bucket setSelfLink(String selfLink)
The URI of this bucket.

Parameters:
selfLink - selfLink or null for none

getTimeCreated

public DateTime getTimeCreated()
Creation time of the bucket in RFC 3339 format.

Returns:
value or null for none

setTimeCreated

public Bucket setTimeCreated(DateTime timeCreated)
Creation time of the bucket in RFC 3339 format.

Parameters:
timeCreated - timeCreated or null for none

getWebsite

public Bucket.Website getWebsite()
The bucket's website configuration.

Returns:
value or null for none

setWebsite

public Bucket setWebsite(Bucket.Website website)
The bucket's website configuration.

Parameters:
website - website or null for none

set

public Bucket set(String fieldName,
                  Object value)
Overrides:
set in class GenericJson

clone

public Bucket clone()
Overrides:
clone in class GenericJson