AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MessageTemplateSearchResultData.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/qconnect/QConnect_EXPORTS.h>
11#include <aws/qconnect/model/ChannelSubtype.h>
12#include <aws/qconnect/model/GroupingConfiguration.h>
13#include <aws/qconnect/model/MessageTemplateSourceConfigurationSummary.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QConnect {
25namespace Model {
26
33 public:
34 AWS_QCONNECT_API MessageTemplateSearchResultData() = default;
37 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetMessageTemplateArn() const { return m_messageTemplateArn; }
44 inline bool MessageTemplateArnHasBeenSet() const { return m_messageTemplateArnHasBeenSet; }
45 template <typename MessageTemplateArnT = Aws::String>
47 m_messageTemplateArnHasBeenSet = true;
48 m_messageTemplateArn = std::forward<MessageTemplateArnT>(value);
49 }
50 template <typename MessageTemplateArnT = Aws::String>
52 SetMessageTemplateArn(std::forward<MessageTemplateArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetMessageTemplateId() const { return m_messageTemplateId; }
62 inline bool MessageTemplateIdHasBeenSet() const { return m_messageTemplateIdHasBeenSet; }
63 template <typename MessageTemplateIdT = Aws::String>
65 m_messageTemplateIdHasBeenSet = true;
66 m_messageTemplateId = std::forward<MessageTemplateIdT>(value);
67 }
68 template <typename MessageTemplateIdT = Aws::String>
70 SetMessageTemplateId(std::forward<MessageTemplateIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
80 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
81 template <typename KnowledgeBaseArnT = Aws::String>
83 m_knowledgeBaseArnHasBeenSet = true;
84 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
85 }
86 template <typename KnowledgeBaseArnT = Aws::String>
88 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
98 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
99 template <typename KnowledgeBaseIdT = Aws::String>
101 m_knowledgeBaseIdHasBeenSet = true;
102 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
103 }
104 template <typename KnowledgeBaseIdT = Aws::String>
106 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetName() const { return m_name; }
116 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 template <typename NameT = Aws::String>
118 void SetName(NameT&& value) {
119 m_nameHasBeenSet = true;
120 m_name = std::forward<NameT>(value);
121 }
122 template <typename NameT = Aws::String>
124 SetName(std::forward<NameT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetChannel() const { return m_channel; }
134 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
135 template <typename ChannelT = Aws::String>
136 void SetChannel(ChannelT&& value) {
137 m_channelHasBeenSet = true;
138 m_channel = std::forward<ChannelT>(value);
139 }
140 template <typename ChannelT = Aws::String>
142 SetChannel(std::forward<ChannelT>(value));
143 return *this;
144 }
146
148
151 inline ChannelSubtype GetChannelSubtype() const { return m_channelSubtype; }
152 inline bool ChannelSubtypeHasBeenSet() const { return m_channelSubtypeHasBeenSet; }
154 m_channelSubtypeHasBeenSet = true;
155 m_channelSubtype = value;
156 }
158 SetChannelSubtype(value);
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
168 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
169 template <typename CreatedTimeT = Aws::Utils::DateTime>
171 m_createdTimeHasBeenSet = true;
172 m_createdTime = std::forward<CreatedTimeT>(value);
173 }
174 template <typename CreatedTimeT = Aws::Utils::DateTime>
176 SetCreatedTime(std::forward<CreatedTimeT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
186 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
187 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
189 m_lastModifiedTimeHasBeenSet = true;
190 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
191 }
192 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
194 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
205 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
206 template <typename LastModifiedByT = Aws::String>
208 m_lastModifiedByHasBeenSet = true;
209 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
210 }
211 template <typename LastModifiedByT = Aws::String>
213 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
214 return *this;
215 }
217
219
222 inline bool GetIsActive() const { return m_isActive; }
223 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
224 inline void SetIsActive(bool value) {
225 m_isActiveHasBeenSet = true;
226 m_isActive = value;
227 }
229 SetIsActive(value);
230 return *this;
231 }
233
235
238 inline long long GetVersionNumber() const { return m_versionNumber; }
239 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
240 inline void SetVersionNumber(long long value) {
241 m_versionNumberHasBeenSet = true;
242 m_versionNumber = value;
243 }
245 SetVersionNumber(value);
246 return *this;
247 }
249
251
254 inline const Aws::String& GetDescription() const { return m_description; }
255 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
256 template <typename DescriptionT = Aws::String>
258 m_descriptionHasBeenSet = true;
259 m_description = std::forward<DescriptionT>(value);
260 }
261 template <typename DescriptionT = Aws::String>
263 SetDescription(std::forward<DescriptionT>(value));
264 return *this;
265 }
267
269
272 inline const MessageTemplateSourceConfigurationSummary& GetSourceConfigurationSummary() const { return m_sourceConfigurationSummary; }
273 inline bool SourceConfigurationSummaryHasBeenSet() const { return m_sourceConfigurationSummaryHasBeenSet; }
274 template <typename SourceConfigurationSummaryT = MessageTemplateSourceConfigurationSummary>
276 m_sourceConfigurationSummaryHasBeenSet = true;
277 m_sourceConfigurationSummary = std::forward<SourceConfigurationSummaryT>(value);
278 }
279 template <typename SourceConfigurationSummaryT = MessageTemplateSourceConfigurationSummary>
281 SetSourceConfigurationSummary(std::forward<SourceConfigurationSummaryT>(value));
282 return *this;
283 }
285
287
288 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
289 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
290 template <typename GroupingConfigurationT = GroupingConfiguration>
292 m_groupingConfigurationHasBeenSet = true;
293 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
294 }
295 template <typename GroupingConfigurationT = GroupingConfiguration>
297 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
298 return *this;
299 }
301
303
310 inline const Aws::String& GetLanguage() const { return m_language; }
311 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
312 template <typename LanguageT = Aws::String>
313 void SetLanguage(LanguageT&& value) {
314 m_languageHasBeenSet = true;
315 m_language = std::forward<LanguageT>(value);
316 }
317 template <typename LanguageT = Aws::String>
319 SetLanguage(std::forward<LanguageT>(value));
320 return *this;
321 }
323
325
328 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
329 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
330 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
331 void SetTags(TagsT&& value) {
332 m_tagsHasBeenSet = true;
333 m_tags = std::forward<TagsT>(value);
334 }
335 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
337 SetTags(std::forward<TagsT>(value));
338 return *this;
339 }
340 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
342 m_tagsHasBeenSet = true;
343 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
344 return *this;
345 }
347 private:
348 Aws::String m_messageTemplateArn;
349
350 Aws::String m_messageTemplateId;
351
352 Aws::String m_knowledgeBaseArn;
353
354 Aws::String m_knowledgeBaseId;
355
356 Aws::String m_name;
357
358 Aws::String m_channel;
359
360 ChannelSubtype m_channelSubtype{ChannelSubtype::NOT_SET};
361
362 Aws::Utils::DateTime m_createdTime{};
363
364 Aws::Utils::DateTime m_lastModifiedTime{};
365
366 Aws::String m_lastModifiedBy;
367
368 bool m_isActive{false};
369
370 long long m_versionNumber{0};
371
372 Aws::String m_description;
373
374 MessageTemplateSourceConfigurationSummary m_sourceConfigurationSummary;
375
376 GroupingConfiguration m_groupingConfiguration;
377
378 Aws::String m_language;
379
381 bool m_messageTemplateArnHasBeenSet = false;
382 bool m_messageTemplateIdHasBeenSet = false;
383 bool m_knowledgeBaseArnHasBeenSet = false;
384 bool m_knowledgeBaseIdHasBeenSet = false;
385 bool m_nameHasBeenSet = false;
386 bool m_channelHasBeenSet = false;
387 bool m_channelSubtypeHasBeenSet = false;
388 bool m_createdTimeHasBeenSet = false;
389 bool m_lastModifiedTimeHasBeenSet = false;
390 bool m_lastModifiedByHasBeenSet = false;
391 bool m_isActiveHasBeenSet = false;
392 bool m_versionNumberHasBeenSet = false;
393 bool m_descriptionHasBeenSet = false;
394 bool m_sourceConfigurationSummaryHasBeenSet = false;
395 bool m_groupingConfigurationHasBeenSet = false;
396 bool m_languageHasBeenSet = false;
397 bool m_tagsHasBeenSet = false;
398};
399
400} // namespace Model
401} // namespace QConnect
402} // namespace Aws
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MessageTemplateSearchResultData & WithMessageTemplateArn(MessageTemplateArnT &&value)
AWS_QCONNECT_API MessageTemplateSearchResultData()=default
MessageTemplateSearchResultData & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_QCONNECT_API MessageTemplateSearchResultData & operator=(Aws::Utils::Json::JsonView jsonValue)
const MessageTemplateSourceConfigurationSummary & GetSourceConfigurationSummary() const
MessageTemplateSearchResultData & WithLanguage(LanguageT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
MessageTemplateSearchResultData & WithChannelSubtype(ChannelSubtype value)
MessageTemplateSearchResultData & WithGroupingConfiguration(GroupingConfigurationT &&value)
MessageTemplateSearchResultData & WithChannel(ChannelT &&value)
MessageTemplateSearchResultData & WithName(NameT &&value)
MessageTemplateSearchResultData & WithLastModifiedBy(LastModifiedByT &&value)
MessageTemplateSearchResultData & WithSourceConfigurationSummary(SourceConfigurationSummaryT &&value)
MessageTemplateSearchResultData & WithCreatedTime(CreatedTimeT &&value)
MessageTemplateSearchResultData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
MessageTemplateSearchResultData & WithMessageTemplateId(MessageTemplateIdT &&value)
MessageTemplateSearchResultData & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetSourceConfigurationSummary(SourceConfigurationSummaryT &&value)
MessageTemplateSearchResultData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
MessageTemplateSearchResultData & WithTags(TagsT &&value)
AWS_QCONNECT_API MessageTemplateSearchResultData(Aws::Utils::Json::JsonView jsonValue)
MessageTemplateSearchResultData & WithDescription(DescriptionT &&value)
MessageTemplateSearchResultData & WithVersionNumber(long long value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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