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 JSON API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
Bucket.Owner
The owner of the bucket.
|
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 |
---|---|
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.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<BucketAccessControl> getAcl()
null
for nonepublic Bucket setAcl(List<BucketAccessControl> acl)
acl
- acl or null
for nonepublic List<ObjectAccessControl> getDefaultObjectAcl()
null
for nonepublic Bucket setDefaultObjectAcl(List<ObjectAccessControl> defaultObjectAcl)
defaultObjectAcl
- defaultObjectAcl or null
for nonepublic String getId()
null
for nonepublic String getKind()
null
for nonepublic Bucket setKind(String kind)
kind
- kind or null
for nonepublic String getLocation()
null
for nonepublic Bucket setLocation(String location)
location
- location or null
for nonepublic Bucket.Owner getOwner()
null
for nonepublic Bucket setOwner(Bucket.Owner owner)
owner
- owner or null
for nonepublic BigInteger getProjectId()
null
for nonepublic Bucket setProjectId(BigInteger projectId)
projectId
- projectId or null
for nonepublic String getSelfLink()
null
for nonepublic Bucket setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic DateTime getTimeCreated()
null
for nonepublic Bucket setTimeCreated(DateTime timeCreated)
timeCreated
- timeCreated or null
for nonepublic Bucket.Website getWebsite()
null
for nonepublic Bucket setWebsite(Bucket.Website website)
website
- website or null
for nonepublic Bucket set(String fieldName, Object value)
set
in class GenericJson
public Bucket clone()
clone
in class GenericJson