AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
QuickResponseSearchResultData.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/GroupingConfiguration.h>
13#include <aws/qconnect/model/QuickResponseContents.h>
14#include <aws/qconnect/model/QuickResponseStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QConnect {
26namespace Model {
27
34 public:
35 AWS_QCONNECT_API QuickResponseSearchResultData() = default;
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetQuickResponseArn() const { return m_quickResponseArn; }
45 inline bool QuickResponseArnHasBeenSet() const { return m_quickResponseArnHasBeenSet; }
46 template <typename QuickResponseArnT = Aws::String>
48 m_quickResponseArnHasBeenSet = true;
49 m_quickResponseArn = std::forward<QuickResponseArnT>(value);
50 }
51 template <typename QuickResponseArnT = Aws::String>
53 SetQuickResponseArn(std::forward<QuickResponseArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
63 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
64 template <typename QuickResponseIdT = Aws::String>
66 m_quickResponseIdHasBeenSet = true;
67 m_quickResponseId = std::forward<QuickResponseIdT>(value);
68 }
69 template <typename QuickResponseIdT = Aws::String>
71 SetQuickResponseId(std::forward<QuickResponseIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
81 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
82 template <typename KnowledgeBaseArnT = Aws::String>
84 m_knowledgeBaseArnHasBeenSet = true;
85 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
86 }
87 template <typename KnowledgeBaseArnT = Aws::String>
89 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
100 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
101 template <typename KnowledgeBaseIdT = Aws::String>
103 m_knowledgeBaseIdHasBeenSet = true;
104 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
105 }
106 template <typename KnowledgeBaseIdT = Aws::String>
108 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetName() const { return m_name; }
118 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
119 template <typename NameT = Aws::String>
120 void SetName(NameT&& value) {
121 m_nameHasBeenSet = true;
122 m_name = std::forward<NameT>(value);
123 }
124 template <typename NameT = Aws::String>
126 SetName(std::forward<NameT>(value));
127 return *this;
128 }
130
132
139 inline const Aws::String& GetContentType() const { return m_contentType; }
140 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
141 template <typename ContentTypeT = Aws::String>
143 m_contentTypeHasBeenSet = true;
144 m_contentType = std::forward<ContentTypeT>(value);
145 }
146 template <typename ContentTypeT = Aws::String>
148 SetContentType(std::forward<ContentTypeT>(value));
149 return *this;
150 }
152
154
157 inline QuickResponseStatus GetStatus() const { return m_status; }
158 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
159 inline void SetStatus(QuickResponseStatus value) {
160 m_statusHasBeenSet = true;
161 m_status = value;
162 }
164 SetStatus(value);
165 return *this;
166 }
168
170
173 inline const QuickResponseContents& GetContents() const { return m_contents; }
174 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
175 template <typename ContentsT = QuickResponseContents>
176 void SetContents(ContentsT&& value) {
177 m_contentsHasBeenSet = true;
178 m_contents = std::forward<ContentsT>(value);
179 }
180 template <typename ContentsT = QuickResponseContents>
182 SetContents(std::forward<ContentsT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
192 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
193 template <typename CreatedTimeT = Aws::Utils::DateTime>
195 m_createdTimeHasBeenSet = true;
196 m_createdTime = std::forward<CreatedTimeT>(value);
197 }
198 template <typename CreatedTimeT = Aws::Utils::DateTime>
200 SetCreatedTime(std::forward<CreatedTimeT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
211 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
212 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
214 m_lastModifiedTimeHasBeenSet = true;
215 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
216 }
217 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
219 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
220 return *this;
221 }
223
225
228 inline bool GetIsActive() const { return m_isActive; }
229 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
230 inline void SetIsActive(bool value) {
231 m_isActiveHasBeenSet = true;
232 m_isActive = value;
233 }
235 SetIsActive(value);
236 return *this;
237 }
239
241
244 inline const Aws::String& GetDescription() const { return m_description; }
245 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
246 template <typename DescriptionT = Aws::String>
248 m_descriptionHasBeenSet = true;
249 m_description = std::forward<DescriptionT>(value);
250 }
251 template <typename DescriptionT = Aws::String>
253 SetDescription(std::forward<DescriptionT>(value));
254 return *this;
255 }
257
259
263 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
264 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
265 template <typename GroupingConfigurationT = GroupingConfiguration>
267 m_groupingConfigurationHasBeenSet = true;
268 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
269 }
270 template <typename GroupingConfigurationT = GroupingConfiguration>
272 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
273 return *this;
274 }
276
278
282 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
283 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
284 template <typename ShortcutKeyT = Aws::String>
286 m_shortcutKeyHasBeenSet = true;
287 m_shortcutKey = std::forward<ShortcutKeyT>(value);
288 }
289 template <typename ShortcutKeyT = Aws::String>
291 SetShortcutKey(std::forward<ShortcutKeyT>(value));
292 return *this;
293 }
295
297
301 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
302 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
303 template <typename LastModifiedByT = Aws::String>
305 m_lastModifiedByHasBeenSet = true;
306 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
307 }
308 template <typename LastModifiedByT = Aws::String>
310 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
311 return *this;
312 }
314
316
320 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
321 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
322 template <typename ChannelsT = Aws::Vector<Aws::String>>
323 void SetChannels(ChannelsT&& value) {
324 m_channelsHasBeenSet = true;
325 m_channels = std::forward<ChannelsT>(value);
326 }
327 template <typename ChannelsT = Aws::Vector<Aws::String>>
329 SetChannels(std::forward<ChannelsT>(value));
330 return *this;
331 }
332 template <typename ChannelsT = Aws::String>
334 m_channelsHasBeenSet = true;
335 m_channels.emplace_back(std::forward<ChannelsT>(value));
336 return *this;
337 }
339
341
345 inline const Aws::String& GetLanguage() const { return m_language; }
346 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
347 template <typename LanguageT = Aws::String>
348 void SetLanguage(LanguageT&& value) {
349 m_languageHasBeenSet = true;
350 m_language = std::forward<LanguageT>(value);
351 }
352 template <typename LanguageT = Aws::String>
354 SetLanguage(std::forward<LanguageT>(value));
355 return *this;
356 }
358
360
364 inline const Aws::Vector<Aws::String>& GetAttributesNotInterpolated() const { return m_attributesNotInterpolated; }
365 inline bool AttributesNotInterpolatedHasBeenSet() const { return m_attributesNotInterpolatedHasBeenSet; }
366 template <typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
368 m_attributesNotInterpolatedHasBeenSet = true;
369 m_attributesNotInterpolated = std::forward<AttributesNotInterpolatedT>(value);
370 }
371 template <typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
373 SetAttributesNotInterpolated(std::forward<AttributesNotInterpolatedT>(value));
374 return *this;
375 }
376 template <typename AttributesNotInterpolatedT = Aws::String>
378 m_attributesNotInterpolatedHasBeenSet = true;
379 m_attributesNotInterpolated.emplace_back(std::forward<AttributesNotInterpolatedT>(value));
380 return *this;
381 }
383
385
389 inline const Aws::Vector<Aws::String>& GetAttributesInterpolated() const { return m_attributesInterpolated; }
390 inline bool AttributesInterpolatedHasBeenSet() const { return m_attributesInterpolatedHasBeenSet; }
391 template <typename AttributesInterpolatedT = Aws::Vector<Aws::String>>
393 m_attributesInterpolatedHasBeenSet = true;
394 m_attributesInterpolated = std::forward<AttributesInterpolatedT>(value);
395 }
396 template <typename AttributesInterpolatedT = Aws::Vector<Aws::String>>
398 SetAttributesInterpolated(std::forward<AttributesInterpolatedT>(value));
399 return *this;
400 }
401 template <typename AttributesInterpolatedT = Aws::String>
403 m_attributesInterpolatedHasBeenSet = true;
404 m_attributesInterpolated.emplace_back(std::forward<AttributesInterpolatedT>(value));
405 return *this;
406 }
408
410
413 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
414 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
415 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
416 void SetTags(TagsT&& value) {
417 m_tagsHasBeenSet = true;
418 m_tags = std::forward<TagsT>(value);
419 }
420 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
422 SetTags(std::forward<TagsT>(value));
423 return *this;
424 }
425 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
427 m_tagsHasBeenSet = true;
428 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
429 return *this;
430 }
432 private:
433 Aws::String m_quickResponseArn;
434
435 Aws::String m_quickResponseId;
436
437 Aws::String m_knowledgeBaseArn;
438
439 Aws::String m_knowledgeBaseId;
440
441 Aws::String m_name;
442
443 Aws::String m_contentType;
444
446
447 QuickResponseContents m_contents;
448
449 Aws::Utils::DateTime m_createdTime{};
450
451 Aws::Utils::DateTime m_lastModifiedTime{};
452
453 bool m_isActive{false};
454
455 Aws::String m_description;
456
457 GroupingConfiguration m_groupingConfiguration;
458
459 Aws::String m_shortcutKey;
460
461 Aws::String m_lastModifiedBy;
462
463 Aws::Vector<Aws::String> m_channels;
464
465 Aws::String m_language;
466
467 Aws::Vector<Aws::String> m_attributesNotInterpolated;
468
469 Aws::Vector<Aws::String> m_attributesInterpolated;
470
472 bool m_quickResponseArnHasBeenSet = false;
473 bool m_quickResponseIdHasBeenSet = false;
474 bool m_knowledgeBaseArnHasBeenSet = false;
475 bool m_knowledgeBaseIdHasBeenSet = false;
476 bool m_nameHasBeenSet = false;
477 bool m_contentTypeHasBeenSet = false;
478 bool m_statusHasBeenSet = false;
479 bool m_contentsHasBeenSet = false;
480 bool m_createdTimeHasBeenSet = false;
481 bool m_lastModifiedTimeHasBeenSet = false;
482 bool m_isActiveHasBeenSet = false;
483 bool m_descriptionHasBeenSet = false;
484 bool m_groupingConfigurationHasBeenSet = false;
485 bool m_shortcutKeyHasBeenSet = false;
486 bool m_lastModifiedByHasBeenSet = false;
487 bool m_channelsHasBeenSet = false;
488 bool m_languageHasBeenSet = false;
489 bool m_attributesNotInterpolatedHasBeenSet = false;
490 bool m_attributesInterpolatedHasBeenSet = false;
491 bool m_tagsHasBeenSet = false;
492};
493
494} // namespace Model
495} // namespace QConnect
496} // namespace Aws
QuickResponseSearchResultData & AddChannels(ChannelsT &&value)
QuickResponseSearchResultData & WithGroupingConfiguration(GroupingConfigurationT &&value)
QuickResponseSearchResultData & WithQuickResponseId(QuickResponseIdT &&value)
AWS_QCONNECT_API QuickResponseSearchResultData & operator=(Aws::Utils::Json::JsonView jsonValue)
QuickResponseSearchResultData & WithQuickResponseArn(QuickResponseArnT &&value)
QuickResponseSearchResultData & WithShortcutKey(ShortcutKeyT &&value)
QuickResponseSearchResultData & WithLastModifiedBy(LastModifiedByT &&value)
const Aws::Vector< Aws::String > & GetAttributesNotInterpolated() const
QuickResponseSearchResultData & WithIsActive(bool value)
QuickResponseSearchResultData & WithAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
void SetAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
QuickResponseSearchResultData & WithStatus(QuickResponseStatus value)
QuickResponseSearchResultData & WithLanguage(LanguageT &&value)
QuickResponseSearchResultData & WithContentType(ContentTypeT &&value)
QuickResponseSearchResultData & WithDescription(DescriptionT &&value)
QuickResponseSearchResultData & WithAttributesInterpolated(AttributesInterpolatedT &&value)
QuickResponseSearchResultData & AddAttributesInterpolated(AttributesInterpolatedT &&value)
AWS_QCONNECT_API QuickResponseSearchResultData(Aws::Utils::Json::JsonView jsonValue)
QuickResponseSearchResultData & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
QuickResponseSearchResultData & WithCreatedTime(CreatedTimeT &&value)
QuickResponseSearchResultData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
QuickResponseSearchResultData & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_QCONNECT_API QuickResponseSearchResultData()=default
QuickResponseSearchResultData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
QuickResponseSearchResultData & AddAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
QuickResponseSearchResultData & WithContents(ContentsT &&value)
const Aws::Vector< Aws::String > & GetAttributesInterpolated() const
QuickResponseSearchResultData & WithChannels(ChannelsT &&value)
QuickResponseSearchResultData & WithTags(TagsT &&value)
QuickResponseSearchResultData & WithLastModifiedTime(LastModifiedTimeT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue