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

This object belongs to the CreatePredictor operation. If you * created your predictor with CreateAutoPredictor, see * AttributeConfig.

Provides featurization (transformation) * information for a dataset field. This object is part of the * FeaturizationConfig object.

For example:

{ *

"AttributeName": "demand",

* FeaturizationPipeline [ {

"FeaturizationMethodName": * "filling",

"FeaturizationMethodParameters": * {"aggregation": "avg", "backfill": "nan"}

} ]

*

}

See Also:

AWS * API Reference

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

The name of the schema attribute that specifies the data field to be * featurized. Amazon Forecast supports the target field of the * TARGET_TIME_SERIES and the RELATED_TIME_SERIES * datasets. For example, for the RETAIL domain, the target is * demand, and for the CUSTOM domain, the target is * target_value. For more information, see * howitworks-missing-values.

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

The name of the schema attribute that specifies the data field to be * featurized. Amazon Forecast supports the target field of the * TARGET_TIME_SERIES and the RELATED_TIME_SERIES * datasets. For example, for the RETAIL domain, the target is * demand, and for the CUSTOM domain, the target is * target_value. For more information, see * howitworks-missing-values.

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

The name of the schema attribute that specifies the data field to be * featurized. Amazon Forecast supports the target field of the * TARGET_TIME_SERIES and the RELATED_TIME_SERIES * datasets. For example, for the RETAIL domain, the target is * demand, and for the CUSTOM domain, the target is * target_value. For more information, see * howitworks-missing-values.

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

The name of the schema attribute that specifies the data field to be * featurized. Amazon Forecast supports the target field of the * TARGET_TIME_SERIES and the RELATED_TIME_SERIES * datasets. For example, for the RETAIL domain, the target is * demand, and for the CUSTOM domain, the target is * target_value. For more information, see * howitworks-missing-values.

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

The name of the schema attribute that specifies the data field to be * featurized. Amazon Forecast supports the target field of the * TARGET_TIME_SERIES and the RELATED_TIME_SERIES * datasets. For example, for the RETAIL domain, the target is * demand, and for the CUSTOM domain, the target is * target_value. For more information, see * howitworks-missing-values.

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

The name of the schema attribute that specifies the data field to be * featurized. Amazon Forecast supports the target field of the * TARGET_TIME_SERIES and the RELATED_TIME_SERIES * datasets. For example, for the RETAIL domain, the target is * demand, and for the CUSTOM domain, the target is * target_value. For more information, see * howitworks-missing-values.

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

The name of the schema attribute that specifies the data field to be * featurized. Amazon Forecast supports the target field of the * TARGET_TIME_SERIES and the RELATED_TIME_SERIES * datasets. For example, for the RETAIL domain, the target is * demand, and for the CUSTOM domain, the target is * target_value. For more information, see * howitworks-missing-values.

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

The name of the schema attribute that specifies the data field to be * featurized. Amazon Forecast supports the target field of the * TARGET_TIME_SERIES and the RELATED_TIME_SERIES * datasets. For example, for the RETAIL domain, the target is * demand, and for the CUSTOM domain, the target is * target_value. For more information, see * howitworks-missing-values.

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

An array of one FeaturizationMethod object that specifies the * feature transformation method.

*/ inline const Aws::Vector& GetFeaturizationPipeline() const{ return m_featurizationPipeline; } /** *

An array of one FeaturizationMethod object that specifies the * feature transformation method.

*/ inline bool FeaturizationPipelineHasBeenSet() const { return m_featurizationPipelineHasBeenSet; } /** *

An array of one FeaturizationMethod object that specifies the * feature transformation method.

*/ inline void SetFeaturizationPipeline(const Aws::Vector& value) { m_featurizationPipelineHasBeenSet = true; m_featurizationPipeline = value; } /** *

An array of one FeaturizationMethod object that specifies the * feature transformation method.

*/ inline void SetFeaturizationPipeline(Aws::Vector&& value) { m_featurizationPipelineHasBeenSet = true; m_featurizationPipeline = std::move(value); } /** *

An array of one FeaturizationMethod object that specifies the * feature transformation method.

*/ inline Featurization& WithFeaturizationPipeline(const Aws::Vector& value) { SetFeaturizationPipeline(value); return *this;} /** *

An array of one FeaturizationMethod object that specifies the * feature transformation method.

*/ inline Featurization& WithFeaturizationPipeline(Aws::Vector&& value) { SetFeaturizationPipeline(std::move(value)); return *this;} /** *

An array of one FeaturizationMethod object that specifies the * feature transformation method.

*/ inline Featurization& AddFeaturizationPipeline(const FeaturizationMethod& value) { m_featurizationPipelineHasBeenSet = true; m_featurizationPipeline.push_back(value); return *this; } /** *

An array of one FeaturizationMethod object that specifies the * feature transformation method.

*/ inline Featurization& AddFeaturizationPipeline(FeaturizationMethod&& value) { m_featurizationPipelineHasBeenSet = true; m_featurizationPipeline.push_back(std::move(value)); return *this; } private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; Aws::Vector m_featurizationPipeline; bool m_featurizationPipelineHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws