Interface MetricFilter.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricFilter.Builder,
,MetricFilter> SdkBuilder<MetricFilter.Builder,
,MetricFilter> SdkPojo
- Enclosing class:
MetricFilter
public static interface MetricFilter.Builder
extends SdkPojo, CopyableBuilder<MetricFilter.Builder,MetricFilter>
-
Method Summary
Modifier and TypeMethodDescriptioncreationTime
(Long creationTime) The creation time of the metric filter, expressed as the number of milliseconds afterJan 1, 1970 00:00:00 UTC
.filterName
(String filterName) The name of the metric filter.filterPattern
(String filterPattern) Sets the value of the FilterPattern property for this object.logGroupName
(String logGroupName) The name of the log group.metricTransformations
(Collection<MetricTransformation> metricTransformations) The metric transformations.metricTransformations
(Consumer<MetricTransformation.Builder>... metricTransformations) The metric transformations.metricTransformations
(MetricTransformation... metricTransformations) The metric transformations.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
filterName
The name of the metric filter.
- Parameters:
filterName
- The name of the metric filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterPattern
Sets the value of the FilterPattern property for this object.- Parameters:
filterPattern
- The new value for the FilterPattern property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricTransformations
The metric transformations.
- Parameters:
metricTransformations
- The metric transformations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricTransformations
The metric transformations.
- Parameters:
metricTransformations
- The metric transformations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricTransformations
MetricFilter.Builder metricTransformations(Consumer<MetricTransformation.Builder>... metricTransformations) The metric transformations.
This is a convenience method that creates an instance of theMetricTransformation.Builder
avoiding the need to create one manually viaMetricTransformation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricTransformations(List<MetricTransformation>)
.- Parameters:
metricTransformations
- a consumer that will call methods onMetricTransformation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creationTime
The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
.- Parameters:
creationTime
- The creation time of the metric filter, expressed as the number of milliseconds afterJan 1, 1970 00:00:00 UTC
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupName
The name of the log group.
- Parameters:
logGroupName
- The name of the log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-