AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricResult.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
37 {
38 public:
39 AWS_FORECASTSERVICE_API MetricResult() = default;
40 AWS_FORECASTSERVICE_API MetricResult(Aws::Utils::Json::JsonView jsonValue);
41 AWS_FORECASTSERVICE_API MetricResult& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetMetricName() const { return m_metricName; }
50 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
51 template<typename MetricNameT = Aws::String>
52 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
53 template<typename MetricNameT = Aws::String>
54 MetricResult& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
56
58
61 inline double GetMetricValue() const { return m_metricValue; }
62 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
63 inline void SetMetricValue(double value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
64 inline MetricResult& WithMetricValue(double value) { SetMetricValue(value); return *this;}
66 private:
67
68 Aws::String m_metricName;
69 bool m_metricNameHasBeenSet = false;
70
71 double m_metricValue{0.0};
72 bool m_metricValueHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ForecastService
77} // namespace Aws
MetricResult & WithMetricName(MetricNameT &&value)
void SetMetricName(MetricNameT &&value)
const Aws::String & GetMetricName() const
AWS_FORECASTSERVICE_API MetricResult(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FORECASTSERVICE_API MetricResult()=default
MetricResult & WithMetricValue(double value)
AWS_FORECASTSERVICE_API MetricResult & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue