public abstract BucketInfo.Builder setDefaultAcl(Iterable<Acl> acl)
Sets the default access control configuration to apply to bucket's blobs when no other
configuration is specified.
See Also: About Access Control Lists
public abstract BucketInfo.Builder setDeleteRules(Iterable<? extends BucketInfo.DeleteRule> rules)
Deprecated.Use #setLifecycleRules(Iterable) instead, as in
setLifecycleRules(Collections.singletonList( new BucketInfo.LifecycleRule(
LifecycleAction.newDeleteAction(), LifecycleCondition.newBuilder().setAge(5).build())));
Sets the bucket's lifecycle configuration as a number of delete rules.
public abstract 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.
See Also: Object Lifecycle Management
public abstract BucketInfo.Builder setLocation(String location)
Sets the bucket's location. Data for blobs in the bucket resides in physical storage within
this region or regions. A list of supported values is available here.
public abstract BucketInfo.Builder setRpo(Rpo rpo)
Sets the bucket's Recovery Point Objective (RPO). This can only be set for a dual-region
bucket, and determines the speed at which data will be replicated between regions. See the
Rpo class for supported values, and here for additional
details.
public abstract BucketInfo.Builder setStorageClass(StorageClass storageClass)
Sets the bucket's storage class. This defines how blobs in the bucket are stored and
determines the SLA and the cost of storage. A list of supported values is available here.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]