Interface PutMetricFilterRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchLogsRequest.Builder,CopyableBuilder<PutMetricFilterRequest.Builder,PutMetricFilterRequest>,SdkBuilder<PutMetricFilterRequest.Builder,PutMetricFilterRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutMetricFilterRequest
public static interface PutMetricFilterRequest.Builder extends CloudWatchLogsRequest.Builder, SdkPojo, CopyableBuilder<PutMetricFilterRequest.Builder,PutMetricFilterRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutMetricFilterRequest.BuilderapplyOnTransformedLogs(Boolean applyOnTransformedLogs)This parameter is valid only for log groups that have an active log transformer.PutMetricFilterRequest.BuilderfilterName(String filterName)A name for the metric filter.PutMetricFilterRequest.BuilderfilterPattern(String filterPattern)A filter pattern for extracting metric data out of ingested log events.PutMetricFilterRequest.BuilderlogGroupName(String logGroupName)The name of the log group.PutMetricFilterRequest.BuildermetricTransformations(Collection<MetricTransformation> metricTransformations)A collection of information that defines how metric data gets emitted.PutMetricFilterRequest.BuildermetricTransformations(Consumer<MetricTransformation.Builder>... metricTransformations)A collection of information that defines how metric data gets emitted.PutMetricFilterRequest.BuildermetricTransformations(MetricTransformation... metricTransformations)A collection of information that defines how metric data gets emitted.PutMetricFilterRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutMetricFilterRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest.Builder
build
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
logGroupName
PutMetricFilterRequest.Builder logGroupName(String 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.
-
filterName
PutMetricFilterRequest.Builder filterName(String filterName)
A name for the metric filter.
- Parameters:
filterName- A name for the metric filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterPattern
PutMetricFilterRequest.Builder filterPattern(String filterPattern)
A filter pattern for extracting metric data out of ingested log events.
- Parameters:
filterPattern- A filter pattern for extracting metric data out of ingested log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricTransformations
PutMetricFilterRequest.Builder metricTransformations(Collection<MetricTransformation> metricTransformations)
A collection of information that defines how metric data gets emitted.
- Parameters:
metricTransformations- A collection of information that defines how metric data gets emitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricTransformations
PutMetricFilterRequest.Builder metricTransformations(MetricTransformation... metricTransformations)
A collection of information that defines how metric data gets emitted.
- Parameters:
metricTransformations- A collection of information that defines how metric data gets emitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricTransformations
PutMetricFilterRequest.Builder metricTransformations(Consumer<MetricTransformation.Builder>... metricTransformations)
A collection of information that defines how metric data gets emitted.
This is a convenience method that creates an instance of theMetricTransformation.Builderavoiding the need to create one manually viaMetricTransformation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metricTransformations(List.) - 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:
#metricTransformations(java.util.Collection)
-
applyOnTransformedLogs
PutMetricFilterRequest.Builder applyOnTransformedLogs(Boolean applyOnTransformedLogs)
This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.
If the log group uses either a log-group level or account-level transformer, and you specify
true, the metric filter will be applied on the transformed version of the log events instead of the original ingested log events.- Parameters:
applyOnTransformedLogs- This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.If the log group uses either a log-group level or account-level transformer, and you specify
true, the metric filter will be applied on the transformed version of the log events instead of the original ingested log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutMetricFilterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutMetricFilterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-