Interface TimeSeriesDataPoint.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TimeSeriesDataPoint.Builder,TimeSeriesDataPoint>,SdkBuilder<TimeSeriesDataPoint.Builder,TimeSeriesDataPoint>,SdkPojo
- Enclosing class:
- TimeSeriesDataPoint
public static interface TimeSeriesDataPoint.Builder extends SdkPojo, CopyableBuilder<TimeSeriesDataPoint.Builder,TimeSeriesDataPoint>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TimeSeriesDataPoint.Buildertime(String time)The timestamp when the measure value was collected.default TimeSeriesDataPoint.Buildervalue(Consumer<Datum.Builder> value)The measure value for the data point.TimeSeriesDataPoint.Buildervalue(Datum value)The measure value for the data point.-
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
-
time
TimeSeriesDataPoint.Builder time(String time)
The timestamp when the measure value was collected.
- Parameters:
time- The timestamp when the measure value was collected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
TimeSeriesDataPoint.Builder value(Datum value)
The measure value for the data point.
- Parameters:
value- The measure value for the data point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
default TimeSeriesDataPoint.Builder value(Consumer<Datum.Builder> value)
The measure value for the data point.
This is a convenience method that creates an instance of theDatum.Builderavoiding the need to create one manually viaDatum.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(Datum).- Parameters:
value- a consumer that will call methods onDatum.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(Datum)
-
-