Interface MetricToRetain.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricToRetain.Builder,
,MetricToRetain> SdkBuilder<MetricToRetain.Builder,
,MetricToRetain> SdkPojo
- Enclosing class:
MetricToRetain
public static interface MetricToRetain.Builder
extends SdkPojo, CopyableBuilder<MetricToRetain.Builder,MetricToRetain>
-
Method Summary
Modifier and TypeMethodDescriptionexportMetric
(Boolean exportMetric) The value indicates exporting metrics related to theMetricToRetain
when it's true.What is measured by the behavior.default MetricToRetain.Builder
metricDimension
(Consumer<MetricDimension.Builder> metricDimension) The dimension of a metric.metricDimension
(MetricDimension metricDimension) The dimension of a metric.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
-
metric
What is measured by the behavior.
- Parameters:
metric
- What is measured by the behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDimension
The dimension of a metric. This can't be used with custom metrics.
- Parameters:
metricDimension
- The dimension of a metric. This can't be used with custom metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDimension
The dimension of a metric. This can't be used with custom metrics.
This is a convenience method that creates an instance of theMetricDimension.Builder
avoiding the need to create one manually viaMetricDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricDimension(MetricDimension)
.- Parameters:
metricDimension
- a consumer that will call methods onMetricDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
exportMetric
The value indicates exporting metrics related to the
MetricToRetain
when it's true.- Parameters:
exportMetric
- The value indicates exporting metrics related to theMetricToRetain
when it's true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-