Interface UpdateBucketRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateBucketRequest.Builder,
,UpdateBucketRequest> LightsailRequest.Builder
,SdkBuilder<UpdateBucketRequest.Builder,
,UpdateBucketRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateBucketRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdateBucketRequest.Builder
accessLogConfig
(Consumer<BucketAccessLogConfig.Builder> accessLogConfig) An object that describes the access log configuration for the bucket.accessLogConfig
(BucketAccessLogConfig accessLogConfig) An object that describes the access log configuration for the bucket.default UpdateBucketRequest.Builder
accessRules
(Consumer<AccessRules.Builder> accessRules) An object that sets the public accessibility of objects in the specified bucket.accessRules
(AccessRules accessRules) An object that sets the public accessibility of objects in the specified bucket.bucketName
(String bucketName) The name of the bucket to update.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.readonlyAccessAccounts
(String... readonlyAccessAccounts) An array of strings to specify the Amazon Web Services account IDs that can access the bucket.readonlyAccessAccounts
(Collection<String> readonlyAccessAccounts) An array of strings to specify the Amazon Web Services account IDs that can access the bucket.versioning
(String versioning) Specifies whether to enable or suspend versioning of objects in the bucket.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
build
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
-
bucketName
The name of the bucket to update.
- Parameters:
bucketName
- The name of the bucket to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessRules
An object that sets the public accessibility of objects in the specified bucket.
- Parameters:
accessRules
- An object that sets the public accessibility of objects in the specified bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaAccessRules.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessRules(AccessRules)
.- Parameters:
accessRules
- a consumer that will call methods onAccessRules.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessLogConfig
An object that describes the access log configuration for the bucket.
- Parameters:
accessLogConfig
- An object that describes the access log configuration for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessLogConfig
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 viaBucketAccessLogConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessLogConfig(BucketAccessLogConfig)
.- Parameters:
accessLogConfig
- a consumer that will call methods onBucketAccessLogConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-