Interface BucketPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BucketPolicy.Builder,
,BucketPolicy> SdkBuilder<BucketPolicy.Builder,
,BucketPolicy> SdkPojo
- Enclosing class:
BucketPolicy
public static interface BucketPolicy.Builder
extends SdkPojo, CopyableBuilder<BucketPolicy.Builder,BucketPolicy>
-
Method Summary
Modifier and TypeMethodDescriptionallowsPublicReadAccess
(Boolean allowsPublicReadAccess) Specifies whether the bucket policy allows the general public to have read access to the bucket.allowsPublicWriteAccess
(Boolean allowsPublicWriteAccess) Specifies whether the bucket policy allows the general public to have write access to 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
-
allowsPublicReadAccess
Specifies whether the bucket policy allows the general public to have read access to the bucket.
- Parameters:
allowsPublicReadAccess
- Specifies whether the bucket policy allows the general public to have read access to the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowsPublicWriteAccess
Specifies whether the bucket policy allows the general public to have write access to the bucket.
- Parameters:
allowsPublicWriteAccess
- Specifies whether the bucket policy allows the general public to have write access to the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-