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

Provides information about a forecast. Returned as part of the * QueryForecast response.

See Also:

AWS * API Reference

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

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline const Aws::Map>& GetPredictions() const{ return m_predictions; } /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline bool PredictionsHasBeenSet() const { return m_predictionsHasBeenSet; } /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline void SetPredictions(const Aws::Map>& value) { m_predictionsHasBeenSet = true; m_predictions = value; } /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline void SetPredictions(Aws::Map>&& value) { m_predictionsHasBeenSet = true; m_predictions = std::move(value); } /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline Forecast& WithPredictions(const Aws::Map>& value) { SetPredictions(value); return *this;} /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline Forecast& WithPredictions(Aws::Map>&& value) { SetPredictions(std::move(value)); return *this;} /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline Forecast& AddPredictions(const Aws::String& key, const Aws::Vector& value) { m_predictionsHasBeenSet = true; m_predictions.emplace(key, value); return *this; } /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline Forecast& AddPredictions(Aws::String&& key, const Aws::Vector& value) { m_predictionsHasBeenSet = true; m_predictions.emplace(std::move(key), value); return *this; } /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline Forecast& AddPredictions(const Aws::String& key, Aws::Vector&& value) { m_predictionsHasBeenSet = true; m_predictions.emplace(key, std::move(value)); return *this; } /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline Forecast& AddPredictions(Aws::String&& key, Aws::Vector&& value) { m_predictionsHasBeenSet = true; m_predictions.emplace(std::move(key), std::move(value)); return *this; } /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline Forecast& AddPredictions(const char* key, Aws::Vector&& value) { m_predictionsHasBeenSet = true; m_predictions.emplace(key, std::move(value)); return *this; } /** *

The forecast.

The string of the string-to-array map is one of * the following values:

  • p10

  • p50

  • *

    p90

The default setting is ["0.1", "0.5", * "0.9"]. Use the optional ForecastTypes parameter of the CreateForecast * operation to change the values. The values will vary depending on how this is * set, with a minimum of 1 and a maximum of 5.

*/ inline Forecast& AddPredictions(const char* key, const Aws::Vector& value) { m_predictionsHasBeenSet = true; m_predictions.emplace(key, value); return *this; } private: Aws::Map> m_predictions; bool m_predictionsHasBeenSet = false; }; } // namespace Model } // namespace ForecastQueryService } // namespace Aws