Cloud Storage API v1beta2 (revision 1)



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-api-java-client/wiki/Json

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

Author:
Google, Inc.

Nested Class Summary
static class Bucket.Cors
          Model definition for BucketCors.
static class Bucket.Logging
          The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
static class Bucket.Owner
          The owner of the bucket.
static class Bucket.Versioning
          The bucket's versioning configuration.
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
 List<BucketAccessControl> getAcl()
          Access controls on the bucket.
 List<Bucket.Cors> getCors()
          The bucket's Cross-Origin Resource Sharing (CORS) configuration.
 List<ObjectAccessControl> getDefaultObjectAcl()
          Default access controls to apply to new objects when no ACL is provided.
 String getEtag()
          HTTP 1.1 Entity tag for the bucket.
 String getId()
          The ID of the bucket.
 String getKind()
          The kind of item this is.
 String getLocation()
          The location of the bucket.
 Bucket.Logging getLogging()
          The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
 Long getMetageneration()
          The metadata generation of this bucket.
 String getName()
          The name of the bucket.
 Bucket.Owner getOwner()
          The owner of the bucket.
 String getSelfLink()
          The URI of this bucket.
 String getStorageClass()
          The bucket's storage class.
 DateTime getTimeCreated()
          Creation time of the bucket in RFC 3339 format.
 Bucket.Versioning getVersioning()
          The bucket's versioning configuration.
 Bucket.Website getWebsite()
          The bucket's website configuration.
 Bucket setAcl(List<BucketAccessControl> acl)
          Access controls on the bucket.
 Bucket setCors(List<Bucket.Cors> cors)
          The bucket's Cross-Origin Resource Sharing (CORS) configuration.
 Bucket setDefaultObjectAcl(List<ObjectAccessControl> defaultObjectAcl)
          Default access controls to apply to new objects when no ACL is provided.
 Bucket setEtag(String etag)
          HTTP 1.1 Entity tag for the bucket.
 Bucket setId(String id)
          The ID of the bucket.
 Bucket setKind(String kind)
          The kind of item this is.
 Bucket setLocation(String location)
          The location of the bucket.
 Bucket setLogging(Bucket.Logging logging)
          The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
 Bucket setMetageneration(Long metageneration)
          The metadata generation of this bucket.
 Bucket setName(String name)
          The name of the bucket.
 Bucket setOwner(Bucket.Owner owner)
          The owner of the bucket.
 Bucket setSelfLink(String selfLink)
          The URI of this bucket.
 Bucket setStorageClass(String storageClass)
          The bucket's storage class.
 Bucket setTimeCreated(DateTime timeCreated)
          Creation time of the bucket in RFC 3339 format.
 Bucket setVersioning(Bucket.Versioning versioning)
          The bucket's versioning configuration.
 Bucket setWebsite(Bucket.Website website)
          The bucket's website configuration.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, 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. The value returned may be null.


setAcl

public Bucket setAcl(List<BucketAccessControl> acl)
Access controls on the bucket. The value set may be null.


getCors

public List<Bucket.Cors> getCors()
The bucket's Cross-Origin Resource Sharing (CORS) configuration. The value returned may be null.


setCors

public Bucket setCors(List<Bucket.Cors> cors)
The bucket's Cross-Origin Resource Sharing (CORS) configuration. The value set may be null.


getDefaultObjectAcl

public List<ObjectAccessControl> getDefaultObjectAcl()
Default access controls to apply to new objects when no ACL is provided. The value returned may be null.


setDefaultObjectAcl

public Bucket setDefaultObjectAcl(List<ObjectAccessControl> defaultObjectAcl)
Default access controls to apply to new objects when no ACL is provided. The value set may be null.


getEtag

public String getEtag()
HTTP 1.1 Entity tag for the bucket. The value returned may be null.


setEtag

public Bucket setEtag(String etag)
HTTP 1.1 Entity tag for the bucket. The value set may be null.


getId

public String getId()
The ID of the bucket. The value returned may be null.


setId

public Bucket setId(String id)
The ID of the bucket. The value set may be null.


getKind

public String getKind()
The kind of item this is. For buckets, this is always storage#bucket. The value returned may be null.


setKind

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


getLocation

public String getLocation()
The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list. The value returned may be null.


setLocation

public Bucket setLocation(String location)
The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list. The value set may be null.


getLogging

public Bucket.Logging getLogging()
The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs. The value returned may be null.


setLogging

public Bucket setLogging(Bucket.Logging logging)
The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs. The value set may be null.


getMetageneration

public Long getMetageneration()
The metadata generation of this bucket. The value returned may be null.


setMetageneration

public Bucket setMetageneration(Long metageneration)
The metadata generation of this bucket. The value set may be null.


getName

public String getName()
The name of the bucket. The value returned may be null.


setName

public Bucket setName(String name)
The name of the bucket. The value set may be null.


getOwner

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


setOwner

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


getSelfLink

public String getSelfLink()
The URI of this bucket. The value returned may be null.


setSelfLink

public Bucket setSelfLink(String selfLink)
The URI of this bucket. The value set may be null.


getStorageClass

public String getStorageClass()
The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Can be STANDARD or DRA. Defaults to STANDARD. The value returned may be null.


setStorageClass

public Bucket setStorageClass(String storageClass)
The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Can be STANDARD or DRA. Defaults to STANDARD. The value set may be null.


getTimeCreated

public DateTime getTimeCreated()
Creation time of the bucket in RFC 3339 format. The value returned may be null.


setTimeCreated

public Bucket setTimeCreated(DateTime timeCreated)
Creation time of the bucket in RFC 3339 format. The value set may be null.


getVersioning

public Bucket.Versioning getVersioning()
The bucket's versioning configuration. The value returned may be null.


setVersioning

public Bucket setVersioning(Bucket.Versioning versioning)
The bucket's versioning configuration. The value set may be null.


getWebsite

public Bucket.Website getWebsite()
The bucket's website configuration. The value returned may be null.


setWebsite

public Bucket setWebsite(Bucket.Website website)
The bucket's website configuration. The value set may be null.