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

Defines the fields of a dataset.

See Also:

AWS API * Reference

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

An array of attributes specifying the name and type of each field in a * dataset.

*/ inline const Aws::Vector& GetAttributes() const{ return m_attributes; } /** *

An array of attributes specifying the name and type of each field in a * dataset.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

An array of attributes specifying the name and type of each field in a * dataset.

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

An array of attributes specifying the name and type of each field in a * dataset.

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

An array of attributes specifying the name and type of each field in a * dataset.

*/ inline Schema& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

An array of attributes specifying the name and type of each field in a * dataset.

*/ inline Schema& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

An array of attributes specifying the name and type of each field in a * dataset.

*/ inline Schema& AddAttributes(const SchemaAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

An array of attributes specifying the name and type of each field in a * dataset.

*/ inline Schema& AddAttributes(SchemaAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } private: Aws::Vector m_attributes; bool m_attributesHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws