AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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