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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MetricToRetain.Builder
exportMetric(Boolean exportMetric)
The value indicates exporting metrics related to theMetricToRetain
when it's true.MetricToRetain.Builder
metric(String metric)
What is measured by the behavior.default MetricToRetain.Builder
metricDimension(Consumer<MetricDimension.Builder> metricDimension)
The dimension of a metric.MetricToRetain.Builder
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 Detail
-
metric
MetricToRetain.Builder metric(String 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
MetricToRetain.Builder metricDimension(MetricDimension 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
default MetricToRetain.Builder metricDimension(Consumer<MetricDimension.Builder> 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:
metricDimension(MetricDimension)
-
exportMetric
MetricToRetain.Builder exportMetric(Boolean 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.
-
-