AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
49 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
50 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
51 inline Metric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
52 inline Metric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
53 inline Metric& WithMetricName(const char* value) { SetMetricName(value); return *this;}
55
57
60 inline const AggregationFunction& GetAggregationFunction() const{ return m_aggregationFunction; }
61 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
62 inline void SetAggregationFunction(const AggregationFunction& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = value; }
63 inline void SetAggregationFunction(AggregationFunction&& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = std::move(value); }
64 inline Metric& WithAggregationFunction(const AggregationFunction& value) { SetAggregationFunction(value); return *this;}
65 inline Metric& WithAggregationFunction(AggregationFunction&& value) { SetAggregationFunction(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetNamespace() const{ return m_namespace; }
73 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
74 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
75 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
76 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
77 inline Metric& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
78 inline Metric& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
79 inline Metric& WithNamespace(const char* value) { SetNamespace(value); return *this;}
81 private:
82
83 Aws::String m_metricName;
84 bool m_metricNameHasBeenSet = false;
85
86 AggregationFunction m_aggregationFunction;
87 bool m_aggregationFunctionHasBeenSet = false;
88
89 Aws::String m_namespace;
90 bool m_namespaceHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace LookoutMetrics
95} // namespace Aws
Metric & WithMetricName(const char *value)
Definition Metric.h:53
Metric & WithAggregationFunction(AggregationFunction &&value)
Definition Metric.h:65
Metric & WithNamespace(Aws::String &&value)
Definition Metric.h:78
void SetNamespace(const Aws::String &value)
Definition Metric.h:74
AWS_LOOKOUTMETRICS_API Metric()
void SetAggregationFunction(AggregationFunction &&value)
Definition Metric.h:63
const Aws::String & GetMetricName() const
Definition Metric.h:46
AWS_LOOKOUTMETRICS_API Metric(Aws::Utils::Json::JsonView jsonValue)
void SetNamespace(Aws::String &&value)
Definition Metric.h:75
Metric & WithNamespace(const Aws::String &value)
Definition Metric.h:77
void SetNamespace(const char *value)
Definition Metric.h:76
const Aws::String & GetNamespace() const
Definition Metric.h:72
void SetMetricName(Aws::String &&value)
Definition Metric.h:49
void SetMetricName(const char *value)
Definition Metric.h:50
void SetAggregationFunction(const AggregationFunction &value)
Definition Metric.h:62
Metric & WithMetricName(const Aws::String &value)
Definition Metric.h:51
Metric & WithAggregationFunction(const AggregationFunction &value)
Definition Metric.h:64
bool AggregationFunctionHasBeenSet() const
Definition Metric.h:61
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
Metric & WithMetricName(Aws::String &&value)
Definition Metric.h:52
const AggregationFunction & GetAggregationFunction() const
Definition Metric.h:60
void SetMetricName(const Aws::String &value)
Definition Metric.h:48
Metric & WithNamespace(const char *value)
Definition Metric.h:79
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