AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ErrorMetric.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/forecast/ForecastService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ForecastService {
20namespace Model {
21
29 public:
30 AWS_FORECASTSERVICE_API ErrorMetric() = default;
31 AWS_FORECASTSERVICE_API ErrorMetric(Aws::Utils::Json::JsonView jsonValue);
32 AWS_FORECASTSERVICE_API ErrorMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetForecastType() const { return m_forecastType; }
40 inline bool ForecastTypeHasBeenSet() const { return m_forecastTypeHasBeenSet; }
41 template <typename ForecastTypeT = Aws::String>
42 void SetForecastType(ForecastTypeT&& value) {
43 m_forecastTypeHasBeenSet = true;
44 m_forecastType = std::forward<ForecastTypeT>(value);
45 }
46 template <typename ForecastTypeT = Aws::String>
47 ErrorMetric& WithForecastType(ForecastTypeT&& value) {
48 SetForecastType(std::forward<ForecastTypeT>(value));
49 return *this;
50 }
52
54
57 inline double GetWAPE() const { return m_wAPE; }
58 inline bool WAPEHasBeenSet() const { return m_wAPEHasBeenSet; }
59 inline void SetWAPE(double value) {
60 m_wAPEHasBeenSet = true;
61 m_wAPE = value;
62 }
63 inline ErrorMetric& WithWAPE(double value) {
64 SetWAPE(value);
65 return *this;
66 }
68
70
73 inline double GetRMSE() const { return m_rMSE; }
74 inline bool RMSEHasBeenSet() const { return m_rMSEHasBeenSet; }
75 inline void SetRMSE(double value) {
76 m_rMSEHasBeenSet = true;
77 m_rMSE = value;
78 }
79 inline ErrorMetric& WithRMSE(double value) {
80 SetRMSE(value);
81 return *this;
82 }
84
86
89 inline double GetMASE() const { return m_mASE; }
90 inline bool MASEHasBeenSet() const { return m_mASEHasBeenSet; }
91 inline void SetMASE(double value) {
92 m_mASEHasBeenSet = true;
93 m_mASE = value;
94 }
95 inline ErrorMetric& WithMASE(double value) {
96 SetMASE(value);
97 return *this;
98 }
100
102
105 inline double GetMAPE() const { return m_mAPE; }
106 inline bool MAPEHasBeenSet() const { return m_mAPEHasBeenSet; }
107 inline void SetMAPE(double value) {
108 m_mAPEHasBeenSet = true;
109 m_mAPE = value;
110 }
111 inline ErrorMetric& WithMAPE(double value) {
112 SetMAPE(value);
113 return *this;
114 }
116 private:
117 Aws::String m_forecastType;
118
119 double m_wAPE{0.0};
120
121 double m_rMSE{0.0};
122
123 double m_mASE{0.0};
124
125 double m_mAPE{0.0};
126 bool m_forecastTypeHasBeenSet = false;
127 bool m_wAPEHasBeenSet = false;
128 bool m_rMSEHasBeenSet = false;
129 bool m_mASEHasBeenSet = false;
130 bool m_mAPEHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ForecastService
135} // namespace Aws
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorMetric & WithWAPE(double value)
Definition ErrorMetric.h:63
ErrorMetric & WithForecastType(ForecastTypeT &&value)
Definition ErrorMetric.h:47
AWS_FORECASTSERVICE_API ErrorMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorMetric & WithMAPE(double value)
ErrorMetric & WithRMSE(double value)
Definition ErrorMetric.h:79
AWS_FORECASTSERVICE_API ErrorMetric(Aws::Utils::Json::JsonView jsonValue)
ErrorMetric & WithMASE(double value)
Definition ErrorMetric.h:95
AWS_FORECASTSERVICE_API ErrorMetric()=default
const Aws::String & GetForecastType() const
Definition ErrorMetric.h:39
void SetForecastType(ForecastTypeT &&value)
Definition ErrorMetric.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue