/** * 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 { /** *

An attribute of a schema, which defines a dataset field. A schema attribute * is required for every field in a dataset. The Schema * object contains an array of SchemaAttribute objects.

See * Also:

AWS * API Reference

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

The name of the dataset field.

*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *

The name of the dataset field.

*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *

The name of the dataset field.

*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *

The name of the dataset field.

*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *

The name of the dataset field.

*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *

The name of the dataset field.

*/ inline SchemaAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *

The name of the dataset field.

*/ inline SchemaAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *

The name of the dataset field.

*/ inline SchemaAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *

The data type of the field.

For a related time series dataset, other * than date, item_id, and forecast dimensions attributes, all attributes should be * of numerical type (integer/float).

*/ inline const AttributeType& GetAttributeType() const{ return m_attributeType; } /** *

The data type of the field.

For a related time series dataset, other * than date, item_id, and forecast dimensions attributes, all attributes should be * of numerical type (integer/float).

*/ inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; } /** *

The data type of the field.

For a related time series dataset, other * than date, item_id, and forecast dimensions attributes, all attributes should be * of numerical type (integer/float).

*/ inline void SetAttributeType(const AttributeType& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; } /** *

The data type of the field.

For a related time series dataset, other * than date, item_id, and forecast dimensions attributes, all attributes should be * of numerical type (integer/float).

*/ inline void SetAttributeType(AttributeType&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); } /** *

The data type of the field.

For a related time series dataset, other * than date, item_id, and forecast dimensions attributes, all attributes should be * of numerical type (integer/float).

*/ inline SchemaAttribute& WithAttributeType(const AttributeType& value) { SetAttributeType(value); return *this;} /** *

The data type of the field.

For a related time series dataset, other * than date, item_id, and forecast dimensions attributes, all attributes should be * of numerical type (integer/float).

*/ inline SchemaAttribute& WithAttributeType(AttributeType&& value) { SetAttributeType(std::move(value)); return *this;} private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; AttributeType m_attributeType; bool m_attributeTypeHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws