public final class Bucket extends GenericJson
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()
Modifier and Type | Class and Description |
---|---|
static class |
Bucket.Cors
Model definition for BucketCors.
|
static class |
Bucket.Lifecycle
The bucket's lifecycle configuration.
|
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.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Bucket() |
Modifier and Type | Method and Description |
---|---|
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.
|
Bucket.Lifecycle |
getLifecycle()
The bucket's lifecycle configuration.
|
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 |
setLifecycle(Bucket.Lifecycle lifecycle)
The bucket's lifecycle configuration.
|
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.
|
clone, getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public List<BucketAccessControl> getAcl()
null
.public Bucket setAcl(List<BucketAccessControl> acl)
null
.public List<Bucket.Cors> getCors()
null
.public Bucket setCors(List<Bucket.Cors> cors)
null
.public List<ObjectAccessControl> getDefaultObjectAcl()
null
.public Bucket setDefaultObjectAcl(List<ObjectAccessControl> defaultObjectAcl)
null
.public String getEtag()
null
.public Bucket setEtag(String etag)
null
.public String getId()
null
.public String getKind()
null
.public Bucket setKind(String kind)
null
.public Bucket.Lifecycle getLifecycle()
null
.public Bucket setLifecycle(Bucket.Lifecycle lifecycle)
null
.public String getLocation()
null
.public Bucket setLocation(String location)
null
.public Bucket.Logging getLogging()
null
.public Bucket setLogging(Bucket.Logging logging)
null
.public Long getMetageneration()
null
.public Bucket setMetageneration(Long metageneration)
null
.public String getName()
null
.public Bucket.Owner getOwner()
null
.public Bucket setOwner(Bucket.Owner owner)
null
.public String getSelfLink()
null
.public Bucket setSelfLink(String selfLink)
null
.public String getStorageClass()
null
.public Bucket setStorageClass(String storageClass)
null
.public DateTime getTimeCreated()
null
.public Bucket setTimeCreated(DateTime timeCreated)
null
.public Bucket.Versioning getVersioning()
null
.public Bucket setVersioning(Bucket.Versioning versioning)
null
.public Bucket.Website getWebsite()
null
.public Bucket setWebsite(Bucket.Website website)
null
.