Send feedback
Class BucketInfo.IamConfiguration.Builder (2.42.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public static class BucketInfo . IamConfiguration . Builder
Builder for IamConfiguration
Constructors
Builder()
Methods
build()
public BucketInfo . IamConfiguration build ()
Builds an IamConfiguration
object
setIsBucketPolicyOnlyEnabled(Boolean isBucketPolicyOnlyEnabled) (deprecated)
public BucketInfo . IamConfiguration . Builder setIsBucketPolicyOnlyEnabled ( Boolean isBucketPolicyOnlyEnabled )
Deprecated in favor of setIsUniformBucketLevelAccessEnabled().
Parameter
Name
Description
isBucketPolicyOnlyEnabled
Boolean
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
Name
Description
isUniformBucketLevelAccessEnabled
Boolean
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-10 UTC."}