Interface Record.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Record.Builder,Record>,SdkBuilder<Record.Builder,Record>,SdkPojo
- Enclosing class:
- Record
public static interface Record.Builder extends SdkPojo, CopyableBuilder<Record.Builder,Record>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Record.Builderdimensions(Collection<Dimension> dimensions)Contains the list of dimensions for time-series data points.Record.Builderdimensions(Consumer<Dimension.Builder>... dimensions)Contains the list of dimensions for time-series data points.Record.Builderdimensions(Dimension... dimensions)Contains the list of dimensions for time-series data points.Record.BuildermeasureName(String measureName)Measure represents the data attribute of the time series.Record.BuildermeasureValue(String measureValue)Contains the measure value for the time-series data point.Record.BuildermeasureValues(Collection<MeasureValue> measureValues)Contains the list of MeasureValue for time-series data points.Record.BuildermeasureValues(Consumer<MeasureValue.Builder>... measureValues)Contains the list of MeasureValue for time-series data points.Record.BuildermeasureValues(MeasureValue... measureValues)Contains the list of MeasureValue for time-series data points.Record.BuildermeasureValueType(String measureValueType)Contains the data type of the measure value for the time-series data point.Record.BuildermeasureValueType(MeasureValueType measureValueType)Contains the data type of the measure value for the time-series data point.Record.Buildertime(String time)Contains the time at which the measure value for the data point was collected.Record.BuildertimeUnit(String timeUnit)The granularity of the timestamp unit.Record.BuildertimeUnit(TimeUnit timeUnit)The granularity of the timestamp unit.Record.Builderversion(Long version)64-bit attribute used for record updates.-
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
Record.Builder dimensions(Collection<Dimension> dimensions)
Contains the list of dimensions for time-series data points.
- Parameters:
dimensions- Contains the list of dimensions for time-series data points.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Record.Builder dimensions(Dimension... dimensions)
Contains the list of dimensions for time-series data points.
- Parameters:
dimensions- Contains the list of dimensions for time-series data points.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Record.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
Contains the list of dimensions for time-series data points.
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)
-
measureName
Record.Builder measureName(String measureName)
Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.
- Parameters:
measureName- Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
measureValue
Record.Builder measureValue(String measureValue)
Contains the measure value for the time-series data point.
- Parameters:
measureValue- Contains the measure value for the time-series data point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
measureValueType
Record.Builder measureValueType(String measureValueType)
Contains the data type of the measure value for the time-series data point. Default type is
DOUBLE. For more information, see Data types.- Parameters:
measureValueType- Contains the data type of the measure value for the time-series data point. Default type isDOUBLE. For more information, see Data types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MeasureValueType,MeasureValueType
-
measureValueType
Record.Builder measureValueType(MeasureValueType measureValueType)
Contains the data type of the measure value for the time-series data point. Default type is
DOUBLE. For more information, see Data types.- Parameters:
measureValueType- Contains the data type of the measure value for the time-series data point. Default type isDOUBLE. For more information, see Data types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MeasureValueType,MeasureValueType
-
time
Record.Builder time(String time)
Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is
12345and the unit isms, then12345 mshave elapsed since the epoch.- Parameters:
time- Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is12345and the unit isms, then12345 mshave elapsed since the epoch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeUnit
Record.Builder timeUnit(String timeUnit)
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is
MILLISECONDS.- Parameters:
timeUnit- The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default isMILLISECONDS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TimeUnit,TimeUnit
-
timeUnit
Record.Builder timeUnit(TimeUnit timeUnit)
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is
MILLISECONDS.- Parameters:
timeUnit- The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default isMILLISECONDS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TimeUnit,TimeUnit
-
version
Record.Builder version(Long version)
64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same,
Versionwill still be updated. Default value is1.Versionmust be1or greater, or you will receive aValidationExceptionerror.- Parameters:
version- 64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same,Versionwill still be updated. Default value is1.Versionmust be1or greater, or you will receive aValidationExceptionerror.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
measureValues
Record.Builder measureValues(Collection<MeasureValue> measureValues)
Contains the list of MeasureValue for time-series data points.
This is only allowed for type
MULTI. For scalar values, useMeasureValueattribute of the record directly.- Parameters:
measureValues- Contains the list of MeasureValue for time-series data points.This is only allowed for type
MULTI. For scalar values, useMeasureValueattribute of the record directly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
measureValues
Record.Builder measureValues(MeasureValue... measureValues)
Contains the list of MeasureValue for time-series data points.
This is only allowed for type
MULTI. For scalar values, useMeasureValueattribute of the record directly.- Parameters:
measureValues- Contains the list of MeasureValue for time-series data points.This is only allowed for type
MULTI. For scalar values, useMeasureValueattribute of the record directly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
measureValues
Record.Builder measureValues(Consumer<MeasureValue.Builder>... measureValues)
Contains the list of MeasureValue for time-series data points.
This is only allowed for type
This is a convenience method that creates an instance of theMULTI. For scalar values, useMeasureValueattribute of the record directly.MeasureValue.Builderavoiding the need to create one manually viaMeasureValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#measureValues(List.) - Parameters:
measureValues- a consumer that will call methods onMeasureValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#measureValues(java.util.Collection)
-
-