AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
63 inline void SetKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
65 inline Service& WithKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetKeyAttributes(std::move(value)); return *this;}
66 inline Service& AddKeyAttributes(const Aws::String& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
67 inline Service& AddKeyAttributes(Aws::String&& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
68 inline Service& AddKeyAttributes(const Aws::String& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
69 inline Service& AddKeyAttributes(Aws::String&& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), std::move(value)); return *this; }
70 inline Service& AddKeyAttributes(const char* key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
71 inline Service& AddKeyAttributes(Aws::String&& key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
72 inline Service& AddKeyAttributes(const char* key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
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 inline void SetAttributeMaps(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps = value; }
110 inline void SetAttributeMaps(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps = std::move(value); }
113 inline Service& AddAttributeMaps(const Aws::Map<Aws::String, Aws::String>& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps.push_back(value); return *this; }
114 inline Service& AddAttributeMaps(Aws::Map<Aws::String, Aws::String>&& value) { m_attributeMapsHasBeenSet = true; m_attributeMaps.push_back(std::move(value)); return *this; }
116
118
122 inline const Aws::Vector<MetricReference>& GetMetricReferences() const{ return m_metricReferences; }
123 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
124 inline void SetMetricReferences(const Aws::Vector<MetricReference>& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = value; }
125 inline void SetMetricReferences(Aws::Vector<MetricReference>&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::move(value); }
127 inline Service& WithMetricReferences(Aws::Vector<MetricReference>&& value) { SetMetricReferences(std::move(value)); return *this;}
128 inline Service& AddMetricReferences(const MetricReference& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(value); return *this; }
129 inline Service& AddMetricReferences(MetricReference&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(std::move(value)); return *this; }
131
133
140 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetLogGroupReferences() const{ return m_logGroupReferences; }
141 inline bool LogGroupReferencesHasBeenSet() const { return m_logGroupReferencesHasBeenSet; }
142 inline void SetLogGroupReferences(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_logGroupReferencesHasBeenSet = true; m_logGroupReferences = value; }
143 inline void SetLogGroupReferences(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_logGroupReferencesHasBeenSet = true; m_logGroupReferences = std::move(value); }
146 inline Service& AddLogGroupReferences(const Aws::Map<Aws::String, Aws::String>& value) { m_logGroupReferencesHasBeenSet = true; m_logGroupReferences.push_back(value); return *this; }
147 inline Service& AddLogGroupReferences(Aws::Map<Aws::String, Aws::String>&& value) { m_logGroupReferencesHasBeenSet = true; m_logGroupReferences.push_back(std::move(value)); return *this; }
149 private:
150
152 bool m_keyAttributesHasBeenSet = false;
153
155 bool m_attributeMapsHasBeenSet = false;
156
157 Aws::Vector<MetricReference> m_metricReferences;
158 bool m_metricReferencesHasBeenSet = false;
159
161 bool m_logGroupReferencesHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ApplicationSignals
166} // namespace Aws
AWS_APPLICATIONSIGNALS_API Service()
void SetMetricReferences(Aws::Vector< MetricReference > &&value)
Definition Service.h:125
Service & AddMetricReferences(MetricReference &&value)
Definition Service.h:129
void SetMetricReferences(const Aws::Vector< MetricReference > &value)
Definition Service.h:124
Service & AddKeyAttributes(const Aws::String &key, Aws::String &&value)
Definition Service.h:68
const Aws::Vector< MetricReference > & GetMetricReferences() const
Definition Service.h:122
void SetLogGroupReferences(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
Definition Service.h:142
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
Service & AddAttributeMaps(Aws::Map< Aws::String, Aws::String > &&value)
Definition Service.h:114
void SetLogGroupReferences(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
Definition Service.h:143
Service & WithKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Service.h:64
Service & WithLogGroupReferences(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
Definition Service.h:145
Service & WithMetricReferences(const Aws::Vector< MetricReference > &value)
Definition Service.h:126
Service & AddLogGroupReferences(Aws::Map< Aws::String, Aws::String > &&value)
Definition Service.h:147
void SetKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Service.h:62
Service & AddMetricReferences(const MetricReference &value)
Definition Service.h:128
Service & AddKeyAttributes(Aws::String &&key, const Aws::String &value)
Definition Service.h:67
Service & AddAttributeMaps(const Aws::Map< Aws::String, Aws::String > &value)
Definition Service.h:113
Service & WithLogGroupReferences(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
Definition Service.h:144
Service & WithKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Service.h:65
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
Definition Service.h:60
Service & AddKeyAttributes(Aws::String &&key, const char *value)
Definition Service.h:71
void SetAttributeMaps(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
Definition Service.h:110
Service & AddKeyAttributes(Aws::String &&key, Aws::String &&value)
Definition Service.h:69
Service & WithAttributeMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
Definition Service.h:111
Service & AddKeyAttributes(const char *key, const char *value)
Definition Service.h:72
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetLogGroupReferences() const
Definition Service.h:140
void SetAttributeMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
Definition Service.h:109
Service & AddKeyAttributes(const char *key, Aws::String &&value)
Definition Service.h:70
AWS_APPLICATIONSIGNALS_API Service(Aws::Utils::Json::JsonView jsonValue)
Service & AddKeyAttributes(const Aws::String &key, const Aws::String &value)
Definition Service.h:66
Service & AddLogGroupReferences(const Aws::Map< Aws::String, Aws::String > &value)
Definition Service.h:146
Service & WithAttributeMaps(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
Definition Service.h:112
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
void SetKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Service.h:63
Service & WithMetricReferences(Aws::Vector< MetricReference > &&value)
Definition Service.h:127
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue