AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
Configuration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mq/MQ_EXPORTS.h>
11#include <aws/mq/model/AuthenticationStrategy.h>
12#include <aws/mq/model/ConfigurationRevision.h>
13#include <aws/mq/model/EngineType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MQ {
25namespace Model {
26
33 public:
34 AWS_MQ_API Configuration() = default;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 Configuration& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
62 inline AuthenticationStrategy GetAuthenticationStrategy() const { return m_authenticationStrategy; }
63 inline bool AuthenticationStrategyHasBeenSet() const { return m_authenticationStrategyHasBeenSet; }
65 m_authenticationStrategyHasBeenSet = true;
66 m_authenticationStrategy = value;
67 }
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
79 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
80 template <typename CreatedT = Aws::Utils::DateTime>
81 void SetCreated(CreatedT&& value) {
82 m_createdHasBeenSet = true;
83 m_created = std::forward<CreatedT>(value);
84 }
85 template <typename CreatedT = Aws::Utils::DateTime>
86 Configuration& WithCreated(CreatedT&& value) {
87 SetCreated(std::forward<CreatedT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 Configuration& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
115 inline EngineType GetEngineType() const { return m_engineType; }
116 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
117 inline void SetEngineType(EngineType value) {
118 m_engineTypeHasBeenSet = true;
119 m_engineType = value;
120 }
122 SetEngineType(value);
123 return *this;
124 }
126
128
137 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
138 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
139 template <typename EngineVersionT = Aws::String>
140 void SetEngineVersion(EngineVersionT&& value) {
141 m_engineVersionHasBeenSet = true;
142 m_engineVersion = std::forward<EngineVersionT>(value);
143 }
144 template <typename EngineVersionT = Aws::String>
145 Configuration& WithEngineVersion(EngineVersionT&& value) {
146 SetEngineVersion(std::forward<EngineVersionT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetId() const { return m_id; }
156 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
157 template <typename IdT = Aws::String>
158 void SetId(IdT&& value) {
159 m_idHasBeenSet = true;
160 m_id = std::forward<IdT>(value);
161 }
162 template <typename IdT = Aws::String>
163 Configuration& WithId(IdT&& value) {
164 SetId(std::forward<IdT>(value));
165 return *this;
166 }
168
170
173 inline const ConfigurationRevision& GetLatestRevision() const { return m_latestRevision; }
174 inline bool LatestRevisionHasBeenSet() const { return m_latestRevisionHasBeenSet; }
175 template <typename LatestRevisionT = ConfigurationRevision>
176 void SetLatestRevision(LatestRevisionT&& value) {
177 m_latestRevisionHasBeenSet = true;
178 m_latestRevision = std::forward<LatestRevisionT>(value);
179 }
180 template <typename LatestRevisionT = ConfigurationRevision>
181 Configuration& WithLatestRevision(LatestRevisionT&& value) {
182 SetLatestRevision(std::forward<LatestRevisionT>(value));
183 return *this;
184 }
186
188
193 inline const Aws::String& GetName() const { return m_name; }
194 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
195 template <typename NameT = Aws::String>
196 void SetName(NameT&& value) {
197 m_nameHasBeenSet = true;
198 m_name = std::forward<NameT>(value);
199 }
200 template <typename NameT = Aws::String>
201 Configuration& WithName(NameT&& value) {
202 SetName(std::forward<NameT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
212 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
213 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
214 void SetTags(TagsT&& value) {
215 m_tagsHasBeenSet = true;
216 m_tags = std::forward<TagsT>(value);
217 }
218 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
219 Configuration& WithTags(TagsT&& value) {
220 SetTags(std::forward<TagsT>(value));
221 return *this;
222 }
223 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
224 Configuration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
225 m_tagsHasBeenSet = true;
226 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_arn;
232
234
235 Aws::Utils::DateTime m_created{};
236
237 Aws::String m_description;
238
239 EngineType m_engineType{EngineType::NOT_SET};
240
241 Aws::String m_engineVersion;
242
243 Aws::String m_id;
244
245 ConfigurationRevision m_latestRevision;
246
247 Aws::String m_name;
248
250 bool m_arnHasBeenSet = false;
251 bool m_authenticationStrategyHasBeenSet = false;
252 bool m_createdHasBeenSet = false;
253 bool m_descriptionHasBeenSet = false;
254 bool m_engineTypeHasBeenSet = false;
255 bool m_engineVersionHasBeenSet = false;
256 bool m_idHasBeenSet = false;
257 bool m_latestRevisionHasBeenSet = false;
258 bool m_nameHasBeenSet = false;
259 bool m_tagsHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace MQ
264} // namespace Aws
Configuration & WithCreated(CreatedT &&value)
void SetEngineVersion(EngineVersionT &&value)
AWS_MQ_API Configuration(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
void SetEngineType(EngineType value)
EngineType GetEngineType() const
AuthenticationStrategy GetAuthenticationStrategy() const
Configuration & WithEngineType(EngineType value)
void SetLatestRevision(LatestRevisionT &&value)
Configuration & WithAuthenticationStrategy(AuthenticationStrategy value)
const Aws::String & GetId() const
Configuration & WithArn(ArnT &&value)
AWS_MQ_API Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MQ_API Configuration()=default
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetCreated() const
Configuration & WithTags(TagsT &&value)
bool AuthenticationStrategyHasBeenSet() const
Configuration & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetCreated(CreatedT &&value)
Configuration & WithId(IdT &&value)
const ConfigurationRevision & GetLatestRevision() const
Configuration & WithDescription(DescriptionT &&value)
const Aws::String & GetArn() const
void SetTags(TagsT &&value)
const Aws::String & GetEngineVersion() const
void SetAuthenticationStrategy(AuthenticationStrategy value)
Configuration & WithEngineVersion(EngineVersionT &&value)
void SetDescription(DescriptionT &&value)
void SetName(NameT &&value)
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
Configuration & AddTags(TagsKeyT &&key, TagsValueT &&value)
Configuration & WithLatestRevision(LatestRevisionT &&value)
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
Aws::Utils::Json::JsonValue JsonValue