AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetForecastType(const Aws::String& value) { m_forecastTypeHasBeenSet = true; m_forecastType = value; }
48 inline void SetForecastType(Aws::String&& value) { m_forecastTypeHasBeenSet = true; m_forecastType = std::move(value); }
49 inline void SetForecastType(const char* value) { m_forecastTypeHasBeenSet = true; m_forecastType.assign(value); }
50 inline ErrorMetric& WithForecastType(const Aws::String& value) { SetForecastType(value); return *this;}
51 inline ErrorMetric& WithForecastType(Aws::String&& value) { SetForecastType(std::move(value)); return *this;}
52 inline ErrorMetric& WithForecastType(const char* value) { SetForecastType(value); return *this;}
54
56
59 inline double GetWAPE() const{ return m_wAPE; }
60 inline bool WAPEHasBeenSet() const { return m_wAPEHasBeenSet; }
61 inline void SetWAPE(double value) { m_wAPEHasBeenSet = true; m_wAPE = value; }
62 inline ErrorMetric& WithWAPE(double value) { SetWAPE(value); return *this;}
64
66
69 inline double GetRMSE() const{ return m_rMSE; }
70 inline bool RMSEHasBeenSet() const { return m_rMSEHasBeenSet; }
71 inline void SetRMSE(double value) { m_rMSEHasBeenSet = true; m_rMSE = value; }
72 inline ErrorMetric& WithRMSE(double value) { SetRMSE(value); return *this;}
74
76
79 inline double GetMASE() const{ return m_mASE; }
80 inline bool MASEHasBeenSet() const { return m_mASEHasBeenSet; }
81 inline void SetMASE(double value) { m_mASEHasBeenSet = true; m_mASE = value; }
82 inline ErrorMetric& WithMASE(double value) { SetMASE(value); return *this;}
84
86
89 inline double GetMAPE() const{ return m_mAPE; }
90 inline bool MAPEHasBeenSet() const { return m_mAPEHasBeenSet; }
91 inline void SetMAPE(double value) { m_mAPEHasBeenSet = true; m_mAPE = value; }
92 inline ErrorMetric& WithMAPE(double value) { SetMAPE(value); return *this;}
94 private:
95
96 Aws::String m_forecastType;
97 bool m_forecastTypeHasBeenSet = false;
98
99 double m_wAPE;
100 bool m_wAPEHasBeenSet = false;
101
102 double m_rMSE;
103 bool m_rMSEHasBeenSet = false;
104
105 double m_mASE;
106 bool m_mASEHasBeenSet = false;
107
108 double m_mAPE;
109 bool m_mAPEHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ForecastService
114} // namespace Aws
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FORECASTSERVICE_API ErrorMetric()
ErrorMetric & WithWAPE(double value)
Definition ErrorMetric.h:62
ErrorMetric & WithForecastType(const char *value)
Definition ErrorMetric.h:52
ErrorMetric & WithForecastType(Aws::String &&value)
Definition ErrorMetric.h:51
AWS_FORECASTSERVICE_API ErrorMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorMetric & WithMAPE(double value)
Definition ErrorMetric.h:92
ErrorMetric & WithRMSE(double value)
Definition ErrorMetric.h:72
void SetForecastType(const char *value)
Definition ErrorMetric.h:49
AWS_FORECASTSERVICE_API ErrorMetric(Aws::Utils::Json::JsonView jsonValue)
void SetForecastType(const Aws::String &value)
Definition ErrorMetric.h:47
ErrorMetric & WithForecastType(const Aws::String &value)
Definition ErrorMetric.h:50
void SetForecastType(Aws::String &&value)
Definition ErrorMetric.h:48
ErrorMetric & WithMASE(double value)
Definition ErrorMetric.h:82
const Aws::String & GetForecastType() const
Definition ErrorMetric.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue