AWS SDK for C++

AWS SDK for C++ Version 1.11.747

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/wisdom/ConnectWisdomService_EXPORTS.h>
12#include <aws/wisdom/model/GroupingConfiguration.h>
13#include <aws/wisdom/model/QuickResponseContents.h>
14#include <aws/wisdom/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 ConnectWisdomService {
26namespace Model {
27
34 public:
35 AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchResultData() = default;
36 AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchResultData(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchResultData& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Vector<Aws::String>& GetAttributesInterpolated() const { return m_attributesInterpolated; }
46 inline bool AttributesInterpolatedHasBeenSet() const { return m_attributesInterpolatedHasBeenSet; }
47 template <typename AttributesInterpolatedT = Aws::Vector<Aws::String>>
48 void SetAttributesInterpolated(AttributesInterpolatedT&& value) {
49 m_attributesInterpolatedHasBeenSet = true;
50 m_attributesInterpolated = std::forward<AttributesInterpolatedT>(value);
51 }
52 template <typename AttributesInterpolatedT = Aws::Vector<Aws::String>>
54 SetAttributesInterpolated(std::forward<AttributesInterpolatedT>(value));
55 return *this;
56 }
57 template <typename AttributesInterpolatedT = Aws::String>
58 QuickResponseSearchResultData& AddAttributesInterpolated(AttributesInterpolatedT&& value) {
59 m_attributesInterpolatedHasBeenSet = true;
60 m_attributesInterpolated.emplace_back(std::forward<AttributesInterpolatedT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<Aws::String>& GetAttributesNotInterpolated() const { return m_attributesNotInterpolated; }
71 inline bool AttributesNotInterpolatedHasBeenSet() const { return m_attributesNotInterpolatedHasBeenSet; }
72 template <typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
73 void SetAttributesNotInterpolated(AttributesNotInterpolatedT&& value) {
74 m_attributesNotInterpolatedHasBeenSet = true;
75 m_attributesNotInterpolated = std::forward<AttributesNotInterpolatedT>(value);
76 }
77 template <typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
78 QuickResponseSearchResultData& WithAttributesNotInterpolated(AttributesNotInterpolatedT&& value) {
79 SetAttributesNotInterpolated(std::forward<AttributesNotInterpolatedT>(value));
80 return *this;
81 }
82 template <typename AttributesNotInterpolatedT = Aws::String>
83 QuickResponseSearchResultData& AddAttributesNotInterpolated(AttributesNotInterpolatedT&& value) {
84 m_attributesNotInterpolatedHasBeenSet = true;
85 m_attributesNotInterpolated.emplace_back(std::forward<AttributesNotInterpolatedT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
96 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
97 template <typename ChannelsT = Aws::Vector<Aws::String>>
98 void SetChannels(ChannelsT&& value) {
99 m_channelsHasBeenSet = true;
100 m_channels = std::forward<ChannelsT>(value);
101 }
102 template <typename ChannelsT = Aws::Vector<Aws::String>>
104 SetChannels(std::forward<ChannelsT>(value));
105 return *this;
106 }
107 template <typename ChannelsT = Aws::String>
109 m_channelsHasBeenSet = true;
110 m_channels.emplace_back(std::forward<ChannelsT>(value));
111 return *this;
112 }
114
116
123 inline const Aws::String& GetContentType() const { return m_contentType; }
124 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
125 template <typename ContentTypeT = Aws::String>
126 void SetContentType(ContentTypeT&& value) {
127 m_contentTypeHasBeenSet = true;
128 m_contentType = std::forward<ContentTypeT>(value);
129 }
130 template <typename ContentTypeT = Aws::String>
132 SetContentType(std::forward<ContentTypeT>(value));
133 return *this;
134 }
136
138
141 inline const QuickResponseContents& GetContents() const { return m_contents; }
142 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
143 template <typename ContentsT = QuickResponseContents>
144 void SetContents(ContentsT&& value) {
145 m_contentsHasBeenSet = true;
146 m_contents = std::forward<ContentsT>(value);
147 }
148 template <typename ContentsT = QuickResponseContents>
150 SetContents(std::forward<ContentsT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
160 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
161 template <typename CreatedTimeT = Aws::Utils::DateTime>
162 void SetCreatedTime(CreatedTimeT&& value) {
163 m_createdTimeHasBeenSet = true;
164 m_createdTime = std::forward<CreatedTimeT>(value);
165 }
166 template <typename CreatedTimeT = Aws::Utils::DateTime>
168 SetCreatedTime(std::forward<CreatedTimeT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetDescription() const { return m_description; }
178 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
179 template <typename DescriptionT = Aws::String>
180 void SetDescription(DescriptionT&& value) {
181 m_descriptionHasBeenSet = true;
182 m_description = std::forward<DescriptionT>(value);
183 }
184 template <typename DescriptionT = Aws::String>
186 SetDescription(std::forward<DescriptionT>(value));
187 return *this;
188 }
190
192
196 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
197 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
198 template <typename GroupingConfigurationT = GroupingConfiguration>
199 void SetGroupingConfiguration(GroupingConfigurationT&& value) {
200 m_groupingConfigurationHasBeenSet = true;
201 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
202 }
203 template <typename GroupingConfigurationT = GroupingConfiguration>
205 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
206 return *this;
207 }
209
211
214 inline bool GetIsActive() const { return m_isActive; }
215 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
216 inline void SetIsActive(bool value) {
217 m_isActiveHasBeenSet = true;
218 m_isActive = value;
219 }
221 SetIsActive(value);
222 return *this;
223 }
225
227
230 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
231 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
232 template <typename KnowledgeBaseArnT = Aws::String>
233 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
234 m_knowledgeBaseArnHasBeenSet = true;
235 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
236 }
237 template <typename KnowledgeBaseArnT = Aws::String>
239 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
240 return *this;
241 }
243
245
250 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
251 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
252 template <typename KnowledgeBaseIdT = Aws::String>
253 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
254 m_knowledgeBaseIdHasBeenSet = true;
255 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
256 }
257 template <typename KnowledgeBaseIdT = Aws::String>
259 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
260 return *this;
261 }
263
265
269 inline const Aws::String& GetLanguage() const { return m_language; }
270 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
271 template <typename LanguageT = Aws::String>
272 void SetLanguage(LanguageT&& value) {
273 m_languageHasBeenSet = true;
274 m_language = std::forward<LanguageT>(value);
275 }
276 template <typename LanguageT = Aws::String>
278 SetLanguage(std::forward<LanguageT>(value));
279 return *this;
280 }
282
284
288 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
289 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
290 template <typename LastModifiedByT = Aws::String>
291 void SetLastModifiedBy(LastModifiedByT&& value) {
292 m_lastModifiedByHasBeenSet = true;
293 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
294 }
295 template <typename LastModifiedByT = Aws::String>
297 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
298 return *this;
299 }
301
303
307 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
308 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
309 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
310 void SetLastModifiedTime(LastModifiedTimeT&& value) {
311 m_lastModifiedTimeHasBeenSet = true;
312 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
313 }
314 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
316 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
317 return *this;
318 }
320
322
325 inline const Aws::String& GetName() const { return m_name; }
326 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
327 template <typename NameT = Aws::String>
328 void SetName(NameT&& value) {
329 m_nameHasBeenSet = true;
330 m_name = std::forward<NameT>(value);
331 }
332 template <typename NameT = Aws::String>
334 SetName(std::forward<NameT>(value));
335 return *this;
336 }
338
340
343 inline const Aws::String& GetQuickResponseArn() const { return m_quickResponseArn; }
344 inline bool QuickResponseArnHasBeenSet() const { return m_quickResponseArnHasBeenSet; }
345 template <typename QuickResponseArnT = Aws::String>
346 void SetQuickResponseArn(QuickResponseArnT&& value) {
347 m_quickResponseArnHasBeenSet = true;
348 m_quickResponseArn = std::forward<QuickResponseArnT>(value);
349 }
350 template <typename QuickResponseArnT = Aws::String>
352 SetQuickResponseArn(std::forward<QuickResponseArnT>(value));
353 return *this;
354 }
356
358
361 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
362 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
363 template <typename QuickResponseIdT = Aws::String>
364 void SetQuickResponseId(QuickResponseIdT&& value) {
365 m_quickResponseIdHasBeenSet = true;
366 m_quickResponseId = std::forward<QuickResponseIdT>(value);
367 }
368 template <typename QuickResponseIdT = Aws::String>
370 SetQuickResponseId(std::forward<QuickResponseIdT>(value));
371 return *this;
372 }
374
376
380 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
381 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
382 template <typename ShortcutKeyT = Aws::String>
383 void SetShortcutKey(ShortcutKeyT&& value) {
384 m_shortcutKeyHasBeenSet = true;
385 m_shortcutKey = std::forward<ShortcutKeyT>(value);
386 }
387 template <typename ShortcutKeyT = Aws::String>
389 SetShortcutKey(std::forward<ShortcutKeyT>(value));
390 return *this;
391 }
393
395
398 inline QuickResponseStatus GetStatus() const { return m_status; }
399 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
400 inline void SetStatus(QuickResponseStatus value) {
401 m_statusHasBeenSet = true;
402 m_status = value;
403 }
405 SetStatus(value);
406 return *this;
407 }
409
411
414 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
415 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
416 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
417 void SetTags(TagsT&& value) {
418 m_tagsHasBeenSet = true;
419 m_tags = std::forward<TagsT>(value);
420 }
421 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
423 SetTags(std::forward<TagsT>(value));
424 return *this;
425 }
426 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
427 QuickResponseSearchResultData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
428 m_tagsHasBeenSet = true;
429 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
430 return *this;
431 }
433 private:
434 Aws::Vector<Aws::String> m_attributesInterpolated;
435
436 Aws::Vector<Aws::String> m_attributesNotInterpolated;
437
438 Aws::Vector<Aws::String> m_channels;
439
440 Aws::String m_contentType;
441
442 QuickResponseContents m_contents;
443
444 Aws::Utils::DateTime m_createdTime{};
445
446 Aws::String m_description;
447
448 GroupingConfiguration m_groupingConfiguration;
449
450 bool m_isActive{false};
451
452 Aws::String m_knowledgeBaseArn;
453
454 Aws::String m_knowledgeBaseId;
455
456 Aws::String m_language;
457
458 Aws::String m_lastModifiedBy;
459
460 Aws::Utils::DateTime m_lastModifiedTime{};
461
462 Aws::String m_name;
463
464 Aws::String m_quickResponseArn;
465
466 Aws::String m_quickResponseId;
467
468 Aws::String m_shortcutKey;
469
471
473 bool m_attributesInterpolatedHasBeenSet = false;
474 bool m_attributesNotInterpolatedHasBeenSet = false;
475 bool m_channelsHasBeenSet = false;
476 bool m_contentTypeHasBeenSet = false;
477 bool m_contentsHasBeenSet = false;
478 bool m_createdTimeHasBeenSet = false;
479 bool m_descriptionHasBeenSet = false;
480 bool m_groupingConfigurationHasBeenSet = false;
481 bool m_isActiveHasBeenSet = false;
482 bool m_knowledgeBaseArnHasBeenSet = false;
483 bool m_knowledgeBaseIdHasBeenSet = false;
484 bool m_languageHasBeenSet = false;
485 bool m_lastModifiedByHasBeenSet = false;
486 bool m_lastModifiedTimeHasBeenSet = false;
487 bool m_nameHasBeenSet = false;
488 bool m_quickResponseArnHasBeenSet = false;
489 bool m_quickResponseIdHasBeenSet = false;
490 bool m_shortcutKeyHasBeenSet = false;
491 bool m_statusHasBeenSet = false;
492 bool m_tagsHasBeenSet = false;
493};
494
495} // namespace Model
496} // namespace ConnectWisdomService
497} // namespace Aws
QuickResponseSearchResultData & WithGroupingConfiguration(GroupingConfigurationT &&value)
QuickResponseSearchResultData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchResultData & operator=(Aws::Utils::Json::JsonView jsonValue)
QuickResponseSearchResultData & AddTags(TagsKeyT &&key, TagsValueT &&value)
QuickResponseSearchResultData & AddAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
QuickResponseSearchResultData & WithLastModifiedBy(LastModifiedByT &&value)
QuickResponseSearchResultData & AddAttributesInterpolated(AttributesInterpolatedT &&value)
QuickResponseSearchResultData & WithStatus(QuickResponseStatus value)
AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchResultData()=default
QuickResponseSearchResultData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
QuickResponseSearchResultData & WithAttributesInterpolated(AttributesInterpolatedT &&value)
QuickResponseSearchResultData & WithShortcutKey(ShortcutKeyT &&value)
QuickResponseSearchResultData & WithCreatedTime(CreatedTimeT &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchResultData(Aws::Utils::Json::JsonView jsonValue)
QuickResponseSearchResultData & WithContentType(ContentTypeT &&value)
QuickResponseSearchResultData & WithDescription(DescriptionT &&value)
QuickResponseSearchResultData & WithLastModifiedTime(LastModifiedTimeT &&value)
QuickResponseSearchResultData & WithQuickResponseId(QuickResponseIdT &&value)
QuickResponseSearchResultData & WithAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
QuickResponseSearchResultData & WithQuickResponseArn(QuickResponseArnT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue