Package | Description |
---|---|
com.google.cloud.storage |
A client for Cloud Storage - Unified object storage.
|
Modifier and Type | Class and Description |
---|---|
static class |
Bucket.Builder
Builder for
Bucket . |
Modifier and Type | Method and Description |
---|---|
static BucketInfo.Builder |
BucketInfo.newBuilder(String name)
Returns a
BucketInfo builder where the bucket's name is set to the provided name. |
abstract BucketInfo.Builder |
BucketInfo.Builder.setAcl(Iterable<Acl> acl)
Sets the bucket's access control configuration.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setCors(Iterable<Cors> cors)
Sets the bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setDefaultAcl(Iterable<Acl> acl)
Sets the default access control configuration to apply to bucket's blobs when no other
configuration is specified.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setDefaultEventBasedHold(Boolean defaultEventBasedHold)
Sets the default event-based hold for this bucket.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setDefaultKmsKeyName(String defaultKmsKeyName)
Sets the default Cloud KMS key name for this bucket.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setDeleteRules(Iterable<? extends BucketInfo.DeleteRule> rules)
Deprecated.
Use
setLifecycleRules instead, as in setLifecycleRules(Collections.singletonList( new BucketInfo.LifecycleRule(
LifecycleAction.newDeleteAction(), LifecycleCondition.newBuilder().setAge(5).build()))); |
abstract BucketInfo.Builder |
BucketInfo.Builder.setIamConfiguration(BucketInfo.IamConfiguration iamConfiguration)
Sets the IamConfiguration to specify whether IAM access should be enabled.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setIndexPage(String indexPage)
Sets the bucket's website index page.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setLabels(Map<String,String> labels)
Sets the label of this bucket.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setLifecycleRules(Iterable<? extends BucketInfo.LifecycleRule> rules)
Sets the bucket's lifecycle configuration as a number of lifecycle rules, consisting of an
action and a condition.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setLocation(String location)
Sets the bucket's location.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setLogging(BucketInfo.Logging logging) |
abstract BucketInfo.Builder |
BucketInfo.Builder.setName(String name)
Sets the bucket's name.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setNotFoundPage(String notFoundPage)
Sets the custom object to return when a requested resource is not found.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setRequesterPays(Boolean requesterPays)
Sets whether a user accessing the bucket or an object it contains should assume the transit
costs related to the access.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setRetentionPeriod(Long retentionPeriod)
If policy is not locked this value can be cleared, increased, and decreased.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setStorageClass(StorageClass storageClass)
Sets the bucket's storage class.
|
abstract BucketInfo.Builder |
BucketInfo.Builder.setVersioningEnabled(Boolean enable)
Sets whether versioning should be enabled for this bucket.
|
BucketInfo.Builder |
BucketInfo.toBuilder()
Returns a builder for the current bucket.
|
Copyright © 2019 Google LLC. All rights reserved.