AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
52 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
53 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
54 inline MetricResult& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
55 inline MetricResult& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
56 inline MetricResult& WithMetricName(const char* value) { SetMetricName(value); return *this;}
58
60
63 inline double GetMetricValue() const{ return m_metricValue; }
64 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
65 inline void SetMetricValue(double value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
66 inline MetricResult& WithMetricValue(double value) { SetMetricValue(value); return *this;}
68 private:
69
70 Aws::String m_metricName;
71 bool m_metricNameHasBeenSet = false;
72
73 double m_metricValue;
74 bool m_metricValueHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ForecastService
79} // namespace Aws
const Aws::String & GetMetricName() const
AWS_FORECASTSERVICE_API MetricResult(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetricName(Aws::String &&value)
MetricResult & WithMetricValue(double value)
void SetMetricName(const Aws::String &value)
MetricResult & WithMetricName(const Aws::String &value)
MetricResult & WithMetricName(Aws::String &&value)
MetricResult & WithMetricName(const char *value)
AWS_FORECASTSERVICE_API MetricResult()
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