AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
MetricDefinitionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rum/CloudWatchRUM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchRUM {
21namespace Model {
22
128 public:
129 AWS_CLOUDWATCHRUM_API MetricDefinitionRequest() = default;
130 AWS_CLOUDWATCHRUM_API MetricDefinitionRequest(Aws::Utils::Json::JsonView jsonValue);
132 AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const;
133
135
150 inline const Aws::String& GetName() const { return m_name; }
151 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
152 template <typename NameT = Aws::String>
153 void SetName(NameT&& value) {
154 m_nameHasBeenSet = true;
155 m_name = std::forward<NameT>(value);
156 }
157 template <typename NameT = Aws::String>
159 SetName(std::forward<NameT>(value));
160 return *this;
161 }
163
165
173 inline const Aws::String& GetValueKey() const { return m_valueKey; }
174 inline bool ValueKeyHasBeenSet() const { return m_valueKeyHasBeenSet; }
175 template <typename ValueKeyT = Aws::String>
176 void SetValueKey(ValueKeyT&& value) {
177 m_valueKeyHasBeenSet = true;
178 m_valueKey = std::forward<ValueKeyT>(value);
179 }
180 template <typename ValueKeyT = Aws::String>
182 SetValueKey(std::forward<ValueKeyT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::String& GetUnitLabel() const { return m_unitLabel; }
193 inline bool UnitLabelHasBeenSet() const { return m_unitLabelHasBeenSet; }
194 template <typename UnitLabelT = Aws::String>
195 void SetUnitLabel(UnitLabelT&& value) {
196 m_unitLabelHasBeenSet = true;
197 m_unitLabel = std::forward<UnitLabelT>(value);
198 }
199 template <typename UnitLabelT = Aws::String>
201 SetUnitLabel(std::forward<UnitLabelT>(value));
202 return *this;
203 }
205
207
221 inline const Aws::Map<Aws::String, Aws::String>& GetDimensionKeys() const { return m_dimensionKeys; }
222 inline bool DimensionKeysHasBeenSet() const { return m_dimensionKeysHasBeenSet; }
223 template <typename DimensionKeysT = Aws::Map<Aws::String, Aws::String>>
224 void SetDimensionKeys(DimensionKeysT&& value) {
225 m_dimensionKeysHasBeenSet = true;
226 m_dimensionKeys = std::forward<DimensionKeysT>(value);
227 }
228 template <typename DimensionKeysT = Aws::Map<Aws::String, Aws::String>>
230 SetDimensionKeys(std::forward<DimensionKeysT>(value));
231 return *this;
232 }
233 template <typename DimensionKeysKeyT = Aws::String, typename DimensionKeysValueT = Aws::String>
234 MetricDefinitionRequest& AddDimensionKeys(DimensionKeysKeyT&& key, DimensionKeysValueT&& value) {
235 m_dimensionKeysHasBeenSet = true;
236 m_dimensionKeys.emplace(std::forward<DimensionKeysKeyT>(key), std::forward<DimensionKeysValueT>(value));
237 return *this;
238 }
240
242
261 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
262 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
263 template <typename EventPatternT = Aws::String>
264 void SetEventPattern(EventPatternT&& value) {
265 m_eventPatternHasBeenSet = true;
266 m_eventPattern = std::forward<EventPatternT>(value);
267 }
268 template <typename EventPatternT = Aws::String>
270 SetEventPattern(std::forward<EventPatternT>(value));
271 return *this;
272 }
274
276
282 inline const Aws::String& GetNamespace() const { return m_namespace; }
283 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
284 template <typename NamespaceT = Aws::String>
285 void SetNamespace(NamespaceT&& value) {
286 m_namespaceHasBeenSet = true;
287 m_namespace = std::forward<NamespaceT>(value);
288 }
289 template <typename NamespaceT = Aws::String>
291 SetNamespace(std::forward<NamespaceT>(value));
292 return *this;
293 }
295 private:
296 Aws::String m_name;
297
298 Aws::String m_valueKey;
299
300 Aws::String m_unitLabel;
301
303
304 Aws::String m_eventPattern;
305
306 Aws::String m_namespace;
307 bool m_nameHasBeenSet = false;
308 bool m_valueKeyHasBeenSet = false;
309 bool m_unitLabelHasBeenSet = false;
310 bool m_dimensionKeysHasBeenSet = false;
311 bool m_eventPatternHasBeenSet = false;
312 bool m_namespaceHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace CloudWatchRUM
317} // namespace Aws
MetricDefinitionRequest & AddDimensionKeys(DimensionKeysKeyT &&key, DimensionKeysValueT &&value)
MetricDefinitionRequest & WithUnitLabel(UnitLabelT &&value)
MetricDefinitionRequest & WithDimensionKeys(DimensionKeysT &&value)
MetricDefinitionRequest & WithEventPattern(EventPatternT &&value)
MetricDefinitionRequest & WithNamespace(NamespaceT &&value)
MetricDefinitionRequest & WithValueKey(ValueKeyT &&value)
AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHRUM_API MetricDefinitionRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHRUM_API MetricDefinitionRequest()=default
AWS_CLOUDWATCHRUM_API MetricDefinitionRequest(Aws::Utils::Json::JsonView jsonValue)
MetricDefinitionRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDimensionKeys() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue