Interface MetricsConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricsConfiguration.Builder,,MetricsConfiguration> SdkBuilder<MetricsConfiguration.Builder,,MetricsConfiguration> SdkPojo
- Enclosing class:
MetricsConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault MetricsConfiguration.Builderfilter(Consumer<MetricsFilter.Builder> filter) Specifies a metrics configuration filter.filter(MetricsFilter filter) Specifies a metrics configuration filter.The ID used to identify the metrics configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter's criteria. A filter must be a prefix, an object tag, an access point ARN, or a conjunction (MetricsAndOperator).
- Parameters:
filter- Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter's criteria. A filter must be a prefix, an object tag, an access point ARN, or a conjunction (MetricsAndOperator).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter's criteria. A filter must be a prefix, an object tag, an access point ARN, or a conjunction (MetricsAndOperator).
This is a convenience method that creates an instance of theMetricsFilter.Builderavoiding the need to create one manually viaMetricsFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilter(MetricsFilter).- Parameters:
filter- a consumer that will call methods onMetricsFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-