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.Billing
The bucket's billing configuration.
|
static class |
Bucket.Cors
Model definition for BucketCors.
|
static class |
Bucket.Encryption
Encryption configuration used by default for newly inserted objects, when no encryption config is
specified.
|
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.RetentionPolicy
Defines the retention policy for a bucket.
|
static class |
Bucket.Versioning
The bucket's versioning configuration.
|
static class |
Bucket.Website
The bucket's website configuration, controlling how the service behaves when accessing bucket
contents as a web site.
|
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.
|
Bucket.Billing |
getBilling()
The bucket's billing configuration.
|
java.util.List<Bucket.Cors> |
getCors()
The bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
java.lang.Boolean |
getDefaultEventBasedHold()
Defines the default value for Event-Based hold on newly created objects in this bucket.
|
java.util.List<ObjectAccessControl> |
getDefaultObjectAcl()
Default access controls to apply to new objects when no ACL is provided.
|
Bucket.Encryption |
getEncryption()
Encryption configuration used by default for newly inserted objects, when no encryption config
is specified.
|
java.lang.String |
getEtag()
HTTP 1.1 Entity tag for the bucket.
|
java.lang.String |
getId()
The ID of the bucket.
|
java.lang.String |
getKind()
The kind of item this is.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
User-provided labels, in key/value pairs.
|
Bucket.Lifecycle |
getLifecycle()
The bucket's lifecycle configuration.
|
java.lang.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.
|
java.lang.Long |
getMetageneration()
The metadata generation of this bucket.
|
java.lang.String |
getName()
The name of the bucket.
|
Bucket.Owner |
getOwner()
The owner of the bucket.
|
java.math.BigInteger |
getProjectNumber()
The project number of the project the bucket belongs to.
|
Bucket.RetentionPolicy |
getRetentionPolicy()
Defines the retention policy for a bucket.
|
java.lang.String |
getSelfLink()
The URI of this bucket.
|
java.lang.String |
getStorageClass()
The bucket's default storage class, used whenever no storageClass is specified for a newly-
created object.
|
com.google.api.client.util.DateTime |
getTimeCreated()
The creation time of the bucket in RFC 3339 format.
|
com.google.api.client.util.DateTime |
getUpdated()
The modification time of the bucket in RFC 3339 format.
|
Bucket.Versioning |
getVersioning()
The bucket's versioning configuration.
|
Bucket.Website |
getWebsite()
The bucket's website configuration, controlling how the service behaves when accessing bucket
contents as a web site.
|
Bucket |
set(java.lang.String fieldName,
java.lang.Object value) |
Bucket |
setAcl(java.util.List<BucketAccessControl> acl)
Access controls on the bucket.
|
Bucket |
setBilling(Bucket.Billing billing)
The bucket's billing configuration.
|
Bucket |
setCors(java.util.List<Bucket.Cors> cors)
The bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
Bucket |
setDefaultEventBasedHold(java.lang.Boolean defaultEventBasedHold)
Defines the default value for Event-Based hold on newly created objects in this bucket.
|
Bucket |
setDefaultObjectAcl(java.util.List<ObjectAccessControl> defaultObjectAcl)
Default access controls to apply to new objects when no ACL is provided.
|
Bucket |
setEncryption(Bucket.Encryption encryption)
Encryption configuration used by default for newly inserted objects, when no encryption config
is specified.
|
Bucket |
setEtag(java.lang.String etag)
HTTP 1.1 Entity tag for the bucket.
|
Bucket |
setId(java.lang.String id)
The ID of the bucket.
|
Bucket |
setKind(java.lang.String kind)
The kind of item this is.
|
Bucket |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
User-provided labels, in key/value pairs.
|
Bucket |
setLifecycle(Bucket.Lifecycle lifecycle)
The bucket's lifecycle configuration.
|
Bucket |
setLocation(java.lang.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(java.lang.Long metageneration)
The metadata generation of this bucket.
|
Bucket |
setName(java.lang.String name)
The name of the bucket.
|
Bucket |
setOwner(Bucket.Owner owner)
The owner of the bucket.
|
Bucket |
setProjectNumber(java.math.BigInteger projectNumber)
The project number of the project the bucket belongs to.
|
Bucket |
setRetentionPolicy(Bucket.RetentionPolicy retentionPolicy)
Defines the retention policy for a bucket.
|
Bucket |
setSelfLink(java.lang.String selfLink)
The URI of this bucket.
|
Bucket |
setStorageClass(java.lang.String storageClass)
The bucket's default storage class, used whenever no storageClass is specified for a newly-
created object.
|
Bucket |
setTimeCreated(com.google.api.client.util.DateTime timeCreated)
The creation time of the bucket in RFC 3339 format.
|
Bucket |
setUpdated(com.google.api.client.util.DateTime updated)
The modification 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, controlling how the service behaves when accessing bucket
contents as a web site.
|
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 Bucket.Billing getBilling()
null
for nonepublic Bucket setBilling(Bucket.Billing billing)
billing
- billing or null
for nonepublic java.util.List<Bucket.Cors> getCors()
null
for nonepublic Bucket setCors(java.util.List<Bucket.Cors> cors)
cors
- cors or null
for nonepublic java.lang.Boolean getDefaultEventBasedHold()
null
for nonepublic Bucket setDefaultEventBasedHold(java.lang.Boolean defaultEventBasedHold)
defaultEventBasedHold
- defaultEventBasedHold 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 Bucket.Encryption getEncryption()
null
for nonepublic Bucket setEncryption(Bucket.Encryption encryption)
encryption
- encryption or null
for nonepublic java.lang.String getEtag()
null
for nonepublic Bucket setEtag(java.lang.String etag)
etag
- etag 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.util.Map<java.lang.String,java.lang.String> getLabels()
null
for nonepublic Bucket setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- labels or null
for nonepublic Bucket.Lifecycle getLifecycle()
null
for nonepublic Bucket setLifecycle(Bucket.Lifecycle lifecycle)
lifecycle
- lifecycle or null
for nonepublic java.lang.String getLocation()
null
for nonepublic Bucket setLocation(java.lang.String location)
location
- location or null
for nonepublic Bucket.Logging getLogging()
null
for nonepublic Bucket setLogging(Bucket.Logging logging)
logging
- logging or null
for nonepublic java.lang.Long getMetageneration()
null
for nonepublic Bucket setMetageneration(java.lang.Long metageneration)
metageneration
- metageneration or null
for nonepublic java.lang.String getName()
null
for nonepublic Bucket setName(java.lang.String name)
name
- name or null
for nonepublic Bucket.Owner getOwner()
null
for nonepublic Bucket setOwner(Bucket.Owner owner)
owner
- owner or null
for nonepublic java.math.BigInteger getProjectNumber()
null
for nonepublic Bucket setProjectNumber(java.math.BigInteger projectNumber)
projectNumber
- projectNumber or null
for nonepublic Bucket.RetentionPolicy getRetentionPolicy()
null
for nonepublic Bucket setRetentionPolicy(Bucket.RetentionPolicy retentionPolicy)
retentionPolicy
- retentionPolicy or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic Bucket setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic java.lang.String getStorageClass()
null
for nonepublic Bucket setStorageClass(java.lang.String storageClass)
storageClass
- storageClass 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 com.google.api.client.util.DateTime getUpdated()
null
for nonepublic Bucket setUpdated(com.google.api.client.util.DateTime updated)
updated
- updated or null
for nonepublic Bucket.Versioning getVersioning()
null
for nonepublic Bucket setVersioning(Bucket.Versioning versioning)
versioning
- versioning 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