AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NamespaceT = Aws::String>
52 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
53 template<typename NamespaceT = Aws::String>
54 MetricReference& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
56
58
61 inline const Aws::String& GetMetricType() const { return m_metricType; }
62 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
63 template<typename MetricTypeT = Aws::String>
64 void SetMetricType(MetricTypeT&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::forward<MetricTypeT>(value); }
65 template<typename MetricTypeT = Aws::String>
66 MetricReference& WithMetricType(MetricTypeT&& value) { SetMetricType(std::forward<MetricTypeT>(value)); return *this;}
68
70
75 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
76 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
77 template<typename DimensionsT = Aws::Vector<Dimension>>
78 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
79 template<typename DimensionsT = Aws::Vector<Dimension>>
80 MetricReference& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
81 template<typename DimensionsT = Dimension>
82 MetricReference& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
84
86
89 inline const Aws::String& GetMetricName() const { return m_metricName; }
90 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
91 template<typename MetricNameT = Aws::String>
92 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
93 template<typename MetricNameT = Aws::String>
94 MetricReference& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
96
98
101 inline const Aws::String& GetAccountId() const { return m_accountId; }
102 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
103 template<typename AccountIdT = Aws::String>
104 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
105 template<typename AccountIdT = Aws::String>
106 MetricReference& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
108 private:
109
110 Aws::String m_namespace;
111 bool m_namespaceHasBeenSet = false;
112
113 Aws::String m_metricType;
114 bool m_metricTypeHasBeenSet = false;
115
116 Aws::Vector<Dimension> m_dimensions;
117 bool m_dimensionsHasBeenSet = false;
118
119 Aws::String m_metricName;
120 bool m_metricNameHasBeenSet = false;
121
122 Aws::String m_accountId;
123 bool m_accountIdHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace ApplicationSignals
128} // namespace Aws
MetricReference & WithNamespace(NamespaceT &&value)
MetricReference & WithDimensions(DimensionsT &&value)
const Aws::Vector< Dimension > & GetDimensions() const
AWS_APPLICATIONSIGNALS_API MetricReference & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricReference & WithAccountId(AccountIdT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API MetricReference()=default
AWS_APPLICATIONSIGNALS_API MetricReference(Aws::Utils::Json::JsonView jsonValue)
MetricReference & WithMetricName(MetricNameT &&value)
MetricReference & AddDimensions(DimensionsT &&value)
MetricReference & WithMetricType(MetricTypeT &&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