@Mutable @NotThreadSafe public static interface PutBucketAclRequest.Builder extends S3Request.Builder, SdkPojo, CopyableBuilder<PutBucketAclRequest.Builder,PutBucketAclRequest>
| Modifier and Type | Method and Description |
|---|---|
PutBucketAclRequest.Builder |
accessControlPolicy(AccessControlPolicy accessControlPolicy)
Contains the elements that set the ACL permissions for an object per grantee.
|
default PutBucketAclRequest.Builder |
accessControlPolicy(Consumer<AccessControlPolicy.Builder> accessControlPolicy)
Contains the elements that set the ACL permissions for an object per grantee.
|
PutBucketAclRequest.Builder |
acl(BucketCannedACL acl)
The canned ACL to apply to the bucket.
|
PutBucketAclRequest.Builder |
acl(String acl)
The canned ACL to apply to the bucket.
|
PutBucketAclRequest.Builder |
bucket(String bucket)
The bucket to which to apply the ACL.
|
PutBucketAclRequest.Builder |
checksumAlgorithm(ChecksumAlgorithm checksumAlgorithm)
Indicates the algorithm used to create the checksum for the request when you use the SDK.
|
PutBucketAclRequest.Builder |
checksumAlgorithm(String checksumAlgorithm)
Indicates the algorithm used to create the checksum for the request when you use the SDK.
|
PutBucketAclRequest.Builder |
contentMD5(String contentMD5)
The Base64 encoded 128-bit
MD5 digest of the data. |
PutBucketAclRequest.Builder |
expectedBucketOwner(String expectedBucketOwner)
The account ID of the expected bucket owner.
|
PutBucketAclRequest.Builder |
grantFullControl(String grantFullControl)
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
|
PutBucketAclRequest.Builder |
grantRead(String grantRead)
Allows grantee to list the objects in the bucket.
|
PutBucketAclRequest.Builder |
grantReadACP(String grantReadACP)
Allows grantee to read the bucket ACL.
|
PutBucketAclRequest.Builder |
grantWrite(String grantWrite)
Allows grantee to create new objects in the bucket.
|
PutBucketAclRequest.Builder |
grantWriteACP(String grantWriteACP)
Allows grantee to write the ACL for the applicable bucket.
|
PutBucketAclRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PutBucketAclRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldNameToField, sdkFieldscopyapplyMutation, buildPutBucketAclRequest.Builder acl(String acl)
The canned ACL to apply to the bucket.
acl - The canned ACL to apply to the bucket.BucketCannedACL,
BucketCannedACLPutBucketAclRequest.Builder acl(BucketCannedACL acl)
The canned ACL to apply to the bucket.
acl - The canned ACL to apply to the bucket.BucketCannedACL,
BucketCannedACLPutBucketAclRequest.Builder accessControlPolicy(AccessControlPolicy accessControlPolicy)
Contains the elements that set the ACL permissions for an object per grantee.
accessControlPolicy - Contains the elements that set the ACL permissions for an object per grantee.default PutBucketAclRequest.Builder accessControlPolicy(Consumer<AccessControlPolicy.Builder> accessControlPolicy)
Contains the elements that set the ACL permissions for an object per grantee.
This is a convenience method that creates an instance of theAccessControlPolicy.Builder avoiding the
need to create one manually via AccessControlPolicy.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to accessControlPolicy(AccessControlPolicy).
accessControlPolicy - a consumer that will call methods on AccessControlPolicy.BuilderaccessControlPolicy(AccessControlPolicy)PutBucketAclRequest.Builder bucket(String bucket)
The bucket to which to apply the ACL.
bucket - The bucket to which to apply the ACL.PutBucketAclRequest.Builder contentMD5(String contentMD5)
The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message
integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
contentMD5 - The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message
integrity check to verify that the request body was not corrupted in transit. For more information, go
to RFC 1864.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
PutBucketAclRequest.Builder checksumAlgorithm(String checksumAlgorithm)
Indicates the algorithm used to create the checksum for the request when you use the SDK. This header will
not provide any additional functionality if you don't use the SDK. When you send this header, there must be a
corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3
fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object
integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
checksumAlgorithm - Indicates the algorithm used to create the checksum for the request when you use the SDK. This header
will not provide any additional functionality if you don't use the SDK. When you send this header,
there must be a corresponding x-amz-checksum or x-amz-trailer header sent.
Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For
more information, see Checking
object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
ChecksumAlgorithm,
ChecksumAlgorithmPutBucketAclRequest.Builder checksumAlgorithm(ChecksumAlgorithm checksumAlgorithm)
Indicates the algorithm used to create the checksum for the request when you use the SDK. This header will
not provide any additional functionality if you don't use the SDK. When you send this header, there must be a
corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3
fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object
integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
checksumAlgorithm - Indicates the algorithm used to create the checksum for the request when you use the SDK. This header
will not provide any additional functionality if you don't use the SDK. When you send this header,
there must be a corresponding x-amz-checksum or x-amz-trailer header sent.
Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For
more information, see Checking
object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
ChecksumAlgorithm,
ChecksumAlgorithmPutBucketAclRequest.Builder grantFullControl(String grantFullControl)
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
grantFullControl - Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.PutBucketAclRequest.Builder grantRead(String grantRead)
Allows grantee to list the objects in the bucket.
grantRead - Allows grantee to list the objects in the bucket.PutBucketAclRequest.Builder grantReadACP(String grantReadACP)
Allows grantee to read the bucket ACL.
grantReadACP - Allows grantee to read the bucket ACL.PutBucketAclRequest.Builder grantWrite(String grantWrite)
Allows grantee to create new objects in the bucket.
For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.
grantWrite - Allows grantee to create new objects in the bucket.
For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.
PutBucketAclRequest.Builder grantWriteACP(String grantWriteACP)
Allows grantee to write the ACL for the applicable bucket.
grantWriteACP - Allows grantee to write the ACL for the applicable bucket.PutBucketAclRequest.Builder expectedBucketOwner(String expectedBucketOwner)
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
expectedBucketOwner - The account ID of the expected bucket owner. If the account ID that you provide does not match the
actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).PutBucketAclRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderoverrideConfiguration - The override configuration.PutBucketAclRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be
given.Copyright © 2026. All rights reserved.