AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
QuickResponseData.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 QuickResponseData() = default;
36 AWS_QCONNECT_API QuickResponseData(Aws::Utils::Json::JsonView jsonValue);
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>
47 void SetQuickResponseArn(QuickResponseArnT&& value) {
48 m_quickResponseArnHasBeenSet = true;
49 m_quickResponseArn = std::forward<QuickResponseArnT>(value);
50 }
51 template <typename QuickResponseArnT = Aws::String>
52 QuickResponseData& WithQuickResponseArn(QuickResponseArnT&& value) {
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>
65 void SetQuickResponseId(QuickResponseIdT&& value) {
66 m_quickResponseIdHasBeenSet = true;
67 m_quickResponseId = std::forward<QuickResponseIdT>(value);
68 }
69 template <typename QuickResponseIdT = Aws::String>
70 QuickResponseData& WithQuickResponseId(QuickResponseIdT&& value) {
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>
83 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
84 m_knowledgeBaseArnHasBeenSet = true;
85 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
86 }
87 template <typename KnowledgeBaseArnT = Aws::String>
88 QuickResponseData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
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>
102 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
103 m_knowledgeBaseIdHasBeenSet = true;
104 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
105 }
106 template <typename KnowledgeBaseIdT = Aws::String>
107 QuickResponseData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
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>
125 QuickResponseData& WithName(NameT&& value) {
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>
142 void SetContentType(ContentTypeT&& value) {
143 m_contentTypeHasBeenSet = true;
144 m_contentType = std::forward<ContentTypeT>(value);
145 }
146 template <typename ContentTypeT = Aws::String>
147 QuickResponseData& WithContentType(ContentTypeT&& value) {
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 Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
174 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
175 template <typename CreatedTimeT = Aws::Utils::DateTime>
176 void SetCreatedTime(CreatedTimeT&& value) {
177 m_createdTimeHasBeenSet = true;
178 m_createdTime = std::forward<CreatedTimeT>(value);
179 }
180 template <typename CreatedTimeT = Aws::Utils::DateTime>
181 QuickResponseData& WithCreatedTime(CreatedTimeT&& value) {
182 SetCreatedTime(std::forward<CreatedTimeT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
192 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
193 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
194 void SetLastModifiedTime(LastModifiedTimeT&& value) {
195 m_lastModifiedTimeHasBeenSet = true;
196 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
197 }
198 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
199 QuickResponseData& WithLastModifiedTime(LastModifiedTimeT&& value) {
200 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
211 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
212 template <typename LastModifiedRegionT = Aws::String>
213 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
214 m_lastModifiedRegionHasBeenSet = true;
215 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
216 }
217 template <typename LastModifiedRegionT = Aws::String>
218 QuickResponseData& WithLastModifiedRegion(LastModifiedRegionT&& value) {
219 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
220 return *this;
221 }
223
225
228 inline const QuickResponseContents& GetContents() const { return m_contents; }
229 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
230 template <typename ContentsT = QuickResponseContents>
231 void SetContents(ContentsT&& value) {
232 m_contentsHasBeenSet = true;
233 m_contents = std::forward<ContentsT>(value);
234 }
235 template <typename ContentsT = QuickResponseContents>
236 QuickResponseData& WithContents(ContentsT&& value) {
237 SetContents(std::forward<ContentsT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetDescription() const { return m_description; }
247 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
248 template <typename DescriptionT = Aws::String>
249 void SetDescription(DescriptionT&& value) {
250 m_descriptionHasBeenSet = true;
251 m_description = std::forward<DescriptionT>(value);
252 }
253 template <typename DescriptionT = Aws::String>
254 QuickResponseData& WithDescription(DescriptionT&& value) {
255 SetDescription(std::forward<DescriptionT>(value));
256 return *this;
257 }
259
261
265 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
266 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
267 template <typename GroupingConfigurationT = GroupingConfiguration>
268 void SetGroupingConfiguration(GroupingConfigurationT&& value) {
269 m_groupingConfigurationHasBeenSet = true;
270 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
271 }
272 template <typename GroupingConfigurationT = GroupingConfiguration>
273 QuickResponseData& WithGroupingConfiguration(GroupingConfigurationT&& value) {
274 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
275 return *this;
276 }
278
280
284 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
285 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
286 template <typename ShortcutKeyT = Aws::String>
287 void SetShortcutKey(ShortcutKeyT&& value) {
288 m_shortcutKeyHasBeenSet = true;
289 m_shortcutKey = std::forward<ShortcutKeyT>(value);
290 }
291 template <typename ShortcutKeyT = Aws::String>
292 QuickResponseData& WithShortcutKey(ShortcutKeyT&& value) {
293 SetShortcutKey(std::forward<ShortcutKeyT>(value));
294 return *this;
295 }
297
299
303 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
304 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
305 template <typename LastModifiedByT = Aws::String>
306 void SetLastModifiedBy(LastModifiedByT&& value) {
307 m_lastModifiedByHasBeenSet = true;
308 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
309 }
310 template <typename LastModifiedByT = Aws::String>
311 QuickResponseData& WithLastModifiedBy(LastModifiedByT&& value) {
312 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
313 return *this;
314 }
316
318
321 inline bool GetIsActive() const { return m_isActive; }
322 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
323 inline void SetIsActive(bool value) {
324 m_isActiveHasBeenSet = true;
325 m_isActive = value;
326 }
327 inline QuickResponseData& WithIsActive(bool value) {
328 SetIsActive(value);
329 return *this;
330 }
332
334
338 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
339 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
340 template <typename ChannelsT = Aws::Vector<Aws::String>>
341 void SetChannels(ChannelsT&& value) {
342 m_channelsHasBeenSet = true;
343 m_channels = std::forward<ChannelsT>(value);
344 }
345 template <typename ChannelsT = Aws::Vector<Aws::String>>
346 QuickResponseData& WithChannels(ChannelsT&& value) {
347 SetChannels(std::forward<ChannelsT>(value));
348 return *this;
349 }
350 template <typename ChannelsT = Aws::String>
351 QuickResponseData& AddChannels(ChannelsT&& value) {
352 m_channelsHasBeenSet = true;
353 m_channels.emplace_back(std::forward<ChannelsT>(value));
354 return *this;
355 }
357
359
366 inline const Aws::String& GetLanguage() const { return m_language; }
367 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
368 template <typename LanguageT = Aws::String>
369 void SetLanguage(LanguageT&& value) {
370 m_languageHasBeenSet = true;
371 m_language = std::forward<LanguageT>(value);
372 }
373 template <typename LanguageT = Aws::String>
374 QuickResponseData& WithLanguage(LanguageT&& value) {
375 SetLanguage(std::forward<LanguageT>(value));
376 return *this;
377 }
379
381
384 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
385 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
386 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
387 void SetTags(TagsT&& value) {
388 m_tagsHasBeenSet = true;
389 m_tags = std::forward<TagsT>(value);
390 }
391 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
392 QuickResponseData& WithTags(TagsT&& value) {
393 SetTags(std::forward<TagsT>(value));
394 return *this;
395 }
396 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
397 QuickResponseData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
398 m_tagsHasBeenSet = true;
399 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
400 return *this;
401 }
403 private:
404 Aws::String m_quickResponseArn;
405
406 Aws::String m_quickResponseId;
407
408 Aws::String m_knowledgeBaseArn;
409
410 Aws::String m_knowledgeBaseId;
411
412 Aws::String m_name;
413
414 Aws::String m_contentType;
415
417
418 Aws::Utils::DateTime m_createdTime{};
419
420 Aws::Utils::DateTime m_lastModifiedTime{};
421
422 Aws::String m_lastModifiedRegion;
423
424 QuickResponseContents m_contents;
425
426 Aws::String m_description;
427
428 GroupingConfiguration m_groupingConfiguration;
429
430 Aws::String m_shortcutKey;
431
432 Aws::String m_lastModifiedBy;
433
434 bool m_isActive{false};
435
436 Aws::Vector<Aws::String> m_channels;
437
438 Aws::String m_language;
439
441 bool m_quickResponseArnHasBeenSet = false;
442 bool m_quickResponseIdHasBeenSet = false;
443 bool m_knowledgeBaseArnHasBeenSet = false;
444 bool m_knowledgeBaseIdHasBeenSet = false;
445 bool m_nameHasBeenSet = false;
446 bool m_contentTypeHasBeenSet = false;
447 bool m_statusHasBeenSet = false;
448 bool m_createdTimeHasBeenSet = false;
449 bool m_lastModifiedTimeHasBeenSet = false;
450 bool m_lastModifiedRegionHasBeenSet = false;
451 bool m_contentsHasBeenSet = false;
452 bool m_descriptionHasBeenSet = false;
453 bool m_groupingConfigurationHasBeenSet = false;
454 bool m_shortcutKeyHasBeenSet = false;
455 bool m_lastModifiedByHasBeenSet = false;
456 bool m_isActiveHasBeenSet = false;
457 bool m_channelsHasBeenSet = false;
458 bool m_languageHasBeenSet = false;
459 bool m_tagsHasBeenSet = false;
460};
461
462} // namespace Model
463} // namespace QConnect
464} // namespace Aws
QuickResponseData & WithShortcutKey(ShortcutKeyT &&value)
QuickResponseData & WithQuickResponseArn(QuickResponseArnT &&value)
const Aws::String & GetKnowledgeBaseId() const
QuickResponseData & WithChannels(ChannelsT &&value)
const Aws::String & GetContentType() const
QuickResponseData & WithStatus(QuickResponseStatus value)
QuickResponseData & WithLastModifiedTime(LastModifiedTimeT &&value)
QuickResponseData & AddChannels(ChannelsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetShortcutKey() const
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
void SetDescription(DescriptionT &&value)
void SetLastModifiedBy(LastModifiedByT &&value)
QuickResponseData & AddTags(TagsKeyT &&key, TagsValueT &&value)
QuickResponseData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
QuickResponseData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
const Aws::String & GetDescription() const
QuickResponseData & WithCreatedTime(CreatedTimeT &&value)
const Aws::Vector< Aws::String > & GetChannels() const
QuickResponseData & WithLanguage(LanguageT &&value)
QuickResponseData & WithName(NameT &&value)
const Aws::String & GetLastModifiedRegion() const
void SetStatus(QuickResponseStatus value)
QuickResponseData & WithGroupingConfiguration(GroupingConfigurationT &&value)
QuickResponseData & WithLastModifiedBy(LastModifiedByT &&value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
QuickResponseData & WithTags(TagsT &&value)
QuickResponseData & WithDescription(DescriptionT &&value)
const GroupingConfiguration & GetGroupingConfiguration() const
AWS_QCONNECT_API QuickResponseData & operator=(Aws::Utils::Json::JsonView jsonValue)
QuickResponseData & WithQuickResponseId(QuickResponseIdT &&value)
const Aws::String & GetLastModifiedBy() const
const Aws::String & GetLanguage() const
const Aws::String & GetKnowledgeBaseArn() const
void SetShortcutKey(ShortcutKeyT &&value)
void SetContentType(ContentTypeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_QCONNECT_API QuickResponseData(Aws::Utils::Json::JsonView jsonValue)
const QuickResponseContents & GetContents() const
AWS_QCONNECT_API QuickResponseData()=default
QuickResponseData & WithContents(ContentsT &&value)
void SetQuickResponseId(QuickResponseIdT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetQuickResponseArn() const
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
QuickResponseData & WithIsActive(bool value)
void SetCreatedTime(CreatedTimeT &&value)
const Aws::String & GetQuickResponseId() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetGroupingConfiguration(GroupingConfigurationT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
QuickResponseData & WithLastModifiedRegion(LastModifiedRegionT &&value)
QuickResponseData & WithContentType(ContentTypeT &&value)
void SetQuickResponseArn(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