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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MetricDataV2.Buildermetric(Consumer<MetricV2.Builder> metric)The metric name, thresholds, and metric filters of the returned metric.MetricDataV2.Buildermetric(MetricV2 metric)The metric name, thresholds, and metric filters of the returned metric.MetricDataV2.Buildervalue(Double value)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 Detail
-
metric
MetricDataV2.Builder metric(MetricV2 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
default MetricDataV2.Builder metric(Consumer<MetricV2.Builder> metric)
The metric name, thresholds, and metric filters of the returned metric.
This is a convenience method that creates an instance of theMetricV2.Builderavoiding the need to create one manually viaMetricV2.builder().When the
Consumercompletes,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:
metric(MetricV2)
-
value
MetricDataV2.Builder value(Double 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.
-
-