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

Information needed to define a schema.

See Also:

AWS * API Reference

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

Specifies one or more columns that store your data.

Each schema can * have up to 100 columns. Each column can have up to 100 nested types.

*/ inline const Aws::Vector& GetColumns() const{ return m_columns; } /** *

Specifies one or more columns that store your data.

Each schema can * have up to 100 columns. Each column can have up to 100 nested types.

*/ inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; } /** *

Specifies one or more columns that store your data.

Each schema can * have up to 100 columns. Each column can have up to 100 nested types.

*/ inline void SetColumns(const Aws::Vector& value) { m_columnsHasBeenSet = true; m_columns = value; } /** *

Specifies one or more columns that store your data.

Each schema can * have up to 100 columns. Each column can have up to 100 nested types.

*/ inline void SetColumns(Aws::Vector&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); } /** *

Specifies one or more columns that store your data.

Each schema can * have up to 100 columns. Each column can have up to 100 nested types.

*/ inline SchemaDefinition& WithColumns(const Aws::Vector& value) { SetColumns(value); return *this;} /** *

Specifies one or more columns that store your data.

Each schema can * have up to 100 columns. Each column can have up to 100 nested types.

*/ inline SchemaDefinition& WithColumns(Aws::Vector&& value) { SetColumns(std::move(value)); return *this;} /** *

Specifies one or more columns that store your data.

Each schema can * have up to 100 columns. Each column can have up to 100 nested types.

*/ inline SchemaDefinition& AddColumns(const Column& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; } /** *

Specifies one or more columns that store your data.

Each schema can * have up to 100 columns. Each column can have up to 100 nested types.

*/ inline SchemaDefinition& AddColumns(Column&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; } private: Aws::Vector m_columns; bool m_columnsHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws