Class BucketInfo.IamConfiguration.Builder (2.20.1)

public static class BucketInfo.IamConfiguration.Builder

Builder for IamConfiguration

Inheritance

java.lang.Object > BucketInfo.IamConfiguration.Builder

Constructors

Builder()

public Builder()

Methods

build()

public BucketInfo.IamConfiguration build()

Builds an IamConfiguration object

Returns
TypeDescription
BucketInfo.IamConfiguration

setIsBucketPolicyOnlyEnabled(Boolean isBucketPolicyOnlyEnabled)

public BucketInfo.IamConfiguration.Builder setIsBucketPolicyOnlyEnabled(Boolean isBucketPolicyOnlyEnabled)

Deprecated in favor of setIsUniformBucketLevelAccessEnabled().

Parameter
NameDescription
isBucketPolicyOnlyEnabledBoolean
Returns
TypeDescription
BucketInfo.IamConfiguration.Builder

setIsUniformBucketLevelAccessEnabled(Boolean isUniformBucketLevelAccessEnabled)

public BucketInfo.IamConfiguration.Builder setIsUniformBucketLevelAccessEnabled(Boolean isUniformBucketLevelAccessEnabled)

Sets whether uniform bucket-level access is enabled for this bucket. When this is enabled, access to the bucket will be configured through IAM, and legacy ACL policies will not work. When this is first enabled, 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.

Parameter
NameDescription
isUniformBucketLevelAccessEnabledBoolean
Returns
TypeDescription
BucketInfo.IamConfiguration.Builder

setPublicAccessPrevention(BucketInfo.PublicAccessPrevention publicAccessPrevention)

public BucketInfo.IamConfiguration.Builder setPublicAccessPrevention(BucketInfo.PublicAccessPrevention publicAccessPrevention)

Sets the bucket's Public Access Prevention configuration. Currently supported options are PublicAccessPrevention#INHERITED or PublicAccessPrevention#ENFORCED See Also: public-access-prevention

Parameter
NameDescription
publicAccessPreventionBucketInfo.PublicAccessPrevention
Returns
TypeDescription
BucketInfo.IamConfiguration.Builder