AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Service.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
35 class Service
36 {
37 public:
38 AWS_APPLICATIONSIGNALS_API Service() = default;
39 AWS_APPLICATIONSIGNALS_API Service(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
60 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
61 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
62 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
63 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
64 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
65 Service& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
66 template<typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
67 Service& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
68 m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value)); return *this;
69 }
71
73
104 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetAttributeMaps() const { return m_attributeMaps; }
105 inline bool AttributeMapsHasBeenSet() const { return m_attributeMapsHasBeenSet; }
106 template<typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
107 void SetAttributeMaps(AttributeMapsT&& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps = std::forward<AttributeMapsT>(value); }
108 template<typename AttributeMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
109 Service& WithAttributeMaps(AttributeMapsT&& value) { SetAttributeMaps(std::forward<AttributeMapsT>(value)); return *this;}
110 template<typename AttributeMapsT = Aws::Map<Aws::String, Aws::String>>
111 Service& AddAttributeMaps(AttributeMapsT&& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps.emplace_back(std::forward<AttributeMapsT>(value)); return *this; }
113
115
119 inline const Aws::Vector<MetricReference>& GetMetricReferences() const { return m_metricReferences; }
120 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
121 template<typename MetricReferencesT = Aws::Vector<MetricReference>>
122 void SetMetricReferences(MetricReferencesT&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::forward<MetricReferencesT>(value); }
123 template<typename MetricReferencesT = Aws::Vector<MetricReference>>
124 Service& WithMetricReferences(MetricReferencesT&& value) { SetMetricReferences(std::forward<MetricReferencesT>(value)); return *this;}
125 template<typename MetricReferencesT = MetricReference>
126 Service& AddMetricReferences(MetricReferencesT&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value)); return *this; }
128
130
137 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetLogGroupReferences() const { return m_logGroupReferences; }
138 inline bool LogGroupReferencesHasBeenSet() const { return m_logGroupReferencesHasBeenSet; }
139 template<typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
140 void SetLogGroupReferences(LogGroupReferencesT&& value) { m_logGroupReferencesHasBeenSet = true; m_logGroupReferences = std::forward<LogGroupReferencesT>(value); }
141 template<typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
142 Service& WithLogGroupReferences(LogGroupReferencesT&& value) { SetLogGroupReferences(std::forward<LogGroupReferencesT>(value)); return *this;}
143 template<typename LogGroupReferencesT = Aws::Map<Aws::String, Aws::String>>
144 Service& AddLogGroupReferences(LogGroupReferencesT&& value) { m_logGroupReferencesHasBeenSet = true; m_logGroupReferences.emplace_back(std::forward<LogGroupReferencesT>(value)); return *this; }
146 private:
147
149 bool m_keyAttributesHasBeenSet = false;
150
152 bool m_attributeMapsHasBeenSet = false;
153
154 Aws::Vector<MetricReference> m_metricReferences;
155 bool m_metricReferencesHasBeenSet = false;
156
158 bool m_logGroupReferencesHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace ApplicationSignals
163} // namespace Aws
void SetLogGroupReferences(LogGroupReferencesT &&value)
Definition Service.h:140
Service & AddAttributeMaps(AttributeMapsT &&value)
Definition Service.h:111
const Aws::Vector< MetricReference > & GetMetricReferences() const
Definition Service.h:119
Service & WithLogGroupReferences(LogGroupReferencesT &&value)
Definition Service.h:142
Service & AddLogGroupReferences(LogGroupReferencesT &&value)
Definition Service.h:144
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyAttributes(KeyAttributesT &&value)
Definition Service.h:63
void SetAttributeMaps(AttributeMapsT &&value)
Definition Service.h:107
void SetMetricReferences(MetricReferencesT &&value)
Definition Service.h:122
AWS_APPLICATIONSIGNALS_API Service()=default
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
Definition Service.h:60
Service & WithAttributeMaps(AttributeMapsT &&value)
Definition Service.h:109
Service & WithMetricReferences(MetricReferencesT &&value)
Definition Service.h:124
Service & WithKeyAttributes(KeyAttributesT &&value)
Definition Service.h:65
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetLogGroupReferences() const
Definition Service.h:137
AWS_APPLICATIONSIGNALS_API Service(Aws::Utils::Json::JsonView jsonValue)
Service & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
Definition Service.h:67
AWS_APPLICATIONSIGNALS_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetAttributeMaps() const
Definition Service.h:104
Service & AddMetricReferences(MetricReferencesT &&value)
Definition Service.h:126
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