public static final class BucketMetrics.Builder
extends java.lang.Object
BucketMetrics
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BucketMetrics |
build()
Builds the configured instance.
|
BucketMetrics.Builder |
id(java.lang.String id)
Sets the value of
BucketMetrics.getId() |
BucketMetrics.Builder |
prefix(java.lang.String prefix)
Sets the value of
BucketMetrics.getPrefix() |
BucketMetrics.Builder |
tagFilters(java.util.Map<java.lang.String,? extends java.lang.Object> tagFilters)
Sets the value of
BucketMetrics.getTagFilters() |
public BucketMetrics.Builder id(java.lang.String id)
BucketMetrics.getId()
id
- The ID used to identify the metrics configuration. This parameter is required.this
public BucketMetrics.Builder prefix(java.lang.String prefix)
BucketMetrics.getPrefix()
prefix
- The prefix that an object must have to be included in the metrics results.this
public BucketMetrics.Builder tagFilters(java.util.Map<java.lang.String,? extends java.lang.Object> tagFilters)
BucketMetrics.getTagFilters()
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.this
public BucketMetrics build()
BucketMetrics
java.lang.NullPointerException
- if any required attribute was not provided