AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
QuickResponseData.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wisdom/model/QuickResponseContents.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/wisdom/model/GroupingConfiguration.h>
13#include <aws/wisdom/model/QuickResponseStatus.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ConnectWisdomService
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_CONNECTWISDOMSERVICE_API QuickResponseData() = default;
41 AWS_CONNECTWISDOMSERVICE_API QuickResponseData(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECTWISDOMSERVICE_API QuickResponseData& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
52 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
53 template<typename ChannelsT = Aws::Vector<Aws::String>>
54 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
55 template<typename ChannelsT = Aws::Vector<Aws::String>>
56 QuickResponseData& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
57 template<typename ChannelsT = Aws::String>
58 QuickResponseData& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
60
62
69 inline const Aws::String& GetContentType() const { return m_contentType; }
70 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
71 template<typename ContentTypeT = Aws::String>
72 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
73 template<typename ContentTypeT = Aws::String>
74 QuickResponseData& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
76
78
81 inline const QuickResponseContents& GetContents() const { return m_contents; }
82 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
83 template<typename ContentsT = QuickResponseContents>
84 void SetContents(ContentsT&& value) { m_contentsHasBeenSet = true; m_contents = std::forward<ContentsT>(value); }
85 template<typename ContentsT = QuickResponseContents>
86 QuickResponseData& WithContents(ContentsT&& value) { SetContents(std::forward<ContentsT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
94 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
95 template<typename CreatedTimeT = Aws::Utils::DateTime>
96 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
97 template<typename CreatedTimeT = Aws::Utils::DateTime>
98 QuickResponseData& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template<typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
109 template<typename DescriptionT = Aws::String>
110 QuickResponseData& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
112
114
118 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
119 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
120 template<typename GroupingConfigurationT = GroupingConfiguration>
121 void SetGroupingConfiguration(GroupingConfigurationT&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::forward<GroupingConfigurationT>(value); }
122 template<typename GroupingConfigurationT = GroupingConfiguration>
123 QuickResponseData& WithGroupingConfiguration(GroupingConfigurationT&& value) { SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value)); return *this;}
125
127
130 inline bool GetIsActive() const { return m_isActive; }
131 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
132 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
133 inline QuickResponseData& WithIsActive(bool value) { SetIsActive(value); return *this;}
135
137
140 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
141 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
142 template<typename KnowledgeBaseArnT = Aws::String>
143 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
144 template<typename KnowledgeBaseArnT = Aws::String>
145 QuickResponseData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
147
149
154 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
155 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
156 template<typename KnowledgeBaseIdT = Aws::String>
157 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
158 template<typename KnowledgeBaseIdT = Aws::String>
159 QuickResponseData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
161
163
167 inline const Aws::String& GetLanguage() const { return m_language; }
168 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
169 template<typename LanguageT = Aws::String>
170 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
171 template<typename LanguageT = Aws::String>
172 QuickResponseData& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
174
176
180 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
181 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
182 template<typename LastModifiedByT = Aws::String>
183 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
184 template<typename LastModifiedByT = Aws::String>
185 QuickResponseData& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
187
189
192 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
193 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
194 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
195 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
196 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
197 QuickResponseData& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
199
201
204 inline const Aws::String& GetName() const { return m_name; }
205 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
206 template<typename NameT = Aws::String>
207 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
208 template<typename NameT = Aws::String>
209 QuickResponseData& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
211
213
216 inline const Aws::String& GetQuickResponseArn() const { return m_quickResponseArn; }
217 inline bool QuickResponseArnHasBeenSet() const { return m_quickResponseArnHasBeenSet; }
218 template<typename QuickResponseArnT = Aws::String>
219 void SetQuickResponseArn(QuickResponseArnT&& value) { m_quickResponseArnHasBeenSet = true; m_quickResponseArn = std::forward<QuickResponseArnT>(value); }
220 template<typename QuickResponseArnT = Aws::String>
221 QuickResponseData& WithQuickResponseArn(QuickResponseArnT&& value) { SetQuickResponseArn(std::forward<QuickResponseArnT>(value)); return *this;}
223
225
228 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
229 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
230 template<typename QuickResponseIdT = Aws::String>
231 void SetQuickResponseId(QuickResponseIdT&& value) { m_quickResponseIdHasBeenSet = true; m_quickResponseId = std::forward<QuickResponseIdT>(value); }
232 template<typename QuickResponseIdT = Aws::String>
233 QuickResponseData& WithQuickResponseId(QuickResponseIdT&& value) { SetQuickResponseId(std::forward<QuickResponseIdT>(value)); return *this;}
235
237
241 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
242 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
243 template<typename ShortcutKeyT = Aws::String>
244 void SetShortcutKey(ShortcutKeyT&& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = std::forward<ShortcutKeyT>(value); }
245 template<typename ShortcutKeyT = Aws::String>
246 QuickResponseData& WithShortcutKey(ShortcutKeyT&& value) { SetShortcutKey(std::forward<ShortcutKeyT>(value)); return *this;}
248
250
253 inline QuickResponseStatus GetStatus() const { return m_status; }
254 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
255 inline void SetStatus(QuickResponseStatus value) { m_statusHasBeenSet = true; m_status = value; }
256 inline QuickResponseData& WithStatus(QuickResponseStatus value) { SetStatus(value); return *this;}
258
260
263 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
264 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
265 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
266 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
267 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
268 QuickResponseData& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
269 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
270 QuickResponseData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
271 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
272 }
274 private:
275
276 Aws::Vector<Aws::String> m_channels;
277 bool m_channelsHasBeenSet = false;
278
279 Aws::String m_contentType;
280 bool m_contentTypeHasBeenSet = false;
281
282 QuickResponseContents m_contents;
283 bool m_contentsHasBeenSet = false;
284
285 Aws::Utils::DateTime m_createdTime{};
286 bool m_createdTimeHasBeenSet = false;
287
288 Aws::String m_description;
289 bool m_descriptionHasBeenSet = false;
290
291 GroupingConfiguration m_groupingConfiguration;
292 bool m_groupingConfigurationHasBeenSet = false;
293
294 bool m_isActive{false};
295 bool m_isActiveHasBeenSet = false;
296
297 Aws::String m_knowledgeBaseArn;
298 bool m_knowledgeBaseArnHasBeenSet = false;
299
300 Aws::String m_knowledgeBaseId;
301 bool m_knowledgeBaseIdHasBeenSet = false;
302
303 Aws::String m_language;
304 bool m_languageHasBeenSet = false;
305
306 Aws::String m_lastModifiedBy;
307 bool m_lastModifiedByHasBeenSet = false;
308
309 Aws::Utils::DateTime m_lastModifiedTime{};
310 bool m_lastModifiedTimeHasBeenSet = false;
311
312 Aws::String m_name;
313 bool m_nameHasBeenSet = false;
314
315 Aws::String m_quickResponseArn;
316 bool m_quickResponseArnHasBeenSet = false;
317
318 Aws::String m_quickResponseId;
319 bool m_quickResponseIdHasBeenSet = false;
320
321 Aws::String m_shortcutKey;
322 bool m_shortcutKeyHasBeenSet = false;
323
325 bool m_statusHasBeenSet = false;
326
328 bool m_tagsHasBeenSet = false;
329 };
330
331} // namespace Model
332} // namespace ConnectWisdomService
333} // 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