/** * 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 TimestreamQuery { namespace Model { /** *

This type is used to map column(s) from the query result to a dimension in * the destination table.

See Also:

AWS * API Reference

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

Column name from query result.

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

Column name from query result.

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

Column name from query result.

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

Column name from query result.

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

Column name from query result.

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

Column name from query result.

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

Column name from query result.

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

Column name from query result.

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

Type for the dimension.

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

Type for the dimension.

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

Type for the dimension.

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

Type for the dimension.

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

Type for the dimension.

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

Type for the dimension.

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