public static interface PutBucketOwnershipControlsRequest.Builder extends S3Request.Builder, SdkPojo, CopyableBuilder<PutBucketOwnershipControlsRequest.Builder,PutBucketOwnershipControlsRequest>
| Modifier and Type | Method and Description |
|---|---|
PutBucketOwnershipControlsRequest.Builder |
bucket(String bucket)
The name of the Amazon S3 bucket whose
OwnershipControls you want to set. |
PutBucketOwnershipControlsRequest.Builder |
contentMD5(String contentMD5)
The MD5 hash of the
OwnershipControls request body. |
PutBucketOwnershipControlsRequest.Builder |
expectedBucketOwner(String expectedBucketOwner)
The account ID of the expected bucket owner.
|
PutBucketOwnershipControlsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutBucketOwnershipControlsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
default PutBucketOwnershipControlsRequest.Builder |
ownershipControls(Consumer<OwnershipControls.Builder> ownershipControls)
The
OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want
to apply to this Amazon S3 bucket. |
PutBucketOwnershipControlsRequest.Builder |
ownershipControls(OwnershipControls ownershipControls)
The
OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want
to apply to this Amazon S3 bucket. |
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPutBucketOwnershipControlsRequest.Builder bucket(String bucket)
The name of the Amazon S3 bucket whose OwnershipControls you want to set.
bucket - The name of the Amazon S3 bucket whose OwnershipControls you want to set.PutBucketOwnershipControlsRequest.Builder contentMD5(String contentMD5)
The MD5 hash of the OwnershipControls request body.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
contentMD5 - The MD5 hash of the OwnershipControls request body.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
PutBucketOwnershipControlsRequest.Builder expectedBucketOwner(String expectedBucketOwner)
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails
with the HTTP status code 403 Forbidden (access denied).
expectedBucketOwner - The account ID of the expected bucket owner. If the bucket is owned by a different account, the
request fails with the HTTP status code 403 Forbidden (access denied).PutBucketOwnershipControlsRequest.Builder ownershipControls(OwnershipControls ownershipControls)
The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want
to apply to this Amazon S3 bucket.
ownershipControls - The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that
you want to apply to this Amazon S3 bucket.default PutBucketOwnershipControlsRequest.Builder ownershipControls(Consumer<OwnershipControls.Builder> ownershipControls)
The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want
to apply to this Amazon S3 bucket.
OwnershipControls.Builder avoiding the
need to create one manually via OwnershipControls.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to ownershipControls(OwnershipControls).
ownershipControls - a consumer that will call methods on OwnershipControls.BuilderownershipControls(OwnershipControls)PutBucketOwnershipControlsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutBucketOwnershipControlsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.