AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
WeightedQuantileLoss.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace ForecastService {
17namespace Model {
18
26 public:
27 AWS_FORECASTSERVICE_API WeightedQuantileLoss() = default;
28 AWS_FORECASTSERVICE_API WeightedQuantileLoss(Aws::Utils::Json::JsonView jsonValue);
29 AWS_FORECASTSERVICE_API WeightedQuantileLoss& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline double GetQuantile() const { return m_quantile; }
39 inline bool QuantileHasBeenSet() const { return m_quantileHasBeenSet; }
40 inline void SetQuantile(double value) {
41 m_quantileHasBeenSet = true;
42 m_quantile = value;
43 }
44 inline WeightedQuantileLoss& WithQuantile(double value) {
45 SetQuantile(value);
46 return *this;
47 }
49
51
55 inline double GetLossValue() const { return m_lossValue; }
56 inline bool LossValueHasBeenSet() const { return m_lossValueHasBeenSet; }
57 inline void SetLossValue(double value) {
58 m_lossValueHasBeenSet = true;
59 m_lossValue = value;
60 }
61 inline WeightedQuantileLoss& WithLossValue(double value) {
62 SetLossValue(value);
63 return *this;
64 }
66 private:
67 double m_quantile{0.0};
68
69 double m_lossValue{0.0};
70 bool m_quantileHasBeenSet = false;
71 bool m_lossValueHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace ForecastService
76} // namespace Aws
AWS_FORECASTSERVICE_API WeightedQuantileLoss & operator=(Aws::Utils::Json::JsonView jsonValue)
WeightedQuantileLoss & WithLossValue(double value)
WeightedQuantileLoss & WithQuantile(double value)
AWS_FORECASTSERVICE_API WeightedQuantileLoss()=default
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FORECASTSERVICE_API WeightedQuantileLoss(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue