Interface MetricDataV2.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricDataV2.Builder,
,MetricDataV2> SdkBuilder<MetricDataV2.Builder,
,MetricDataV2> SdkPojo
- Enclosing class:
MetricDataV2
public static interface MetricDataV2.Builder
extends SdkPojo, CopyableBuilder<MetricDataV2.Builder,MetricDataV2>
-
Method Summary
Modifier and TypeMethodDescriptiondefault MetricDataV2.Builder
metric
(Consumer<MetricV2.Builder> metric) The metric name, thresholds, and metric filters of the returned metric.The metric name, thresholds, and metric filters of the returned metric.The corresponding value of the metric returned in the response.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
The metric name, thresholds, and metric filters of the returned metric.
- Parameters:
metric
- The metric name, thresholds, and metric filters of the returned metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metric
The metric name, thresholds, and metric filters of the returned metric.
This is a convenience method that creates an instance of theMetricV2.Builder
avoiding the need to create one manually viaMetricV2.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometric(MetricV2)
.- Parameters:
metric
- a consumer that will call methods onMetricV2.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
value
The corresponding value of the metric returned in the response.
- Parameters:
value
- The corresponding value of the metric returned in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-