Interface S3BucketConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<S3BucketConfiguration.Builder,
,S3BucketConfiguration> SdkBuilder<S3BucketConfiguration.Builder,
,S3BucketConfiguration> SdkPojo
- Enclosing class:
S3BucketConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionaccessPoints
(Map<String, S3AccessPointConfiguration> accessPoints) The configuration of Amazon S3 access points or multi-region access points for the bucket.bucketAclGrants
(Collection<S3BucketAclGrantConfiguration> bucketAclGrants) The proposed list of ACL grants for the Amazon S3 bucket.bucketAclGrants
(Consumer<S3BucketAclGrantConfiguration.Builder>... bucketAclGrants) The proposed list of ACL grants for the Amazon S3 bucket.bucketAclGrants
(S3BucketAclGrantConfiguration... bucketAclGrants) The proposed list of ACL grants for the Amazon S3 bucket.bucketPolicy
(String bucketPolicy) The proposed bucket policy for the Amazon S3 bucket.default S3BucketConfiguration.Builder
bucketPublicAccessBlock
(Consumer<S3PublicAccessBlockConfiguration.Builder> bucketPublicAccessBlock) The proposed block public access configuration for the Amazon S3 bucket.bucketPublicAccessBlock
(S3PublicAccessBlockConfiguration bucketPublicAccessBlock) The proposed block public access configuration for the Amazon S3 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
-
bucketPolicy
The proposed bucket policy for the Amazon S3 bucket.
- Parameters:
bucketPolicy
- The proposed bucket policy for the Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketAclGrants
S3BucketConfiguration.Builder bucketAclGrants(Collection<S3BucketAclGrantConfiguration> bucketAclGrants) The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
- Parameters:
bucketAclGrants
- The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketAclGrants
The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
- Parameters:
bucketAclGrants
- The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketAclGrants
S3BucketConfiguration.Builder bucketAclGrants(Consumer<S3BucketAclGrantConfiguration.Builder>... bucketAclGrants) The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
This is a convenience method that creates an instance of theS3BucketAclGrantConfiguration.Builder
avoiding the need to create one manually viaS3BucketAclGrantConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobucketAclGrants(List<S3BucketAclGrantConfiguration>)
.- Parameters:
bucketAclGrants
- a consumer that will call methods onS3BucketAclGrantConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bucketPublicAccessBlock
S3BucketConfiguration.Builder bucketPublicAccessBlock(S3PublicAccessBlockConfiguration bucketPublicAccessBlock) The proposed block public access configuration for the Amazon S3 bucket.
- Parameters:
bucketPublicAccessBlock
- The proposed block public access configuration for the Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketPublicAccessBlock
default S3BucketConfiguration.Builder bucketPublicAccessBlock(Consumer<S3PublicAccessBlockConfiguration.Builder> bucketPublicAccessBlock) The proposed block public access configuration for the Amazon S3 bucket.
This is a convenience method that creates an instance of theS3PublicAccessBlockConfiguration.Builder
avoiding the need to create one manually viaS3PublicAccessBlockConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobucketPublicAccessBlock(S3PublicAccessBlockConfiguration)
.- Parameters:
bucketPublicAccessBlock
- a consumer that will call methods onS3PublicAccessBlockConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessPoints
The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket.
- Parameters:
accessPoints
- The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-