AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
Forecast.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/forecastquery/ForecastQueryService_EXPORTS.h>
11#include <aws/forecastquery/model/DataPoint.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ForecastQueryService {
23namespace Model {
24
31class Forecast {
32 public:
33 AWS_FORECASTQUERYSERVICE_API Forecast() = default;
34 AWS_FORECASTQUERYSERVICE_API Forecast(Aws::Utils::Json::JsonView jsonValue);
35 AWS_FORECASTQUERYSERVICE_API Forecast& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_FORECASTQUERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
48 inline const Aws::Map<Aws::String, Aws::Vector<DataPoint>>& GetPredictions() const { return m_predictions; }
49 inline bool PredictionsHasBeenSet() const { return m_predictionsHasBeenSet; }
50 template <typename PredictionsT = Aws::Map<Aws::String, Aws::Vector<DataPoint>>>
51 void SetPredictions(PredictionsT&& value) {
52 m_predictionsHasBeenSet = true;
53 m_predictions = std::forward<PredictionsT>(value);
54 }
55 template <typename PredictionsT = Aws::Map<Aws::String, Aws::Vector<DataPoint>>>
56 Forecast& WithPredictions(PredictionsT&& value) {
57 SetPredictions(std::forward<PredictionsT>(value));
58 return *this;
59 }
60 template <typename PredictionsKeyT = Aws::String, typename PredictionsValueT = Aws::Vector<DataPoint>>
61 Forecast& AddPredictions(PredictionsKeyT&& key, PredictionsValueT&& value) {
62 m_predictionsHasBeenSet = true;
63 m_predictions.emplace(std::forward<PredictionsKeyT>(key), std::forward<PredictionsValueT>(value));
64 return *this;
65 }
67 private:
69 bool m_predictionsHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace ForecastQueryService
74} // namespace Aws
AWS_FORECASTQUERYSERVICE_API Forecast & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTQUERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::Vector< DataPoint > > & GetPredictions() const
Definition Forecast.h:48
AWS_FORECASTQUERYSERVICE_API Forecast(Aws::Utils::Json::JsonView jsonValue)
void SetPredictions(PredictionsT &&value)
Definition Forecast.h:51
AWS_FORECASTQUERYSERVICE_API Forecast()=default
Forecast & AddPredictions(PredictionsKeyT &&key, PredictionsValueT &&value)
Definition Forecast.h:61
Forecast & WithPredictions(PredictionsT &&value)
Definition Forecast.h:56
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue