AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Metrics.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/forecast/model/WeightedQuantileLoss.h>
10#include <aws/forecast/model/ErrorMetric.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ForecastService
24{
25namespace Model
26{
27
34 class Metrics
35 {
36 public:
37 AWS_FORECASTSERVICE_API Metrics();
38 AWS_FORECASTSERVICE_API Metrics(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FORECASTSERVICE_API Metrics& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<WeightedQuantileLoss>& GetWeightedQuantileLosses() const{ return m_weightedQuantileLosses; }
50 inline bool WeightedQuantileLossesHasBeenSet() const { return m_weightedQuantileLossesHasBeenSet; }
51 inline void SetWeightedQuantileLosses(const Aws::Vector<WeightedQuantileLoss>& value) { m_weightedQuantileLossesHasBeenSet = true; m_weightedQuantileLosses = value; }
52 inline void SetWeightedQuantileLosses(Aws::Vector<WeightedQuantileLoss>&& value) { m_weightedQuantileLossesHasBeenSet = true; m_weightedQuantileLosses = std::move(value); }
55 inline Metrics& AddWeightedQuantileLosses(const WeightedQuantileLoss& value) { m_weightedQuantileLossesHasBeenSet = true; m_weightedQuantileLosses.push_back(value); return *this; }
56 inline Metrics& AddWeightedQuantileLosses(WeightedQuantileLoss&& value) { m_weightedQuantileLossesHasBeenSet = true; m_weightedQuantileLosses.push_back(std::move(value)); return *this; }
58
60
65 inline const Aws::Vector<ErrorMetric>& GetErrorMetrics() const{ return m_errorMetrics; }
66 inline bool ErrorMetricsHasBeenSet() const { return m_errorMetricsHasBeenSet; }
67 inline void SetErrorMetrics(const Aws::Vector<ErrorMetric>& value) { m_errorMetricsHasBeenSet = true; m_errorMetrics = value; }
68 inline void SetErrorMetrics(Aws::Vector<ErrorMetric>&& value) { m_errorMetricsHasBeenSet = true; m_errorMetrics = std::move(value); }
69 inline Metrics& WithErrorMetrics(const Aws::Vector<ErrorMetric>& value) { SetErrorMetrics(value); return *this;}
70 inline Metrics& WithErrorMetrics(Aws::Vector<ErrorMetric>&& value) { SetErrorMetrics(std::move(value)); return *this;}
71 inline Metrics& AddErrorMetrics(const ErrorMetric& value) { m_errorMetricsHasBeenSet = true; m_errorMetrics.push_back(value); return *this; }
72 inline Metrics& AddErrorMetrics(ErrorMetric&& value) { m_errorMetricsHasBeenSet = true; m_errorMetrics.push_back(std::move(value)); return *this; }
74
76
79 inline double GetAverageWeightedQuantileLoss() const{ return m_averageWeightedQuantileLoss; }
80 inline bool AverageWeightedQuantileLossHasBeenSet() const { return m_averageWeightedQuantileLossHasBeenSet; }
81 inline void SetAverageWeightedQuantileLoss(double value) { m_averageWeightedQuantileLossHasBeenSet = true; m_averageWeightedQuantileLoss = value; }
82 inline Metrics& WithAverageWeightedQuantileLoss(double value) { SetAverageWeightedQuantileLoss(value); return *this;}
84 private:
85
86 Aws::Vector<WeightedQuantileLoss> m_weightedQuantileLosses;
87 bool m_weightedQuantileLossesHasBeenSet = false;
88
89 Aws::Vector<ErrorMetric> m_errorMetrics;
90 bool m_errorMetricsHasBeenSet = false;
91
92 double m_averageWeightedQuantileLoss;
93 bool m_averageWeightedQuantileLossHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ForecastService
98} // namespace Aws
Metrics & AddWeightedQuantileLosses(const WeightedQuantileLoss &value)
Definition Metrics.h:55
bool WeightedQuantileLossesHasBeenSet() const
Definition Metrics.h:50
void SetErrorMetrics(const Aws::Vector< ErrorMetric > &value)
Definition Metrics.h:67
void SetErrorMetrics(Aws::Vector< ErrorMetric > &&value)
Definition Metrics.h:68
const Aws::Vector< WeightedQuantileLoss > & GetWeightedQuantileLosses() const
Definition Metrics.h:49
void SetAverageWeightedQuantileLoss(double value)
Definition Metrics.h:81
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWeightedQuantileLosses(Aws::Vector< WeightedQuantileLoss > &&value)
Definition Metrics.h:52
Metrics & WithWeightedQuantileLosses(Aws::Vector< WeightedQuantileLoss > &&value)
Definition Metrics.h:54
double GetAverageWeightedQuantileLoss() const
Definition Metrics.h:79
void SetWeightedQuantileLosses(const Aws::Vector< WeightedQuantileLoss > &value)
Definition Metrics.h:51
Metrics & AddErrorMetrics(const ErrorMetric &value)
Definition Metrics.h:71
AWS_FORECASTSERVICE_API Metrics(Aws::Utils::Json::JsonView jsonValue)
bool AverageWeightedQuantileLossHasBeenSet() const
Definition Metrics.h:80
Metrics & WithAverageWeightedQuantileLoss(double value)
Definition Metrics.h:82
Metrics & AddWeightedQuantileLosses(WeightedQuantileLoss &&value)
Definition Metrics.h:56
AWS_FORECASTSERVICE_API Metrics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ErrorMetric > & GetErrorMetrics() const
Definition Metrics.h:65
AWS_FORECASTSERVICE_API Metrics()
Metrics & WithErrorMetrics(Aws::Vector< ErrorMetric > &&value)
Definition Metrics.h:70
Metrics & WithWeightedQuantileLosses(const Aws::Vector< WeightedQuantileLoss > &value)
Definition Metrics.h:53
Metrics & WithErrorMetrics(const Aws::Vector< ErrorMetric > &value)
Definition Metrics.h:69
Metrics & AddErrorMetrics(ErrorMetric &&value)
Definition Metrics.h:72
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue