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: 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 for a bucket.
|
static class |
Bucket.IamConfiguration
The bucket's IAM configuration.
|
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
The bucket's retention policy.
|
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.
|
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.
|
Bucket.Billing |
getBilling()
The bucket's billing configuration.
|
List<Bucket.Cors> |
getCors()
The bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
Boolean |
getDefaultEventBasedHold()
The default value for event-based hold on newly created objects in this bucket.
|
List<ObjectAccessControl> |
getDefaultObjectAcl()
Default access controls to apply to new objects when no ACL is provided.
|
Bucket.Encryption |
getEncryption()
Encryption configuration for a bucket.
|
String |
getEtag()
HTTP 1.1 Entity tag for the bucket.
|
Bucket.IamConfiguration |
getIamConfiguration()
The bucket's IAM configuration.
|
String |
getId()
The ID of the bucket.
|
String |
getKind()
The kind of item this is.
|
Map<String,String> |
getLabels()
User-provided labels, in key/value pairs.
|
Bucket.Lifecycle |
getLifecycle()
The bucket's lifecycle configuration.
|
String |
getLocation()
The location of the bucket.
|
String |
getLocationType()
The type of the bucket location.
|
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.
|
BigInteger |
getProjectNumber()
The project number of the project the bucket belongs to.
|
Bucket.RetentionPolicy |
getRetentionPolicy()
The bucket's retention policy.
|
String |
getSelfLink()
The URI of this bucket.
|
String |
getStorageClass()
The bucket's default storage class, used whenever no storageClass is specified for a newly-
created object.
|
DateTime |
getTimeCreated()
The creation time of the bucket in RFC 3339 format.
|
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.
|
List<String> |
getZoneAffinity()
The zone or zones from which the bucket is intended to use zonal quota.
|
Boolean |
getZoneSeparation()
If set, objects placed in this bucket are required to be separated by disaster domain.
|
Bucket |
set(String fieldName,
Object value) |
Bucket |
setAcl(List<BucketAccessControl> acl)
Access controls on the bucket.
|
Bucket |
setBilling(Bucket.Billing billing)
The bucket's billing configuration.
|
Bucket |
setCors(List<Bucket.Cors> cors)
The bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
Bucket |
setDefaultEventBasedHold(Boolean defaultEventBasedHold)
The default value for event-based hold on newly created objects in this bucket.
|
Bucket |
setDefaultObjectAcl(List<ObjectAccessControl> defaultObjectAcl)
Default access controls to apply to new objects when no ACL is provided.
|
Bucket |
setEncryption(Bucket.Encryption encryption)
Encryption configuration for a bucket.
|
Bucket |
setEtag(String etag)
HTTP 1.1 Entity tag for the bucket.
|
Bucket |
setIamConfiguration(Bucket.IamConfiguration iamConfiguration)
The bucket's IAM configuration.
|
Bucket |
setId(String id)
The ID of the bucket.
|
Bucket |
setKind(String kind)
The kind of item this is.
|
Bucket |
setLabels(Map<String,String> labels)
User-provided labels, in key/value pairs.
|
Bucket |
setLifecycle(Bucket.Lifecycle lifecycle)
The bucket's lifecycle configuration.
|
Bucket |
setLocation(String location)
The location of the bucket.
|
Bucket |
setLocationType(String locationType)
The type of the bucket location.
|
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 |
setProjectNumber(BigInteger projectNumber)
The project number of the project the bucket belongs to.
|
Bucket |
setRetentionPolicy(Bucket.RetentionPolicy retentionPolicy)
The bucket's retention policy.
|
Bucket |
setSelfLink(String selfLink)
The URI of this bucket.
|
Bucket |
setStorageClass(String storageClass)
The bucket's default storage class, used whenever no storageClass is specified for a newly-
created object.
|
Bucket |
setTimeCreated(DateTime timeCreated)
The creation time of the bucket in RFC 3339 format.
|
Bucket |
setUpdated(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.
|
Bucket |
setZoneAffinity(List<String> zoneAffinity)
The zone or zones from which the bucket is intended to use zonal quota.
|
Bucket |
setZoneSeparation(Boolean zoneSeparation)
If set, objects placed in this bucket are required to be separated by disaster domain.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, 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 Bucket.Billing getBilling()
null
for nonepublic Bucket setBilling(Bucket.Billing billing)
billing
- billing or null
for nonepublic List<Bucket.Cors> getCors()
null
for nonepublic Bucket setCors(List<Bucket.Cors> cors)
cors
- cors or null
for nonepublic Boolean getDefaultEventBasedHold()
null
for nonepublic Bucket setDefaultEventBasedHold(Boolean defaultEventBasedHold)
defaultEventBasedHold
- defaultEventBasedHold or null
for nonepublic List<ObjectAccessControl> getDefaultObjectAcl()
null
for nonepublic Bucket setDefaultObjectAcl(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 String getEtag()
null
for nonepublic Bucket setEtag(String etag)
etag
- etag or null
for nonepublic Bucket.IamConfiguration getIamConfiguration()
null
for nonepublic Bucket setIamConfiguration(Bucket.IamConfiguration iamConfiguration)
iamConfiguration
- iamConfiguration or null
for nonepublic String getId()
null
for nonepublic Bucket setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic Bucket setKind(String kind)
kind
- kind or null
for nonepublic Map<String,String> getLabels()
null
for nonepublic Bucket setLabels(Map<String,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 String getLocation()
null
for nonepublic Bucket setLocation(String location)
location
- location or null
for nonepublic String getLocationType()
null
for nonepublic Bucket setLocationType(String locationType)
locationType
- locationType or null
for nonepublic Bucket.Logging getLogging()
null
for nonepublic Bucket setLogging(Bucket.Logging logging)
logging
- logging or null
for nonepublic Long getMetageneration()
null
for nonepublic Bucket setMetageneration(Long metageneration)
metageneration
- metageneration or null
for nonepublic String getName()
null
for nonepublic Bucket setName(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 BigInteger getProjectNumber()
null
for nonepublic Bucket setProjectNumber(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 String getSelfLink()
null
for nonepublic Bucket setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getStorageClass()
null
for nonepublic Bucket setStorageClass(String storageClass)
storageClass
- storageClass or null
for nonepublic DateTime getTimeCreated()
null
for nonepublic Bucket setTimeCreated(DateTime timeCreated)
timeCreated
- timeCreated or null
for nonepublic DateTime getUpdated()
null
for nonepublic Bucket setUpdated(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 List<String> getZoneAffinity()
null
for nonepublic Bucket setZoneAffinity(List<String> zoneAffinity)
zoneAffinity
- zoneAffinity or null
for nonepublic Boolean getZoneSeparation()
null
for nonepublic Bucket setZoneSeparation(Boolean zoneSeparation)
zoneSeparation
- zoneSeparation or null
for nonepublic Bucket set(String fieldName, Object value)
set
in class GenericJson
public Bucket clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.