/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
. Using MULTI
type, you can pass multiple
* data attributes associated with the same time series in a single record
* See Also:
AWS
* API Reference
The name of the MeasureValue.
For constraints on MeasureValue * names, see * Naming Constraints in the Amazon Timestream Developer Guide.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the MeasureValue.
For constraints on MeasureValue * names, see * Naming Constraints in the Amazon Timestream Developer Guide.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the MeasureValue.
For constraints on MeasureValue * names, see * Naming Constraints in the Amazon Timestream Developer Guide.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the MeasureValue.
For constraints on MeasureValue * names, see * Naming Constraints in the Amazon Timestream Developer Guide.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the MeasureValue.
For constraints on MeasureValue * names, see * Naming Constraints in the Amazon Timestream Developer Guide.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the MeasureValue.
For constraints on MeasureValue * names, see * Naming Constraints in the Amazon Timestream Developer Guide.
*/ inline MeasureValue& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the MeasureValue.
For constraints on MeasureValue * names, see * Naming Constraints in the Amazon Timestream Developer Guide.
*/ inline MeasureValue& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the MeasureValue.
For constraints on MeasureValue * names, see * Naming Constraints in the Amazon Timestream Developer Guide.
*/ inline MeasureValue& WithName(const char* value) { SetName(value); return *this;} /** *The value for the MeasureValue. For information, see Data * types.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The value for the MeasureValue. For information, see Data * types.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value for the MeasureValue. For information, see Data * types.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The value for the MeasureValue. For information, see Data * types.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The value for the MeasureValue. For information, see Data * types.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The value for the MeasureValue. For information, see Data * types.
*/ inline MeasureValue& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The value for the MeasureValue. For information, see Data * types.
*/ inline MeasureValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The value for the MeasureValue. For information, see Data * types.
*/ inline MeasureValue& WithValue(const char* value) { SetValue(value); return *this;} /** *Contains the data type of the MeasureValue for the time-series data * point.
*/ inline const MeasureValueType& GetType() const{ return m_type; } /** *Contains the data type of the MeasureValue for the time-series data * point.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *Contains the data type of the MeasureValue for the time-series data * point.
*/ inline void SetType(const MeasureValueType& value) { m_typeHasBeenSet = true; m_type = value; } /** *Contains the data type of the MeasureValue for the time-series data * point.
*/ inline void SetType(MeasureValueType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *Contains the data type of the MeasureValue for the time-series data * point.
*/ inline MeasureValue& WithType(const MeasureValueType& value) { SetType(value); return *this;} /** *Contains the data type of the MeasureValue for the time-series data * point.
*/ inline MeasureValue& WithType(MeasureValueType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; MeasureValueType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace TimestreamWrite } // namespace Aws