AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Service.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
32class Service {
33 public:
34 AWS_APPLICATIONSIGNALS_API Service() = default;
35 AWS_APPLICATIONSIGNALS_API Service(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONSIGNALS_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
55 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
56 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
57 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
58 void SetKeyAttributes(KeyAttributesT&& value) {
59 m_keyAttributesHasBeenSet = true;
60 m_keyAttributes = std::forward<KeyAttributesT>(value);
61 }
62 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
63 Service& WithKeyAttributes(KeyAttributesT&& value) {
64 SetKeyAttributes(std::forward<KeyAttributesT>(value));
65 return *this;
66 }
67 template <typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
68 Service& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
69 m_keyAttributesHasBeenSet = true;
70 m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value));
71 return *this;
72 }
74
76
107 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetAttributeMaps() const { return m_attributeMaps; }
108 inline bool AttributeMapsHasBeenSet() const { return m_attributeMapsHasBeenSet; }
109 template <typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
110 void SetAttributeMaps(AttributeMapsT&& value) {
111 m_attributeMapsHasBeenSet = true;
112 m_attributeMaps = std::forward<AttributeMapsT>(value);
113 }
114 template <typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
115 Service& WithAttributeMaps(AttributeMapsT&& value) {
116 SetAttributeMaps(std::forward<AttributeMapsT>(value));
117 return *this;
118 }
119 template <typename AttributeMapsT = Aws::Map<Aws::String, Aws::String>>
120 Service& AddAttributeMaps(AttributeMapsT&& value) {
121 m_attributeMapsHasBeenSet = true;
122 m_attributeMaps.emplace_back(std::forward<AttributeMapsT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Vector<ServiceGroup>& GetServiceGroups() const { return m_serviceGroups; }
133 inline bool ServiceGroupsHasBeenSet() const { return m_serviceGroupsHasBeenSet; }
134 template <typename ServiceGroupsT = Aws::Vector<ServiceGroup>>
135 void SetServiceGroups(ServiceGroupsT&& value) {
136 m_serviceGroupsHasBeenSet = true;
137 m_serviceGroups = std::forward<ServiceGroupsT>(value);
138 }
139 template <typename ServiceGroupsT = Aws::Vector<ServiceGroup>>
140 Service& WithServiceGroups(ServiceGroupsT&& value) {
141 SetServiceGroups(std::forward<ServiceGroupsT>(value));
142 return *this;
143 }
144 template <typename ServiceGroupsT = ServiceGroup>
145 Service& AddServiceGroups(ServiceGroupsT&& value) {
146 m_serviceGroupsHasBeenSet = true;
147 m_serviceGroups.emplace_back(std::forward<ServiceGroupsT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::Vector<MetricReference>& GetMetricReferences() const { return m_metricReferences; }
158 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
159 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
160 void SetMetricReferences(MetricReferencesT&& value) {
161 m_metricReferencesHasBeenSet = true;
162 m_metricReferences = std::forward<MetricReferencesT>(value);
163 }
164 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
165 Service& WithMetricReferences(MetricReferencesT&& value) {
166 SetMetricReferences(std::forward<MetricReferencesT>(value));
167 return *this;
168 }
169 template <typename MetricReferencesT = MetricReference>
170 Service& AddMetricReferences(MetricReferencesT&& value) {
171 m_metricReferencesHasBeenSet = true;
172 m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value));
173 return *this;
174 }
176
178
185 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetLogGroupReferences() const { return m_logGroupReferences; }
186 inline bool LogGroupReferencesHasBeenSet() const { return m_logGroupReferencesHasBeenSet; }
187 template <typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
188 void SetLogGroupReferences(LogGroupReferencesT&& value) {
189 m_logGroupReferencesHasBeenSet = true;
190 m_logGroupReferences = std::forward<LogGroupReferencesT>(value);
191 }
192 template <typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
193 Service& WithLogGroupReferences(LogGroupReferencesT&& value) {
194 SetLogGroupReferences(std::forward<LogGroupReferencesT>(value));
195 return *this;
196 }
197 template <typename LogGroupReferencesT = Aws::Map<Aws::String, Aws::String>>
198 Service& AddLogGroupReferences(LogGroupReferencesT&& value) {
199 m_logGroupReferencesHasBeenSet = true;
200 m_logGroupReferences.emplace_back(std::forward<LogGroupReferencesT>(value));
201 return *this;
202 }
204 private:
206
208
209 Aws::Vector<ServiceGroup> m_serviceGroups;
210
211 Aws::Vector<MetricReference> m_metricReferences;
212
214 bool m_keyAttributesHasBeenSet = false;
215 bool m_attributeMapsHasBeenSet = false;
216 bool m_serviceGroupsHasBeenSet = false;
217 bool m_metricReferencesHasBeenSet = false;
218 bool m_logGroupReferencesHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace ApplicationSignals
223} // namespace Aws
Service & WithServiceGroups(ServiceGroupsT &&value)
Definition Service.h:140
Service & AddServiceGroups(ServiceGroupsT &&value)
Definition Service.h:145
void SetLogGroupReferences(LogGroupReferencesT &&value)
Definition Service.h:188
Service & AddAttributeMaps(AttributeMapsT &&value)
Definition Service.h:120
void SetServiceGroups(ServiceGroupsT &&value)
Definition Service.h:135
const Aws::Vector< MetricReference > & GetMetricReferences() const
Definition Service.h:157
Service & WithLogGroupReferences(LogGroupReferencesT &&value)
Definition Service.h:193
Service & AddLogGroupReferences(LogGroupReferencesT &&value)
Definition Service.h:198
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyAttributes(KeyAttributesT &&value)
Definition Service.h:58
void SetAttributeMaps(AttributeMapsT &&value)
Definition Service.h:110
void SetMetricReferences(MetricReferencesT &&value)
Definition Service.h:160
AWS_APPLICATIONSIGNALS_API Service()=default
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
Definition Service.h:55
Service & WithAttributeMaps(AttributeMapsT &&value)
Definition Service.h:115
Service & WithMetricReferences(MetricReferencesT &&value)
Definition Service.h:165
Service & WithKeyAttributes(KeyAttributesT &&value)
Definition Service.h:63
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetLogGroupReferences() const
Definition Service.h:185
AWS_APPLICATIONSIGNALS_API Service(Aws::Utils::Json::JsonView jsonValue)
Service & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
Definition Service.h:68
AWS_APPLICATIONSIGNALS_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetAttributeMaps() const
Definition Service.h:107
const Aws::Vector< ServiceGroup > & GetServiceGroups() const
Definition Service.h:132
Service & AddMetricReferences(MetricReferencesT &&value)
Definition Service.h:170
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