Class MeasureValue
- java.lang.Object
-
- software.amazon.awssdk.services.timestreamwrite.model.MeasureValue
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MeasureValue.Builder,MeasureValue>
@Generated("software.amazon.awssdk:codegen") public final class MeasureValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MeasureValue.Builder,MeasureValue>
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. MeasureValue has both name and value.
MeasureValue is only allowed for type
MULTI. UsingMULTItype, you can pass multiple data attributes associated with the same time series in a single record- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMeasureValue.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MeasureValue.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the MeasureValue.List<SdkField<?>>sdkFields()static Class<? extends MeasureValue.Builder>serializableBuilderClass()MeasureValue.BuildertoBuilder()StringtoString()Returns a string representation of this object.MeasureValueTypetype()Contains the data type of the MeasureValue for the time-series data point.StringtypeAsString()Contains the data type of the MeasureValue for the time-series data point.Stringvalue()The value for the MeasureValue.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name of the MeasureValue.
For constraints on MeasureValue names, see Naming Constraints in the Amazon Timestream Developer Guide.
- Returns:
- The name of the MeasureValue.
For constraints on MeasureValue names, see Naming Constraints in the Amazon Timestream Developer Guide.
-
value
public final String value()
The value for the MeasureValue. For information, see Data types.
- Returns:
- The value for the MeasureValue. For information, see Data types.
-
type
public final MeasureValueType type()
Contains the data type of the MeasureValue for the time-series data point.
If the service returns an enum value that is not available in the current SDK version,
typewill returnMeasureValueType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Contains the data type of the MeasureValue for the time-series data point.
- See Also:
MeasureValueType
-
typeAsString
public final String typeAsString()
Contains the data type of the MeasureValue for the time-series data point.
If the service returns an enum value that is not available in the current SDK version,
typewill returnMeasureValueType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Contains the data type of the MeasureValue for the time-series data point.
- See Also:
MeasureValueType
-
toBuilder
public MeasureValue.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MeasureValue.Builder,MeasureValue>
-
builder
public static MeasureValue.Builder builder()
-
serializableBuilderClass
public static Class<? extends MeasureValue.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-