AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceSummary.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/MetricReference.h>
9#include <aws/application-signals/model/ServiceGroup.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ApplicationSignals {
24namespace Model {
25
33 public:
34 AWS_APPLICATIONSIGNALS_API ServiceSummary() = default;
35 AWS_APPLICATIONSIGNALS_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONSIGNALS_API ServiceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
56 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
57 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
58 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
59 void SetKeyAttributes(KeyAttributesT&& value) {
60 m_keyAttributesHasBeenSet = true;
61 m_keyAttributes = std::forward<KeyAttributesT>(value);
62 }
63 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
64 ServiceSummary& WithKeyAttributes(KeyAttributesT&& value) {
65 SetKeyAttributes(std::forward<KeyAttributesT>(value));
66 return *this;
67 }
68 template <typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
69 ServiceSummary& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
70 m_keyAttributesHasBeenSet = true;
71 m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value));
72 return *this;
73 }
75
77
108 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetAttributeMaps() const { return m_attributeMaps; }
109 inline bool AttributeMapsHasBeenSet() const { return m_attributeMapsHasBeenSet; }
110 template <typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
111 void SetAttributeMaps(AttributeMapsT&& value) {
112 m_attributeMapsHasBeenSet = true;
113 m_attributeMaps = std::forward<AttributeMapsT>(value);
114 }
115 template <typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
116 ServiceSummary& WithAttributeMaps(AttributeMapsT&& value) {
117 SetAttributeMaps(std::forward<AttributeMapsT>(value));
118 return *this;
119 }
120 template <typename AttributeMapsT = Aws::Map<Aws::String, Aws::String>>
121 ServiceSummary& AddAttributeMaps(AttributeMapsT&& value) {
122 m_attributeMapsHasBeenSet = true;
123 m_attributeMaps.emplace_back(std::forward<AttributeMapsT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::Vector<MetricReference>& GetMetricReferences() const { return m_metricReferences; }
134 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
135 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
136 void SetMetricReferences(MetricReferencesT&& value) {
137 m_metricReferencesHasBeenSet = true;
138 m_metricReferences = std::forward<MetricReferencesT>(value);
139 }
140 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
141 ServiceSummary& WithMetricReferences(MetricReferencesT&& value) {
142 SetMetricReferences(std::forward<MetricReferencesT>(value));
143 return *this;
144 }
145 template <typename MetricReferencesT = MetricReference>
146 ServiceSummary& AddMetricReferences(MetricReferencesT&& value) {
147 m_metricReferencesHasBeenSet = true;
148 m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::Vector<ServiceGroup>& GetServiceGroups() const { return m_serviceGroups; }
159 inline bool ServiceGroupsHasBeenSet() const { return m_serviceGroupsHasBeenSet; }
160 template <typename ServiceGroupsT = Aws::Vector<ServiceGroup>>
161 void SetServiceGroups(ServiceGroupsT&& value) {
162 m_serviceGroupsHasBeenSet = true;
163 m_serviceGroups = std::forward<ServiceGroupsT>(value);
164 }
165 template <typename ServiceGroupsT = Aws::Vector<ServiceGroup>>
166 ServiceSummary& WithServiceGroups(ServiceGroupsT&& value) {
167 SetServiceGroups(std::forward<ServiceGroupsT>(value));
168 return *this;
169 }
170 template <typename ServiceGroupsT = ServiceGroup>
171 ServiceSummary& AddServiceGroups(ServiceGroupsT&& value) {
172 m_serviceGroupsHasBeenSet = true;
173 m_serviceGroups.emplace_back(std::forward<ServiceGroupsT>(value));
174 return *this;
175 }
177 private:
179
181
182 Aws::Vector<MetricReference> m_metricReferences;
183
184 Aws::Vector<ServiceGroup> m_serviceGroups;
185 bool m_keyAttributesHasBeenSet = false;
186 bool m_attributeMapsHasBeenSet = false;
187 bool m_metricReferencesHasBeenSet = false;
188 bool m_serviceGroupsHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace ApplicationSignals
193} // 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 & AddServiceGroups(ServiceGroupsT &&value)
ServiceSummary & AddMetricReferences(MetricReferencesT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetAttributeMaps() const
const Aws::Vector< MetricReference > & GetMetricReferences() const
const Aws::Vector< ServiceGroup > & GetServiceGroups() const
void SetMetricReferences(MetricReferencesT &&value)
void SetServiceGroups(ServiceGroupsT &&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)
ServiceSummary & WithServiceGroups(ServiceGroupsT &&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