AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ErrorMetric.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ForecastService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_FORECASTSERVICE_API ErrorMetric() = default;
36 AWS_FORECASTSERVICE_API ErrorMetric(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FORECASTSERVICE_API ErrorMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetForecastType() const { return m_forecastType; }
46 inline bool ForecastTypeHasBeenSet() const { return m_forecastTypeHasBeenSet; }
47 template<typename ForecastTypeT = Aws::String>
48 void SetForecastType(ForecastTypeT&& value) { m_forecastTypeHasBeenSet = true; m_forecastType = std::forward<ForecastTypeT>(value); }
49 template<typename ForecastTypeT = Aws::String>
50 ErrorMetric& WithForecastType(ForecastTypeT&& value) { SetForecastType(std::forward<ForecastTypeT>(value)); return *this;}
52
54
57 inline double GetWAPE() const { return m_wAPE; }
58 inline bool WAPEHasBeenSet() const { return m_wAPEHasBeenSet; }
59 inline void SetWAPE(double value) { m_wAPEHasBeenSet = true; m_wAPE = value; }
60 inline ErrorMetric& WithWAPE(double value) { SetWAPE(value); return *this;}
62
64
67 inline double GetRMSE() const { return m_rMSE; }
68 inline bool RMSEHasBeenSet() const { return m_rMSEHasBeenSet; }
69 inline void SetRMSE(double value) { m_rMSEHasBeenSet = true; m_rMSE = value; }
70 inline ErrorMetric& WithRMSE(double value) { SetRMSE(value); return *this;}
72
74
77 inline double GetMASE() const { return m_mASE; }
78 inline bool MASEHasBeenSet() const { return m_mASEHasBeenSet; }
79 inline void SetMASE(double value) { m_mASEHasBeenSet = true; m_mASE = value; }
80 inline ErrorMetric& WithMASE(double value) { SetMASE(value); return *this;}
82
84
87 inline double GetMAPE() const { return m_mAPE; }
88 inline bool MAPEHasBeenSet() const { return m_mAPEHasBeenSet; }
89 inline void SetMAPE(double value) { m_mAPEHasBeenSet = true; m_mAPE = value; }
90 inline ErrorMetric& WithMAPE(double value) { SetMAPE(value); return *this;}
92 private:
93
94 Aws::String m_forecastType;
95 bool m_forecastTypeHasBeenSet = false;
96
97 double m_wAPE{0.0};
98 bool m_wAPEHasBeenSet = false;
99
100 double m_rMSE{0.0};
101 bool m_rMSEHasBeenSet = false;
102
103 double m_mASE{0.0};
104 bool m_mASEHasBeenSet = false;
105
106 double m_mAPE{0.0};
107 bool m_mAPEHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ForecastService
112} // namespace Aws
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorMetric & WithWAPE(double value)
Definition ErrorMetric.h:60
ErrorMetric & WithForecastType(ForecastTypeT &&value)
Definition ErrorMetric.h:50
AWS_FORECASTSERVICE_API ErrorMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorMetric & WithMAPE(double value)
Definition ErrorMetric.h:90
ErrorMetric & WithRMSE(double value)
Definition ErrorMetric.h:70
AWS_FORECASTSERVICE_API ErrorMetric(Aws::Utils::Json::JsonView jsonValue)
ErrorMetric & WithMASE(double value)
Definition ErrorMetric.h:80
AWS_FORECASTSERVICE_API ErrorMetric()=default
const Aws::String & GetForecastType() const
Definition ErrorMetric.h:45
void SetForecastType(ForecastTypeT &&value)
Definition ErrorMetric.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue