AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricReference.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
36 {
37 public:
38 AWS_APPLICATIONSIGNALS_API MetricReference();
39 AWS_APPLICATIONSIGNALS_API MetricReference(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API MetricReference& 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 MetricReference& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
55 inline MetricReference& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
56 inline MetricReference& WithNamespace(const char* value) { SetNamespace(value); return *this;}
58
60
63 inline const Aws::String& GetMetricType() const{ return m_metricType; }
64 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
65 inline void SetMetricType(const Aws::String& value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
66 inline void SetMetricType(Aws::String&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); }
67 inline void SetMetricType(const char* value) { m_metricTypeHasBeenSet = true; m_metricType.assign(value); }
68 inline MetricReference& WithMetricType(const Aws::String& value) { SetMetricType(value); return *this;}
69 inline MetricReference& WithMetricType(Aws::String&& value) { SetMetricType(std::move(value)); return *this;}
70 inline MetricReference& WithMetricType(const char* value) { SetMetricType(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 MetricReference& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
84 inline MetricReference& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
85 inline MetricReference& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
86 inline MetricReference& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::String& GetMetricName() const{ return m_metricName; }
94 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
95 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
96 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
97 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
98 inline MetricReference& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
99 inline MetricReference& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
100 inline MetricReference& WithMetricName(const char* value) { SetMetricName(value); return *this;}
102 private:
103
104 Aws::String m_namespace;
105 bool m_namespaceHasBeenSet = false;
106
107 Aws::String m_metricType;
108 bool m_metricTypeHasBeenSet = false;
109
110 Aws::Vector<Dimension> m_dimensions;
111 bool m_dimensionsHasBeenSet = false;
112
113 Aws::String m_metricName;
114 bool m_metricNameHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ApplicationSignals
119} // namespace Aws
MetricReference & AddDimensions(const Dimension &value)
MetricReference & AddDimensions(Dimension &&value)
MetricReference & WithDimensions(Aws::Vector< Dimension > &&value)
MetricReference & WithMetricName(const char *value)
MetricReference & WithMetricName(const Aws::String &value)
const Aws::Vector< Dimension > & GetDimensions() const
MetricReference & WithNamespace(const Aws::String &value)
AWS_APPLICATIONSIGNALS_API MetricReference & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDimensions(const Aws::Vector< Dimension > &value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricReference & WithNamespace(Aws::String &&value)
MetricReference & WithMetricType(Aws::String &&value)
AWS_APPLICATIONSIGNALS_API MetricReference()
void SetMetricName(const Aws::String &value)
MetricReference & WithMetricType(const Aws::String &value)
void SetDimensions(Aws::Vector< Dimension > &&value)
void SetMetricType(const Aws::String &value)
MetricReference & WithDimensions(const Aws::Vector< Dimension > &value)
MetricReference & WithMetricType(const char *value)
AWS_APPLICATIONSIGNALS_API MetricReference(Aws::Utils::Json::JsonView jsonValue)
MetricReference & WithMetricName(Aws::String &&value)
MetricReference & WithNamespace(const char *value)
void SetNamespace(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue