AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/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 QuickResponseData() = default;
36 AWS_CONNECTWISDOMSERVICE_API QuickResponseData(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTWISDOMSERVICE_API QuickResponseData& 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>& GetChannels() const { return m_channels; }
46 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
47 template <typename ChannelsT = Aws::Vector<Aws::String>>
48 void SetChannels(ChannelsT&& value) {
49 m_channelsHasBeenSet = true;
50 m_channels = std::forward<ChannelsT>(value);
51 }
52 template <typename ChannelsT = Aws::Vector<Aws::String>>
53 QuickResponseData& WithChannels(ChannelsT&& value) {
54 SetChannels(std::forward<ChannelsT>(value));
55 return *this;
56 }
57 template <typename ChannelsT = Aws::String>
58 QuickResponseData& AddChannels(ChannelsT&& value) {
59 m_channelsHasBeenSet = true;
60 m_channels.emplace_back(std::forward<ChannelsT>(value));
61 return *this;
62 }
64
66
73 inline const Aws::String& GetContentType() const { return m_contentType; }
74 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
75 template <typename ContentTypeT = Aws::String>
76 void SetContentType(ContentTypeT&& value) {
77 m_contentTypeHasBeenSet = true;
78 m_contentType = std::forward<ContentTypeT>(value);
79 }
80 template <typename ContentTypeT = Aws::String>
81 QuickResponseData& WithContentType(ContentTypeT&& value) {
82 SetContentType(std::forward<ContentTypeT>(value));
83 return *this;
84 }
86
88
91 inline const QuickResponseContents& GetContents() const { return m_contents; }
92 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
93 template <typename ContentsT = QuickResponseContents>
94 void SetContents(ContentsT&& value) {
95 m_contentsHasBeenSet = true;
96 m_contents = std::forward<ContentsT>(value);
97 }
98 template <typename ContentsT = QuickResponseContents>
99 QuickResponseData& WithContents(ContentsT&& value) {
100 SetContents(std::forward<ContentsT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
110 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
111 template <typename CreatedTimeT = Aws::Utils::DateTime>
112 void SetCreatedTime(CreatedTimeT&& value) {
113 m_createdTimeHasBeenSet = true;
114 m_createdTime = std::forward<CreatedTimeT>(value);
115 }
116 template <typename CreatedTimeT = Aws::Utils::DateTime>
117 QuickResponseData& WithCreatedTime(CreatedTimeT&& value) {
118 SetCreatedTime(std::forward<CreatedTimeT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetDescription() const { return m_description; }
128 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
129 template <typename DescriptionT = Aws::String>
130 void SetDescription(DescriptionT&& value) {
131 m_descriptionHasBeenSet = true;
132 m_description = std::forward<DescriptionT>(value);
133 }
134 template <typename DescriptionT = Aws::String>
135 QuickResponseData& WithDescription(DescriptionT&& value) {
136 SetDescription(std::forward<DescriptionT>(value));
137 return *this;
138 }
140
142
146 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
147 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
148 template <typename GroupingConfigurationT = GroupingConfiguration>
149 void SetGroupingConfiguration(GroupingConfigurationT&& value) {
150 m_groupingConfigurationHasBeenSet = true;
151 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
152 }
153 template <typename GroupingConfigurationT = GroupingConfiguration>
154 QuickResponseData& WithGroupingConfiguration(GroupingConfigurationT&& value) {
155 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
156 return *this;
157 }
159
161
164 inline bool GetIsActive() const { return m_isActive; }
165 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
166 inline void SetIsActive(bool value) {
167 m_isActiveHasBeenSet = true;
168 m_isActive = value;
169 }
170 inline QuickResponseData& WithIsActive(bool value) {
171 SetIsActive(value);
172 return *this;
173 }
175
177
180 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
181 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
182 template <typename KnowledgeBaseArnT = Aws::String>
183 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
184 m_knowledgeBaseArnHasBeenSet = true;
185 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
186 }
187 template <typename KnowledgeBaseArnT = Aws::String>
188 QuickResponseData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
189 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
190 return *this;
191 }
193
195
200 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
201 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
202 template <typename KnowledgeBaseIdT = Aws::String>
203 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
204 m_knowledgeBaseIdHasBeenSet = true;
205 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
206 }
207 template <typename KnowledgeBaseIdT = Aws::String>
208 QuickResponseData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
209 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
210 return *this;
211 }
213
215
219 inline const Aws::String& GetLanguage() const { return m_language; }
220 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
221 template <typename LanguageT = Aws::String>
222 void SetLanguage(LanguageT&& value) {
223 m_languageHasBeenSet = true;
224 m_language = std::forward<LanguageT>(value);
225 }
226 template <typename LanguageT = Aws::String>
227 QuickResponseData& WithLanguage(LanguageT&& value) {
228 SetLanguage(std::forward<LanguageT>(value));
229 return *this;
230 }
232
234
238 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
239 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
240 template <typename LastModifiedByT = Aws::String>
241 void SetLastModifiedBy(LastModifiedByT&& value) {
242 m_lastModifiedByHasBeenSet = true;
243 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
244 }
245 template <typename LastModifiedByT = Aws::String>
246 QuickResponseData& WithLastModifiedBy(LastModifiedByT&& value) {
247 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
257 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
258 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
259 void SetLastModifiedTime(LastModifiedTimeT&& value) {
260 m_lastModifiedTimeHasBeenSet = true;
261 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
262 }
263 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
264 QuickResponseData& WithLastModifiedTime(LastModifiedTimeT&& value) {
265 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetName() const { return m_name; }
275 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
276 template <typename NameT = Aws::String>
277 void SetName(NameT&& value) {
278 m_nameHasBeenSet = true;
279 m_name = std::forward<NameT>(value);
280 }
281 template <typename NameT = Aws::String>
282 QuickResponseData& WithName(NameT&& value) {
283 SetName(std::forward<NameT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetQuickResponseArn() const { return m_quickResponseArn; }
293 inline bool QuickResponseArnHasBeenSet() const { return m_quickResponseArnHasBeenSet; }
294 template <typename QuickResponseArnT = Aws::String>
295 void SetQuickResponseArn(QuickResponseArnT&& value) {
296 m_quickResponseArnHasBeenSet = true;
297 m_quickResponseArn = std::forward<QuickResponseArnT>(value);
298 }
299 template <typename QuickResponseArnT = Aws::String>
300 QuickResponseData& WithQuickResponseArn(QuickResponseArnT&& value) {
301 SetQuickResponseArn(std::forward<QuickResponseArnT>(value));
302 return *this;
303 }
305
307
310 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
311 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
312 template <typename QuickResponseIdT = Aws::String>
313 void SetQuickResponseId(QuickResponseIdT&& value) {
314 m_quickResponseIdHasBeenSet = true;
315 m_quickResponseId = std::forward<QuickResponseIdT>(value);
316 }
317 template <typename QuickResponseIdT = Aws::String>
318 QuickResponseData& WithQuickResponseId(QuickResponseIdT&& value) {
319 SetQuickResponseId(std::forward<QuickResponseIdT>(value));
320 return *this;
321 }
323
325
329 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
330 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
331 template <typename ShortcutKeyT = Aws::String>
332 void SetShortcutKey(ShortcutKeyT&& value) {
333 m_shortcutKeyHasBeenSet = true;
334 m_shortcutKey = std::forward<ShortcutKeyT>(value);
335 }
336 template <typename ShortcutKeyT = Aws::String>
337 QuickResponseData& WithShortcutKey(ShortcutKeyT&& value) {
338 SetShortcutKey(std::forward<ShortcutKeyT>(value));
339 return *this;
340 }
342
344
347 inline QuickResponseStatus GetStatus() const { return m_status; }
348 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
349 inline void SetStatus(QuickResponseStatus value) {
350 m_statusHasBeenSet = true;
351 m_status = value;
352 }
354 SetStatus(value);
355 return *this;
356 }
358
360
363 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
364 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
365 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
366 void SetTags(TagsT&& value) {
367 m_tagsHasBeenSet = true;
368 m_tags = std::forward<TagsT>(value);
369 }
370 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
371 QuickResponseData& WithTags(TagsT&& value) {
372 SetTags(std::forward<TagsT>(value));
373 return *this;
374 }
375 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
376 QuickResponseData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
377 m_tagsHasBeenSet = true;
378 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
379 return *this;
380 }
382 private:
383 Aws::Vector<Aws::String> m_channels;
384
385 Aws::String m_contentType;
386
387 QuickResponseContents m_contents;
388
389 Aws::Utils::DateTime m_createdTime{};
390
391 Aws::String m_description;
392
393 GroupingConfiguration m_groupingConfiguration;
394
395 bool m_isActive{false};
396
397 Aws::String m_knowledgeBaseArn;
398
399 Aws::String m_knowledgeBaseId;
400
401 Aws::String m_language;
402
403 Aws::String m_lastModifiedBy;
404
405 Aws::Utils::DateTime m_lastModifiedTime{};
406
407 Aws::String m_name;
408
409 Aws::String m_quickResponseArn;
410
411 Aws::String m_quickResponseId;
412
413 Aws::String m_shortcutKey;
414
416
418 bool m_channelsHasBeenSet = false;
419 bool m_contentTypeHasBeenSet = false;
420 bool m_contentsHasBeenSet = false;
421 bool m_createdTimeHasBeenSet = false;
422 bool m_descriptionHasBeenSet = false;
423 bool m_groupingConfigurationHasBeenSet = false;
424 bool m_isActiveHasBeenSet = false;
425 bool m_knowledgeBaseArnHasBeenSet = false;
426 bool m_knowledgeBaseIdHasBeenSet = false;
427 bool m_languageHasBeenSet = false;
428 bool m_lastModifiedByHasBeenSet = false;
429 bool m_lastModifiedTimeHasBeenSet = false;
430 bool m_nameHasBeenSet = false;
431 bool m_quickResponseArnHasBeenSet = false;
432 bool m_quickResponseIdHasBeenSet = false;
433 bool m_shortcutKeyHasBeenSet = false;
434 bool m_statusHasBeenSet = false;
435 bool m_tagsHasBeenSet = false;
436};
437
438} // namespace Model
439} // namespace ConnectWisdomService
440} // namespace Aws
QuickResponseData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
QuickResponseData & WithChannels(ChannelsT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
QuickResponseData & WithContents(ContentsT &&value)
QuickResponseData & WithStatus(QuickResponseStatus value)
QuickResponseData & WithLanguage(LanguageT &&value)
const QuickResponseContents & GetContents() const
AWS_CONNECTWISDOMSERVICE_API QuickResponseData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetChannels() const
QuickResponseData & WithCreatedTime(CreatedTimeT &&value)
const GroupingConfiguration & GetGroupingConfiguration() const
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
QuickResponseData & AddTags(TagsKeyT &&key, TagsValueT &&value)
QuickResponseData & AddChannels(ChannelsT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CONNECTWISDOMSERVICE_API QuickResponseData()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECTWISDOMSERVICE_API QuickResponseData(Aws::Utils::Json::JsonView jsonValue)
QuickResponseData & WithGroupingConfiguration(GroupingConfigurationT &&value)
QuickResponseData & WithLastModifiedTime(LastModifiedTimeT &&value)
QuickResponseData & WithShortcutKey(ShortcutKeyT &&value)
QuickResponseData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
QuickResponseData & WithDescription(DescriptionT &&value)
QuickResponseData & WithLastModifiedBy(LastModifiedByT &&value)
QuickResponseData & WithQuickResponseId(QuickResponseIdT &&value)
void SetGroupingConfiguration(GroupingConfigurationT &&value)
QuickResponseData & WithContentType(ContentTypeT &&value)
QuickResponseData & 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