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>
23namespace ApplicationSignals {
34 AWS_APPLICATIONSIGNALS_API
Service() =
default;
57 template <
typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
59 m_keyAttributesHasBeenSet =
true;
60 m_keyAttributes = std::forward<KeyAttributesT>(value);
62 template <
typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
67 template <
typename KeyAttributesKeyT = Aws::String,
typename KeyAttributesValueT = Aws::String>
69 m_keyAttributesHasBeenSet =
true;
70 m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value));
109 template <
typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
111 m_attributeMapsHasBeenSet =
true;
112 m_attributeMaps = std::forward<AttributeMapsT>(value);
114 template <
typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
119 template <
typename AttributeMapsT = Aws::Map<Aws::String, Aws::String>>
121 m_attributeMapsHasBeenSet =
true;
122 m_attributeMaps.emplace_back(std::forward<AttributeMapsT>(value));
134 template <
typename ServiceGroupsT = Aws::Vector<ServiceGroup>>
136 m_serviceGroupsHasBeenSet =
true;
137 m_serviceGroups = std::forward<ServiceGroupsT>(value);
139 template <
typename ServiceGroupsT = Aws::Vector<ServiceGroup>>
144 template <
typename ServiceGroupsT = ServiceGroup>
146 m_serviceGroupsHasBeenSet =
true;
147 m_serviceGroups.emplace_back(std::forward<ServiceGroupsT>(value));
159 template <
typename MetricReferencesT = Aws::Vector<MetricReference>>
161 m_metricReferencesHasBeenSet =
true;
162 m_metricReferences = std::forward<MetricReferencesT>(value);
164 template <
typename MetricReferencesT = Aws::Vector<MetricReference>>
169 template <
typename MetricReferencesT = MetricReference>
171 m_metricReferencesHasBeenSet =
true;
172 m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value));
187 template <
typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
189 m_logGroupReferencesHasBeenSet =
true;
190 m_logGroupReferences = std::forward<LogGroupReferencesT>(value);
192 template <
typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
197 template <
typename LogGroupReferencesT = Aws::Map<Aws::String, Aws::String>>
199 m_logGroupReferencesHasBeenSet =
true;
200 m_logGroupReferences.emplace_back(std::forward<LogGroupReferencesT>(value));
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;
bool AttributeMapsHasBeenSet() const
Service & WithServiceGroups(ServiceGroupsT &&value)
Service & AddServiceGroups(ServiceGroupsT &&value)
void SetLogGroupReferences(LogGroupReferencesT &&value)
Service & AddAttributeMaps(AttributeMapsT &&value)
void SetServiceGroups(ServiceGroupsT &&value)
const Aws::Vector< MetricReference > & GetMetricReferences() const
Service & WithLogGroupReferences(LogGroupReferencesT &&value)
Service & AddLogGroupReferences(LogGroupReferencesT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyAttributes(KeyAttributesT &&value)
void SetAttributeMaps(AttributeMapsT &&value)
bool MetricReferencesHasBeenSet() const
bool KeyAttributesHasBeenSet() const
void SetMetricReferences(MetricReferencesT &&value)
AWS_APPLICATIONSIGNALS_API Service()=default
bool LogGroupReferencesHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
bool ServiceGroupsHasBeenSet() const
Service & WithAttributeMaps(AttributeMapsT &&value)
Service & WithMetricReferences(MetricReferencesT &&value)
Service & WithKeyAttributes(KeyAttributesT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetLogGroupReferences() const
AWS_APPLICATIONSIGNALS_API Service(Aws::Utils::Json::JsonView jsonValue)
Service & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
AWS_APPLICATIONSIGNALS_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetAttributeMaps() const
const Aws::Vector< ServiceGroup > & GetServiceGroups() const
Service & AddMetricReferences(MetricReferencesT &&value)
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