Interface Record.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Record.Builder,
,Record> SdkBuilder<Record.Builder,
,Record> SdkPojo
- Enclosing class:
Record
-
Method Summary
Modifier and TypeMethodDescriptiondimensions
(Collection<Dimension> dimensions) Contains the list of dimensions for time-series data points.dimensions
(Consumer<Dimension.Builder>... dimensions) Contains the list of dimensions for time-series data points.dimensions
(Dimension... dimensions) Contains the list of dimensions for time-series data points.measureName
(String measureName) Measure represents the data attribute of the time series.measureValue
(String measureValue) Contains the measure value for the time-series data point.measureValues
(Collection<MeasureValue> measureValues) Contains the list of MeasureValue for time-series data points.measureValues
(Consumer<MeasureValue.Builder>... measureValues) Contains the list of MeasureValue for time-series data points.measureValues
(MeasureValue... measureValues) Contains the list of MeasureValue for time-series data points.measureValueType
(String measureValueType) Contains the data type of the measure value for the time-series data point.measureValueType
(MeasureValueType measureValueType) Contains the data type of the measure value for the time-series data point.Contains the time at which the measure value for the data point was collected.The granularity of the timestamp unit.The granularity of the timestamp unit.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 Details
-
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
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
Contains the list of dimensions for time-series data points.
This is a convenience method that creates an instance of theDimension.Builder
avoiding the need to create one manually viaDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<Dimension>)
.- 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:
-
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
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
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
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:
-
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
12345
and the unit isms
, then12345 ms
have 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 is12345
and the unit isms
, then12345 ms
have elapsed since the epoch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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:
-
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,
Version
will still be updated. Default value is1
.Version
must be1
or greater, or you will receive aValidationException
error.- 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,Version
will still be updated. Default value is1
.Version
must be1
or greater, or you will receive aValidationException
error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
measureValues
Contains the list of MeasureValue for time-series data points.
This is only allowed for type
MULTI
. For scalar values, useMeasureValue
attribute 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, useMeasureValue
attribute of the record directly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
measureValues
Contains the list of MeasureValue for time-series data points.
This is only allowed for type
MULTI
. For scalar values, useMeasureValue
attribute 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, useMeasureValue
attribute of the record directly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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, useMeasureValue
attribute of the record directly.MeasureValue.Builder
avoiding the need to create one manually viaMeasureValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomeasureValues(List<MeasureValue>)
.- 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:
-