@Mutable @NotThreadSafe public static interface PutBucketMetricsConfigurationRequest.Builder extends S3Request.Builder, SdkPojo, CopyableBuilder<PutBucketMetricsConfigurationRequest.Builder,PutBucketMetricsConfigurationRequest>
buildoverrideConfigurationequalsBySdkFields, sdkFieldNameToField, sdkFieldscopyapplyMutation, buildPutBucketMetricsConfigurationRequest.Builder bucket(String bucket)
The name of the bucket for which the metrics configuration is set.
bucket - The name of the bucket for which the metrics configuration is set.PutBucketMetricsConfigurationRequest.Builder id(String id)
The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
id - The ID used to identify the metrics configuration. The ID has a 64 character limit and can only
contain letters, numbers, periods, dashes, and underscores.PutBucketMetricsConfigurationRequest.Builder metricsConfiguration(MetricsConfiguration metricsConfiguration)
Specifies the metrics configuration.
metricsConfiguration - Specifies the metrics configuration.default PutBucketMetricsConfigurationRequest.Builder metricsConfiguration(Consumer<MetricsConfiguration.Builder> metricsConfiguration)
Specifies the metrics configuration.
This is a convenience method that creates an instance of theMetricsConfiguration.Builder avoiding
the need to create one manually via MetricsConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to metricsConfiguration(MetricsConfiguration).
metricsConfiguration - a consumer that will call methods on MetricsConfiguration.BuildermetricsConfiguration(MetricsConfiguration)PutBucketMetricsConfigurationRequest.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).PutBucketMetricsConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderoverrideConfiguration - The override configuration.PutBucketMetricsConfigurationRequest.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.