Interface MetricDatum.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricDatum.Builder,
,MetricDatum> SdkBuilder<MetricDatum.Builder,
,MetricDatum> SdkPojo
- Enclosing class:
MetricDatum
@Mutable
@NotThreadSafe
public static interface MetricDatum.Builder
extends SdkPojo, CopyableBuilder<MetricDatum.Builder,MetricDatum>
-
Method Summary
Modifier and TypeMethodDescriptionThe time the metric value was reported.default MetricDatum.Builder
value
(Consumer<MetricValue.Builder> value) The value reported for the metric.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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:
-