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/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/application-signals/model/Dimension.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ApplicationSignals
24{
25namespace Model
26{
27
35 class Metric
36 {
37 public:
38 AWS_APPLICATIONSIGNALS_API Metric();
39 AWS_APPLICATIONSIGNALS_API Metric(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API Metric& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetNamespace() const{ return m_namespace; }
50 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
51 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
52 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
53 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
54 inline Metric& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
55 inline Metric& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
56 inline Metric& WithNamespace(const char* value) { SetNamespace(value); return *this;}
58
60
63 inline const Aws::String& GetMetricName() const{ return m_metricName; }
64 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
65 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
66 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
67 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
68 inline Metric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
69 inline Metric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
70 inline Metric& WithMetricName(const char* value) { SetMetricName(value); return *this;}
72
74
79 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
80 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
81 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
82 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
83 inline Metric& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
84 inline Metric& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
85 inline Metric& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
86 inline Metric& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
88 private:
89
90 Aws::String m_namespace;
91 bool m_namespaceHasBeenSet = false;
92
93 Aws::String m_metricName;
94 bool m_metricNameHasBeenSet = false;
95
96 Aws::Vector<Dimension> m_dimensions;
97 bool m_dimensionsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace ApplicationSignals
102} // namespace Aws
void SetDimensions(const Aws::Vector< Dimension > &value)
Definition Metric.h:81
void SetMetricName(Aws::String &&value)
Definition Metric.h:66
void SetMetricName(const char *value)
Definition Metric.h:67
void SetMetricName(const Aws::String &value)
Definition Metric.h:65
Metric & AddDimensions(const Dimension &value)
Definition Metric.h:85
Metric & WithMetricName(const Aws::String &value)
Definition Metric.h:68
Metric & WithDimensions(const Aws::Vector< Dimension > &value)
Definition Metric.h:83
Metric & WithDimensions(Aws::Vector< Dimension > &&value)
Definition Metric.h:84
const Aws::String & GetMetricName() const
Definition Metric.h:63
void SetNamespace(Aws::String &&value)
Definition Metric.h:52
const Aws::Vector< Dimension > & GetDimensions() const
Definition Metric.h:79
AWS_APPLICATIONSIGNALS_API Metric & operator=(Aws::Utils::Json::JsonView jsonValue)
Metric & WithNamespace(Aws::String &&value)
Definition Metric.h:55
Metric & WithNamespace(const char *value)
Definition Metric.h:56
Metric & WithMetricName(Aws::String &&value)
Definition Metric.h:69
Metric & AddDimensions(Dimension &&value)
Definition Metric.h:86
void SetNamespace(const char *value)
Definition Metric.h:53
const Aws::String & GetNamespace() const
Definition Metric.h:49
void SetDimensions(Aws::Vector< Dimension > &&value)
Definition Metric.h:82
void SetNamespace(const Aws::String &value)
Definition Metric.h:51
Metric & WithMetricName(const char *value)
Definition Metric.h:70
AWS_APPLICATIONSIGNALS_API Metric(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API Metric()
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
Metric & WithNamespace(const Aws::String &value)
Definition Metric.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue