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
Modifier and TypeMethodDescriptionThe time the metric value was reported.default MetricDatum.Buildervalue(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaMetricValue.builder().When the
Consumercompletes,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:
-