public static class BucketInfo.IamConfiguration.Builder extends Object
IamConfiguration
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BucketInfo.IamConfiguration |
build()
Builds an
IamConfiguration object |
BucketInfo.IamConfiguration.Builder |
setIsBucketPolicyOnlyEnabled(Boolean isBucketPolicyOnlyEnabled)
Deprecated.
|
BucketInfo.IamConfiguration.Builder |
setIsUniformBucketLevelAccessEnabled(Boolean isUniformBucketLevelAccessEnabled)
Sets whether uniform bucket-level access is enabled for this bucket.
|
BucketInfo.IamConfiguration.Builder |
setPublicAccessPrevention(BucketInfo.PublicAccessPrevention publicAccessPrevention)
Sets the bucket's Public Access Prevention configuration.
|
@Deprecated public BucketInfo.IamConfiguration.Builder setIsBucketPolicyOnlyEnabled(Boolean isBucketPolicyOnlyEnabled)
public BucketInfo.IamConfiguration.Builder setIsUniformBucketLevelAccessEnabled(Boolean isUniformBucketLevelAccessEnabled)
uniformBucketLevelAccess.lockedTime
will be set by the
API automatically. This field can then be disabled until the time specified, after which it
will become immutable and calls to change it will fail. If this is enabled, calls to access
legacy ACL information will fail.public BucketInfo.IamConfiguration.Builder setPublicAccessPrevention(BucketInfo.PublicAccessPrevention publicAccessPrevention)
BucketInfo.PublicAccessPrevention.INHERITED
or BucketInfo.PublicAccessPrevention.ENFORCED
public BucketInfo.IamConfiguration build()
IamConfiguration
objectCopyright © 2023 Google LLC. All rights reserved.