AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceSummary.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/application-signals/model/MetricReference.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ApplicationSignals
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPLICATIONSIGNALS_API ServiceSummary() = default;
39 AWS_APPLICATIONSIGNALS_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API ServiceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
61 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
62 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
63 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
64 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
65 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
66 ServiceSummary& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
67 template<typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
68 ServiceSummary& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
69 m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value)); return *this;
70 }
72
74
105 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetAttributeMaps() const { return m_attributeMaps; }
106 inline bool AttributeMapsHasBeenSet() const { return m_attributeMapsHasBeenSet; }
107 template<typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
108 void SetAttributeMaps(AttributeMapsT&& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps = std::forward<AttributeMapsT>(value); }
109 template<typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
110 ServiceSummary& WithAttributeMaps(AttributeMapsT&& value) { SetAttributeMaps(std::forward<AttributeMapsT>(value)); return *this;}
111 template<typename AttributeMapsT = Aws::Map<Aws::String, Aws::String>>
112 ServiceSummary& AddAttributeMaps(AttributeMapsT&& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps.emplace_back(std::forward<AttributeMapsT>(value)); return *this; }
114
116
120 inline const Aws::Vector<MetricReference>& GetMetricReferences() const { return m_metricReferences; }
121 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
122 template<typename MetricReferencesT = Aws::Vector<MetricReference>>
123 void SetMetricReferences(MetricReferencesT&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::forward<MetricReferencesT>(value); }
124 template<typename MetricReferencesT = Aws::Vector<MetricReference>>
125 ServiceSummary& WithMetricReferences(MetricReferencesT&& value) { SetMetricReferences(std::forward<MetricReferencesT>(value)); return *this;}
126 template<typename MetricReferencesT = MetricReference>
127 ServiceSummary& AddMetricReferences(MetricReferencesT&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value)); return *this; }
129 private:
130
132 bool m_keyAttributesHasBeenSet = false;
133
135 bool m_attributeMapsHasBeenSet = false;
136
137 Aws::Vector<MetricReference> m_metricReferences;
138 bool m_metricReferencesHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ApplicationSignals
143} // namespace Aws
AWS_APPLICATIONSIGNALS_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue)
ServiceSummary & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
ServiceSummary & WithAttributeMaps(AttributeMapsT &&value)
AWS_APPLICATIONSIGNALS_API ServiceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceSummary & AddMetricReferences(MetricReferencesT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetAttributeMaps() const
const Aws::Vector< MetricReference > & GetMetricReferences() const
void SetMetricReferences(MetricReferencesT &&value)
void SetAttributeMaps(AttributeMapsT &&value)
void SetKeyAttributes(KeyAttributesT &&value)
ServiceSummary & WithMetricReferences(MetricReferencesT &&value)
ServiceSummary & WithKeyAttributes(KeyAttributesT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
ServiceSummary & AddAttributeMaps(AttributeMapsT &&value)
AWS_APPLICATIONSIGNALS_API ServiceSummary()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue