AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Metric.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutmetrics/model/AggregationFunction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LookoutMetrics
23{
24namespace Model
25{
26
33 class Metric
34 {
35 public:
36 AWS_LOOKOUTMETRICS_API Metric() = default;
37 AWS_LOOKOUTMETRICS_API Metric(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API Metric& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMetricName() const { return m_metricName; }
47 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
48 template<typename MetricNameT = Aws::String>
49 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
50 template<typename MetricNameT = Aws::String>
51 Metric& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
53
55
58 inline AggregationFunction GetAggregationFunction() const { return m_aggregationFunction; }
59 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
60 inline void SetAggregationFunction(AggregationFunction value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = value; }
63
65
68 inline const Aws::String& GetNamespace() const { return m_namespace; }
69 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
70 template<typename NamespaceT = Aws::String>
71 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
72 template<typename NamespaceT = Aws::String>
73 Metric& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
75 private:
76
77 Aws::String m_metricName;
78 bool m_metricNameHasBeenSet = false;
79
81 bool m_aggregationFunctionHasBeenSet = false;
82
83 Aws::String m_namespace;
84 bool m_namespaceHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace LookoutMetrics
89} // namespace Aws
void SetNamespace(NamespaceT &&value)
Definition Metric.h:71
AWS_LOOKOUTMETRICS_API Metric()=default
AggregationFunction GetAggregationFunction() const
Definition Metric.h:58
void SetAggregationFunction(AggregationFunction value)
Definition Metric.h:60
const Aws::String & GetMetricName() const
Definition Metric.h:46
AWS_LOOKOUTMETRICS_API Metric(Aws::Utils::Json::JsonView jsonValue)
void SetMetricName(MetricNameT &&value)
Definition Metric.h:49
const Aws::String & GetNamespace() const
Definition Metric.h:68
Metric & WithNamespace(NamespaceT &&value)
Definition Metric.h:73
Metric & WithMetricName(MetricNameT &&value)
Definition Metric.h:51
Metric & WithAggregationFunction(AggregationFunction value)
Definition Metric.h:61
bool AggregationFunctionHasBeenSet() const
Definition Metric.h:59
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOOKOUTMETRICS_API Metric & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue