Interface BucketLevelPermissions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BucketLevelPermissions.Builder,
,BucketLevelPermissions> SdkBuilder<BucketLevelPermissions.Builder,
,BucketLevelPermissions> SdkPojo
- Enclosing class:
BucketLevelPermissions
-
Method Summary
Modifier and TypeMethodDescriptiondefault BucketLevelPermissions.Builder
accessControlList
(Consumer<AccessControlList.Builder> accessControlList) The permissions settings of the access control list (ACL) for the bucket.accessControlList
(AccessControlList accessControlList) The permissions settings of the access control list (ACL) for the bucket.default BucketLevelPermissions.Builder
blockPublicAccess
(Consumer<BlockPublicAccess.Builder> blockPublicAccess) The block public access settings for the bucket.blockPublicAccess
(BlockPublicAccess blockPublicAccess) The block public access settings for the bucket.default BucketLevelPermissions.Builder
bucketPolicy
(Consumer<BucketPolicy.Builder> bucketPolicy) The permissions settings of the bucket policy for the bucket.bucketPolicy
(BucketPolicy bucketPolicy) The permissions settings of the bucket policy for the bucket.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
accessControlList
The permissions settings of the access control list (ACL) for the bucket. This value is null if an ACL hasn't been defined for the bucket.
- Parameters:
accessControlList
- The permissions settings of the access control list (ACL) for the bucket. This value is null if an ACL hasn't been defined for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlList
default BucketLevelPermissions.Builder accessControlList(Consumer<AccessControlList.Builder> accessControlList) The permissions settings of the access control list (ACL) for the bucket. This value is null if an ACL hasn't been defined for the bucket.
This is a convenience method that creates an instance of theAccessControlList.Builder
avoiding the need to create one manually viaAccessControlList.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessControlList(AccessControlList)
.- Parameters:
accessControlList
- a consumer that will call methods onAccessControlList.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
blockPublicAccess
The block public access settings for the bucket.
- Parameters:
blockPublicAccess
- The block public access settings for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockPublicAccess
default BucketLevelPermissions.Builder blockPublicAccess(Consumer<BlockPublicAccess.Builder> blockPublicAccess) The block public access settings for the bucket.
This is a convenience method that creates an instance of theBlockPublicAccess.Builder
avoiding the need to create one manually viaBlockPublicAccess.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockPublicAccess(BlockPublicAccess)
.- Parameters:
blockPublicAccess
- a consumer that will call methods onBlockPublicAccess.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bucketPolicy
The permissions settings of the bucket policy for the bucket. This value is null if a bucket policy hasn't been defined for the bucket.
- Parameters:
bucketPolicy
- The permissions settings of the bucket policy for the bucket. This value is null if a bucket policy hasn't been defined for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketPolicy
The permissions settings of the bucket policy for the bucket. This value is null if a bucket policy hasn't been defined for the bucket.
This is a convenience method that creates an instance of theBucketPolicy.Builder
avoiding the need to create one manually viaBucketPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobucketPolicy(BucketPolicy)
.- Parameters:
bucketPolicy
- a consumer that will call methods onBucketPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-