/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace TimestreamWrite { namespace Model { /** *

Represents the metadata attributes of the time series. For example, the name * and Availability Zone of an EC2 instance or the name of the manufacturer of a * wind turbine are dimensions.

See Also:

AWS * API Reference

*/ class Dimension { public: AWS_TIMESTREAMWRITE_API Dimension(); AWS_TIMESTREAMWRITE_API Dimension(Aws::Utils::Json::JsonView jsonValue); AWS_TIMESTREAMWRITE_API Dimension& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Dimension represents the metadata attributes of the time series. For * example, the name and Availability Zone of an EC2 instance or the name of the * manufacturer of a wind turbine are dimensions.

For constraints on * dimension names, see Naming * Constraints.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Dimension represents the metadata attributes of the time series. For * example, the name and Availability Zone of an EC2 instance or the name of the * manufacturer of a wind turbine are dimensions.

For constraints on * dimension names, see Naming * Constraints.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Dimension represents the metadata attributes of the time series. For * example, the name and Availability Zone of an EC2 instance or the name of the * manufacturer of a wind turbine are dimensions.

For constraints on * dimension names, see Naming * Constraints.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Dimension represents the metadata attributes of the time series. For * example, the name and Availability Zone of an EC2 instance or the name of the * manufacturer of a wind turbine are dimensions.

For constraints on * dimension names, see Naming * Constraints.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Dimension represents the metadata attributes of the time series. For * example, the name and Availability Zone of an EC2 instance or the name of the * manufacturer of a wind turbine are dimensions.

For constraints on * dimension names, see Naming * Constraints.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Dimension represents the metadata attributes of the time series. For * example, the name and Availability Zone of an EC2 instance or the name of the * manufacturer of a wind turbine are dimensions.

For constraints on * dimension names, see Naming * Constraints.

*/ inline Dimension& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Dimension represents the metadata attributes of the time series. For * example, the name and Availability Zone of an EC2 instance or the name of the * manufacturer of a wind turbine are dimensions.

For constraints on * dimension names, see Naming * Constraints.

*/ inline Dimension& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Dimension represents the metadata attributes of the time series. For * example, the name and Availability Zone of an EC2 instance or the name of the * manufacturer of a wind turbine are dimensions.

For constraints on * dimension names, see Naming * Constraints.

*/ inline Dimension& WithName(const char* value) { SetName(value); return *this;} /** *

The value of the dimension.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of the dimension.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the dimension.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the dimension.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the dimension.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of the dimension.

*/ inline Dimension& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of the dimension.

*/ inline Dimension& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of the dimension.

*/ inline Dimension& WithValue(const char* value) { SetValue(value); return *this;} /** *

The data type of the dimension for the time-series data point.

*/ inline const DimensionValueType& GetDimensionValueType() const{ return m_dimensionValueType; } /** *

The data type of the dimension for the time-series data point.

*/ inline bool DimensionValueTypeHasBeenSet() const { return m_dimensionValueTypeHasBeenSet; } /** *

The data type of the dimension for the time-series data point.

*/ inline void SetDimensionValueType(const DimensionValueType& value) { m_dimensionValueTypeHasBeenSet = true; m_dimensionValueType = value; } /** *

The data type of the dimension for the time-series data point.

*/ inline void SetDimensionValueType(DimensionValueType&& value) { m_dimensionValueTypeHasBeenSet = true; m_dimensionValueType = std::move(value); } /** *

The data type of the dimension for the time-series data point.

*/ inline Dimension& WithDimensionValueType(const DimensionValueType& value) { SetDimensionValueType(value); return *this;} /** *

The data type of the dimension for the time-series data point.

*/ inline Dimension& WithDimensionValueType(DimensionValueType&& value) { SetDimensionValueType(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; DimensionValueType m_dimensionValueType; bool m_dimensionValueTypeHasBeenSet = false; }; } // namespace Model } // namespace TimestreamWrite } // namespace Aws