public static interface UpdateBucketRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<UpdateBucketRequest.Builder,UpdateBucketRequest>
| Modifier and Type | Method and Description |
|---|---|
UpdateBucketRequest.Builder |
accessLogConfig(BucketAccessLogConfig accessLogConfig)
An object that describes the access log configuration for the bucket.
|
default UpdateBucketRequest.Builder |
accessLogConfig(Consumer<BucketAccessLogConfig.Builder> accessLogConfig)
An object that describes the access log configuration for the bucket.
|
UpdateBucketRequest.Builder |
accessRules(AccessRules accessRules)
An object that sets the public accessibility of objects in the specified bucket.
|
default UpdateBucketRequest.Builder |
accessRules(Consumer<AccessRules.Builder> accessRules)
An object that sets the public accessibility of objects in the specified bucket.
|
UpdateBucketRequest.Builder |
bucketName(String bucketName)
The name of the bucket to update.
|
UpdateBucketRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
UpdateBucketRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
UpdateBucketRequest.Builder |
readonlyAccessAccounts(Collection<String> readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
|
UpdateBucketRequest.Builder |
readonlyAccessAccounts(String... readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
|
UpdateBucketRequest.Builder |
versioning(String versioning)
Specifies whether to enable or suspend versioning of objects in the bucket.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildUpdateBucketRequest.Builder bucketName(String bucketName)
The name of the bucket to update.
bucketName - The name of the bucket to update.UpdateBucketRequest.Builder accessRules(AccessRules accessRules)
An object that sets the public accessibility of objects in the specified bucket.
accessRules - An object that sets the public accessibility of objects in the specified bucket.default UpdateBucketRequest.Builder accessRules(Consumer<AccessRules.Builder> accessRules)
An object that sets the public accessibility of objects in the specified bucket.
This is a convenience method that creates an instance of theAccessRules.Builder avoiding the need to
create one manually via AccessRules.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to accessRules(AccessRules).
accessRules - a consumer that will call methods on AccessRules.BuilderaccessRules(AccessRules)UpdateBucketRequest.Builder versioning(String versioning)
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
Enabled - Enables versioning of objects in the specified bucket.
Suspended - Suspends versioning of objects in the specified bucket. Existing object versions are
retained.
versioning - Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
Enabled - Enables versioning of objects in the specified bucket.
Suspended - Suspends versioning of objects in the specified bucket. Existing object
versions are retained.
UpdateBucketRequest.Builder readonlyAccessAccounts(Collection<String> readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
readonlyAccessAccounts - An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
UpdateBucketRequest.Builder readonlyAccessAccounts(String... readonlyAccessAccounts)
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
readonlyAccessAccounts - An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
UpdateBucketRequest.Builder accessLogConfig(BucketAccessLogConfig accessLogConfig)
An object that describes the access log configuration for the bucket.
accessLogConfig - An object that describes the access log configuration for the bucket.default UpdateBucketRequest.Builder accessLogConfig(Consumer<BucketAccessLogConfig.Builder> accessLogConfig)
An object that describes the access log configuration for the bucket.
This is a convenience method that creates an instance of theBucketAccessLogConfig.Builder avoiding
the need to create one manually via BucketAccessLogConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to accessLogConfig(BucketAccessLogConfig).
accessLogConfig - a consumer that will call methods on BucketAccessLogConfig.BuilderaccessLogConfig(BucketAccessLogConfig)UpdateBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderUpdateBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.