AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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;
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 Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
174 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
175 template <typename CreatedTimeT = Aws::Utils::DateTime>
177 m_createdTimeHasBeenSet = true;
178 m_createdTime = std::forward<CreatedTimeT>(value);
179 }
180 template <typename CreatedTimeT = Aws::Utils::DateTime>
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>
195 m_lastModifiedTimeHasBeenSet = true;
196 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
197 }
198 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
200 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
201 return *this;
202 }
204
206
209 inline const QuickResponseContents& GetContents() const { return m_contents; }
210 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
211 template <typename ContentsT = QuickResponseContents>
212 void SetContents(ContentsT&& value) {
213 m_contentsHasBeenSet = true;
214 m_contents = std::forward<ContentsT>(value);
215 }
216 template <typename ContentsT = QuickResponseContents>
218 SetContents(std::forward<ContentsT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetDescription() const { return m_description; }
228 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
229 template <typename DescriptionT = Aws::String>
231 m_descriptionHasBeenSet = true;
232 m_description = std::forward<DescriptionT>(value);
233 }
234 template <typename DescriptionT = Aws::String>
236 SetDescription(std::forward<DescriptionT>(value));
237 return *this;
238 }
240
242
246 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
247 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
248 template <typename GroupingConfigurationT = GroupingConfiguration>
250 m_groupingConfigurationHasBeenSet = true;
251 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
252 }
253 template <typename GroupingConfigurationT = GroupingConfiguration>
255 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
256 return *this;
257 }
259
261
265 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
266 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
267 template <typename ShortcutKeyT = Aws::String>
269 m_shortcutKeyHasBeenSet = true;
270 m_shortcutKey = std::forward<ShortcutKeyT>(value);
271 }
272 template <typename ShortcutKeyT = Aws::String>
274 SetShortcutKey(std::forward<ShortcutKeyT>(value));
275 return *this;
276 }
278
280
284 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
285 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
286 template <typename LastModifiedByT = Aws::String>
288 m_lastModifiedByHasBeenSet = true;
289 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
290 }
291 template <typename LastModifiedByT = Aws::String>
293 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
294 return *this;
295 }
297
299
302 inline bool GetIsActive() const { return m_isActive; }
303 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
304 inline void SetIsActive(bool value) {
305 m_isActiveHasBeenSet = true;
306 m_isActive = value;
307 }
308 inline QuickResponseData& WithIsActive(bool value) {
309 SetIsActive(value);
310 return *this;
311 }
313
315
319 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
320 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
321 template <typename ChannelsT = Aws::Vector<Aws::String>>
322 void SetChannels(ChannelsT&& value) {
323 m_channelsHasBeenSet = true;
324 m_channels = std::forward<ChannelsT>(value);
325 }
326 template <typename ChannelsT = Aws::Vector<Aws::String>>
328 SetChannels(std::forward<ChannelsT>(value));
329 return *this;
330 }
331 template <typename ChannelsT = Aws::String>
333 m_channelsHasBeenSet = true;
334 m_channels.emplace_back(std::forward<ChannelsT>(value));
335 return *this;
336 }
338
340
347 inline const Aws::String& GetLanguage() const { return m_language; }
348 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
349 template <typename LanguageT = Aws::String>
350 void SetLanguage(LanguageT&& value) {
351 m_languageHasBeenSet = true;
352 m_language = std::forward<LanguageT>(value);
353 }
354 template <typename LanguageT = Aws::String>
356 SetLanguage(std::forward<LanguageT>(value));
357 return *this;
358 }
360
362
365 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
366 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
367 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
368 void SetTags(TagsT&& value) {
369 m_tagsHasBeenSet = true;
370 m_tags = std::forward<TagsT>(value);
371 }
372 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
374 SetTags(std::forward<TagsT>(value));
375 return *this;
376 }
377 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
379 m_tagsHasBeenSet = true;
380 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
381 return *this;
382 }
384 private:
385 Aws::String m_quickResponseArn;
386
387 Aws::String m_quickResponseId;
388
389 Aws::String m_knowledgeBaseArn;
390
391 Aws::String m_knowledgeBaseId;
392
393 Aws::String m_name;
394
395 Aws::String m_contentType;
396
398
399 Aws::Utils::DateTime m_createdTime{};
400
401 Aws::Utils::DateTime m_lastModifiedTime{};
402
403 QuickResponseContents m_contents;
404
405 Aws::String m_description;
406
407 GroupingConfiguration m_groupingConfiguration;
408
409 Aws::String m_shortcutKey;
410
411 Aws::String m_lastModifiedBy;
412
413 bool m_isActive{false};
414
415 Aws::Vector<Aws::String> m_channels;
416
417 Aws::String m_language;
418
420 bool m_quickResponseArnHasBeenSet = false;
421 bool m_quickResponseIdHasBeenSet = false;
422 bool m_knowledgeBaseArnHasBeenSet = false;
423 bool m_knowledgeBaseIdHasBeenSet = false;
424 bool m_nameHasBeenSet = false;
425 bool m_contentTypeHasBeenSet = false;
426 bool m_statusHasBeenSet = false;
427 bool m_createdTimeHasBeenSet = false;
428 bool m_lastModifiedTimeHasBeenSet = false;
429 bool m_contentsHasBeenSet = false;
430 bool m_descriptionHasBeenSet = false;
431 bool m_groupingConfigurationHasBeenSet = false;
432 bool m_shortcutKeyHasBeenSet = false;
433 bool m_lastModifiedByHasBeenSet = false;
434 bool m_isActiveHasBeenSet = false;
435 bool m_channelsHasBeenSet = false;
436 bool m_languageHasBeenSet = false;
437 bool m_tagsHasBeenSet = false;
438};
439
440} // namespace Model
441} // namespace QConnect
442} // 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)
void SetStatus(QuickResponseStatus value)
QuickResponseData & WithGroupingConfiguration(GroupingConfigurationT &&value)
QuickResponseData & WithLastModifiedBy(LastModifiedByT &&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 & WithContentType(ContentTypeT &&value)
void SetQuickResponseArn(QuickResponseArnT &&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