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 (BucketOwnerPreferred or ObjectWriter) that you want to apply to this
Amazon S3 bucket. |
PutBucketOwnershipControlsRequest.Builder |
ownershipControls(OwnershipControls ownershipControls)
The
OwnershipControls (BucketOwnerPreferred or ObjectWriter) that you want to apply to this
Amazon S3 bucket. |
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
PutBucketOwnershipControlsRequest.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.
contentMD5
- The MD5 hash of the OwnershipControls
request body.PutBucketOwnershipControlsRequest.Builder expectedBucketOwner(String expectedBucketOwner)
The account id of the expected bucket owner. If the bucket is owned by a different account, the request will
fail with an HTTP 403 (Access Denied)
error.
expectedBucketOwner
- The account id of the expected bucket owner. If the bucket is owned by a different account, the
request will fail with an HTTP 403 (Access Denied)
error.PutBucketOwnershipControlsRequest.Builder ownershipControls(OwnershipControls ownershipControls)
The OwnershipControls
(BucketOwnerPreferred or ObjectWriter) that you want to apply to this
Amazon S3 bucket.
ownershipControls
- The OwnershipControls
(BucketOwnerPreferred or ObjectWriter) that you want to apply to
this Amazon S3 bucket.default PutBucketOwnershipControlsRequest.Builder ownershipControls(Consumer<OwnershipControls.Builder> ownershipControls)
The OwnershipControls
(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.Builder
ownershipControls(OwnershipControls)
PutBucketOwnershipControlsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
PutBucketOwnershipControlsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2020. All rights reserved.