AWS SDK for C++

AWS SDK for C++ Version 1.11.776

Loading...
Searching...
No Matches
MetricSource.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationSignals {
21namespace Model {
22
30 public:
31 AWS_APPLICATIONSIGNALS_API MetricSource() = default;
32 AWS_APPLICATIONSIGNALS_API MetricSource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONSIGNALS_API MetricSource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Map<Aws::String, Aws::String>& GetMetricSourceKeyAttributes() const { return m_metricSourceKeyAttributes; }
41 inline bool MetricSourceKeyAttributesHasBeenSet() const { return m_metricSourceKeyAttributesHasBeenSet; }
42 template <typename MetricSourceKeyAttributesT = Aws::Map<Aws::String, Aws::String>>
43 void SetMetricSourceKeyAttributes(MetricSourceKeyAttributesT&& value) {
44 m_metricSourceKeyAttributesHasBeenSet = true;
45 m_metricSourceKeyAttributes = std::forward<MetricSourceKeyAttributesT>(value);
46 }
47 template <typename MetricSourceKeyAttributesT = Aws::Map<Aws::String, Aws::String>>
48 MetricSource& WithMetricSourceKeyAttributes(MetricSourceKeyAttributesT&& value) {
49 SetMetricSourceKeyAttributes(std::forward<MetricSourceKeyAttributesT>(value));
50 return *this;
51 }
52 template <typename MetricSourceKeyAttributesKeyT = Aws::String, typename MetricSourceKeyAttributesValueT = Aws::String>
53 MetricSource& AddMetricSourceKeyAttributes(MetricSourceKeyAttributesKeyT&& key, MetricSourceKeyAttributesValueT&& value) {
54 m_metricSourceKeyAttributesHasBeenSet = true;
55 m_metricSourceKeyAttributes.emplace(std::forward<MetricSourceKeyAttributesKeyT>(key),
56 std::forward<MetricSourceKeyAttributesValueT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Map<Aws::String, Aws::String>& GetMetricSourceAttributes() const { return m_metricSourceAttributes; }
66 inline bool MetricSourceAttributesHasBeenSet() const { return m_metricSourceAttributesHasBeenSet; }
67 template <typename MetricSourceAttributesT = Aws::Map<Aws::String, Aws::String>>
68 void SetMetricSourceAttributes(MetricSourceAttributesT&& value) {
69 m_metricSourceAttributesHasBeenSet = true;
70 m_metricSourceAttributes = std::forward<MetricSourceAttributesT>(value);
71 }
72 template <typename MetricSourceAttributesT = Aws::Map<Aws::String, Aws::String>>
73 MetricSource& WithMetricSourceAttributes(MetricSourceAttributesT&& value) {
74 SetMetricSourceAttributes(std::forward<MetricSourceAttributesT>(value));
75 return *this;
76 }
77 template <typename MetricSourceAttributesKeyT = Aws::String, typename MetricSourceAttributesValueT = Aws::String>
78 MetricSource& AddMetricSourceAttributes(MetricSourceAttributesKeyT&& key, MetricSourceAttributesValueT&& value) {
79 m_metricSourceAttributesHasBeenSet = true;
80 m_metricSourceAttributes.emplace(std::forward<MetricSourceAttributesKeyT>(key), std::forward<MetricSourceAttributesValueT>(value));
81 return *this;
82 }
84 private:
85 Aws::Map<Aws::String, Aws::String> m_metricSourceKeyAttributes;
86
87 Aws::Map<Aws::String, Aws::String> m_metricSourceAttributes;
88 bool m_metricSourceKeyAttributesHasBeenSet = false;
89 bool m_metricSourceAttributesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ApplicationSignals
94} // namespace Aws
MetricSource & WithMetricSourceKeyAttributes(MetricSourceKeyAttributesT &&value)
AWS_APPLICATIONSIGNALS_API MetricSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetricSourceAttributes(MetricSourceAttributesT &&value)
void SetMetricSourceKeyAttributes(MetricSourceKeyAttributesT &&value)
MetricSource & AddMetricSourceKeyAttributes(MetricSourceKeyAttributesKeyT &&key, MetricSourceKeyAttributesValueT &&value)
AWS_APPLICATIONSIGNALS_API MetricSource()=default
MetricSource & AddMetricSourceAttributes(MetricSourceAttributesKeyT &&key, MetricSourceAttributesValueT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetMetricSourceAttributes() const
const Aws::Map< Aws::String, Aws::String > & GetMetricSourceKeyAttributes() const
AWS_APPLICATIONSIGNALS_API MetricSource(Aws::Utils::Json::JsonView jsonValue)
MetricSource & WithMetricSourceAttributes(MetricSourceAttributesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue