Interface MetricDatum.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricDatum.Builder,MetricDatum>
,SdkBuilder<MetricDatum.Builder,MetricDatum>
,SdkPojo
- Enclosing class:
- MetricDatum
public static interface MetricDatum.Builder extends SdkPojo, CopyableBuilder<MetricDatum.Builder,MetricDatum>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MetricDatum.Builder
timestamp(Instant timestamp)
The time the metric value was reported.default MetricDatum.Builder
value(Consumer<MetricValue.Builder> value)
The value reported for the metric.MetricDatum.Builder
value(MetricValue value)
The value reported for the 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
-
timestamp
MetricDatum.Builder timestamp(Instant timestamp)
The time the metric value was reported.
- Parameters:
timestamp
- The time the metric value was reported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
MetricDatum.Builder value(MetricValue value)
The value reported for the metric.
- Parameters:
value
- The value reported for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
default MetricDatum.Builder value(Consumer<MetricValue.Builder> value)
The value reported for the metric.
This is a convenience method that creates an instance of theMetricValue.Builder
avoiding the need to create one manually viaMetricValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalue(MetricValue)
.- Parameters:
value
- a consumer that will call methods onMetricValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(MetricValue)
-
-