public final class Bucket
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/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.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Bucket() |
Modifier and Type | Method and Description |
---|---|
Bucket |
clone() |
java.util.List<BucketAccessControl> |
getAcl()
Access controls on the bucket.
|
java.util.List<ObjectAccessControl> |
getDefaultObjectAcl()
Default access controls to apply to new objects when no ACL is provided.
|
java.lang.String |
getId()
The name of the bucket.
|
java.lang.String |
getKind()
The kind of item this is.
|
java.lang.String |
getLocation()
The location of the bucket.
|
Bucket.Owner |
getOwner()
The owner of the bucket.
|
java.math.BigInteger |
getProjectId()
The project the bucket belongs to.
|
java.lang.String |
getSelfLink()
The URI of this bucket.
|
com.google.api.client.util.DateTime |
getTimeCreated()
Creation time of the bucket in RFC 3339 format.
|
Bucket.Website |
getWebsite()
The bucket's website configuration.
|
Bucket |
set(java.lang.String fieldName,
java.lang.Object value) |
Bucket |
setAcl(java.util.List<BucketAccessControl> acl)
Access controls on the bucket.
|
Bucket |
setDefaultObjectAcl(java.util.List<ObjectAccessControl> defaultObjectAcl)
Default access controls to apply to new objects when no ACL is provided.
|
Bucket |
setId(java.lang.String id)
The name of the bucket.
|
Bucket |
setKind(java.lang.String kind)
The kind of item this is.
|
Bucket |
setLocation(java.lang.String location)
The location of the bucket.
|
Bucket |
setOwner(Bucket.Owner owner)
The owner of the bucket.
|
Bucket |
setProjectId(java.math.BigInteger projectId)
The project the bucket belongs to.
|
Bucket |
setSelfLink(java.lang.String selfLink)
The URI of this bucket.
|
Bucket |
setTimeCreated(com.google.api.client.util.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
public java.util.List<BucketAccessControl> getAcl()
null
for nonepublic Bucket setAcl(java.util.List<BucketAccessControl> acl)
acl
- acl or null
for nonepublic java.util.List<ObjectAccessControl> getDefaultObjectAcl()
null
for nonepublic Bucket setDefaultObjectAcl(java.util.List<ObjectAccessControl> defaultObjectAcl)
defaultObjectAcl
- defaultObjectAcl or null
for nonepublic java.lang.String getId()
null
for nonepublic Bucket setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic Bucket setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getLocation()
null
for nonepublic Bucket setLocation(java.lang.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 java.math.BigInteger getProjectId()
null
for nonepublic Bucket setProjectId(java.math.BigInteger projectId)
projectId
- projectId or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic Bucket setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic com.google.api.client.util.DateTime getTimeCreated()
null
for nonepublic Bucket setTimeCreated(com.google.api.client.util.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(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Bucket clone()
clone
in class com.google.api.client.json.GenericJson