Class BucketMetrics.Builder
java.lang.Object
software.amazon.awscdk.services.s3.BucketMetrics.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BucketMetrics>
- Enclosing interface:
BucketMetrics
@Stability(Stable)
public static final class BucketMetrics.Builder
extends Object
implements software.amazon.jsii.Builder<BucketMetrics>
A builder for
BucketMetrics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofBucketMetrics.getId()
Sets the value ofBucketMetrics.getPrefix()
tagFilters
(Map<String, ? extends Object> tagFilters) Sets the value ofBucketMetrics.getTagFilters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofBucketMetrics.getId()
- Parameters:
id
- The ID used to identify the metrics configuration. This parameter is required.- Returns:
this
-
prefix
Sets the value ofBucketMetrics.getPrefix()
- Parameters:
prefix
- The prefix that an object must have to be included in the metrics results.- Returns:
this
-
tagFilters
Sets the value ofBucketMetrics.getTagFilters()
- Parameters:
tagFilters
- Specifies a list of tag filters to use as a metrics configuration filter. The metrics configuration includes only objects that meet the filter's criteria.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BucketMetrics>
- Returns:
- a new instance of
BucketMetrics
- Throws:
NullPointerException
- if any required attribute was not provided
-