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.Builderdimensions(Collection<Dimension> dimensions)Internal only.MetricDatum.Builderdimensions(Consumer<Dimension.Builder>... dimensions)Internal only.MetricDatum.Builderdimensions(Dimension... dimensions)Internal only.MetricDatum.BuildermetricName(String metricName)Internal only.default MetricDatum.BuilderstatisticValues(Consumer<StatisticSet.Builder> statisticValues)Internal only.MetricDatum.BuilderstatisticValues(StatisticSet statisticValues)Internal only.MetricDatum.Buildertimestamp(Instant timestamp)Internal only.MetricDatum.Builderunit(String unit)Internal only.MetricDatum.Builderunit(Unit unit)Internal only.MetricDatum.Buildervalue(Double value)Internal only.-
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
-
dimensions
MetricDatum.Builder dimensions(Collection<Dimension> dimensions)
Internal only. The dimensions associated with the metric.
- Parameters:
dimensions- Internal only. The dimensions associated with the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
MetricDatum.Builder dimensions(Dimension... dimensions)
Internal only. The dimensions associated with the metric.
- Parameters:
dimensions- Internal only. The dimensions associated with the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
MetricDatum.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
Internal only. The dimensions associated with the metric.
This is a convenience method that creates an instance of theDimension.Builderavoiding the need to create one manually viaDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dimensions(List.) - Parameters:
dimensions- a consumer that will call methods onDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dimensions(java.util.Collection)
-
metricName
MetricDatum.Builder metricName(String metricName)
Internal only. The name of the metric.
- Parameters:
metricName- Internal only. The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticValues
MetricDatum.Builder statisticValues(StatisticSet statisticValues)
Internal only. The statistical values for the metric.
- Parameters:
statisticValues- Internal only. The statistical values for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticValues
default MetricDatum.Builder statisticValues(Consumer<StatisticSet.Builder> statisticValues)
Internal only. The statistical values for the metric.
This is a convenience method that creates an instance of theStatisticSet.Builderavoiding the need to create one manually viaStatisticSet.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatisticValues(StatisticSet).- Parameters:
statisticValues- a consumer that will call methods onStatisticSet.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
statisticValues(StatisticSet)
-
timestamp
MetricDatum.Builder timestamp(Instant timestamp)
Internal only. The time the metric data was received.
- Parameters:
timestamp- Internal only. The time the metric data was received.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unit
MetricDatum.Builder unit(String unit)
Internal only. The unit used to store the metric.
-
unit
MetricDatum.Builder unit(Unit unit)
Internal only. The unit used to store the metric.
-
value
MetricDatum.Builder value(Double value)
Internal only. The value for the metric.
- Parameters:
value- Internal only. The value for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-