AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
QuickResponseSearchResultData.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 QuickResponseSearchResultData() = default;
41 AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchResultData(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECTWISDOMSERVICE_API QuickResponseSearchResultData& 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>& GetAttributesInterpolated() const { return m_attributesInterpolated; }
52 inline bool AttributesInterpolatedHasBeenSet() const { return m_attributesInterpolatedHasBeenSet; }
53 template<typename AttributesInterpolatedT = Aws::Vector<Aws::String>>
54 void SetAttributesInterpolated(AttributesInterpolatedT&& value) { m_attributesInterpolatedHasBeenSet = true; m_attributesInterpolated = std::forward<AttributesInterpolatedT>(value); }
55 template<typename AttributesInterpolatedT = Aws::Vector<Aws::String>>
56 QuickResponseSearchResultData& WithAttributesInterpolated(AttributesInterpolatedT&& value) { SetAttributesInterpolated(std::forward<AttributesInterpolatedT>(value)); return *this;}
57 template<typename AttributesInterpolatedT = Aws::String>
58 QuickResponseSearchResultData& AddAttributesInterpolated(AttributesInterpolatedT&& value) { m_attributesInterpolatedHasBeenSet = true; m_attributesInterpolated.emplace_back(std::forward<AttributesInterpolatedT>(value)); return *this; }
60
62
66 inline const Aws::Vector<Aws::String>& GetAttributesNotInterpolated() const { return m_attributesNotInterpolated; }
67 inline bool AttributesNotInterpolatedHasBeenSet() const { return m_attributesNotInterpolatedHasBeenSet; }
68 template<typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
69 void SetAttributesNotInterpolated(AttributesNotInterpolatedT&& value) { m_attributesNotInterpolatedHasBeenSet = true; m_attributesNotInterpolated = std::forward<AttributesNotInterpolatedT>(value); }
70 template<typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
71 QuickResponseSearchResultData& WithAttributesNotInterpolated(AttributesNotInterpolatedT&& value) { SetAttributesNotInterpolated(std::forward<AttributesNotInterpolatedT>(value)); return *this;}
72 template<typename AttributesNotInterpolatedT = Aws::String>
73 QuickResponseSearchResultData& AddAttributesNotInterpolated(AttributesNotInterpolatedT&& value) { m_attributesNotInterpolatedHasBeenSet = true; m_attributesNotInterpolated.emplace_back(std::forward<AttributesNotInterpolatedT>(value)); return *this; }
75
77
81 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
82 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
83 template<typename ChannelsT = Aws::Vector<Aws::String>>
84 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
85 template<typename ChannelsT = Aws::Vector<Aws::String>>
86 QuickResponseSearchResultData& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
87 template<typename ChannelsT = Aws::String>
88 QuickResponseSearchResultData& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
90
92
99 inline const Aws::String& GetContentType() const { return m_contentType; }
100 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
101 template<typename ContentTypeT = Aws::String>
102 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
103 template<typename ContentTypeT = Aws::String>
104 QuickResponseSearchResultData& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
106
108
111 inline const QuickResponseContents& GetContents() const { return m_contents; }
112 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
113 template<typename ContentsT = QuickResponseContents>
114 void SetContents(ContentsT&& value) { m_contentsHasBeenSet = true; m_contents = std::forward<ContentsT>(value); }
115 template<typename ContentsT = QuickResponseContents>
116 QuickResponseSearchResultData& WithContents(ContentsT&& value) { SetContents(std::forward<ContentsT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
124 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
125 template<typename CreatedTimeT = Aws::Utils::DateTime>
126 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
127 template<typename CreatedTimeT = Aws::Utils::DateTime>
128 QuickResponseSearchResultData& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
130
132
135 inline const Aws::String& GetDescription() const { return m_description; }
136 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
137 template<typename DescriptionT = Aws::String>
138 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
139 template<typename DescriptionT = Aws::String>
140 QuickResponseSearchResultData& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
142
144
148 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
149 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
150 template<typename GroupingConfigurationT = GroupingConfiguration>
151 void SetGroupingConfiguration(GroupingConfigurationT&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::forward<GroupingConfigurationT>(value); }
152 template<typename GroupingConfigurationT = GroupingConfiguration>
153 QuickResponseSearchResultData& WithGroupingConfiguration(GroupingConfigurationT&& value) { SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value)); return *this;}
155
157
160 inline bool GetIsActive() const { return m_isActive; }
161 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
162 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
163 inline QuickResponseSearchResultData& WithIsActive(bool value) { SetIsActive(value); return *this;}
165
167
170 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
171 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
172 template<typename KnowledgeBaseArnT = Aws::String>
173 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
174 template<typename KnowledgeBaseArnT = Aws::String>
175 QuickResponseSearchResultData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
177
179
184 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
185 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
186 template<typename KnowledgeBaseIdT = Aws::String>
187 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
188 template<typename KnowledgeBaseIdT = Aws::String>
189 QuickResponseSearchResultData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
191
193
197 inline const Aws::String& GetLanguage() const { return m_language; }
198 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
199 template<typename LanguageT = Aws::String>
200 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
201 template<typename LanguageT = Aws::String>
202 QuickResponseSearchResultData& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
204
206
210 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
211 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
212 template<typename LastModifiedByT = Aws::String>
213 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
214 template<typename LastModifiedByT = Aws::String>
215 QuickResponseSearchResultData& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
217
219
223 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
224 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
225 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
226 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
227 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
228 QuickResponseSearchResultData& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
230
232
235 inline const Aws::String& GetName() const { return m_name; }
236 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
237 template<typename NameT = Aws::String>
238 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
239 template<typename NameT = Aws::String>
240 QuickResponseSearchResultData& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
242
244
247 inline const Aws::String& GetQuickResponseArn() const { return m_quickResponseArn; }
248 inline bool QuickResponseArnHasBeenSet() const { return m_quickResponseArnHasBeenSet; }
249 template<typename QuickResponseArnT = Aws::String>
250 void SetQuickResponseArn(QuickResponseArnT&& value) { m_quickResponseArnHasBeenSet = true; m_quickResponseArn = std::forward<QuickResponseArnT>(value); }
251 template<typename QuickResponseArnT = Aws::String>
252 QuickResponseSearchResultData& WithQuickResponseArn(QuickResponseArnT&& value) { SetQuickResponseArn(std::forward<QuickResponseArnT>(value)); return *this;}
254
256
259 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
260 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
261 template<typename QuickResponseIdT = Aws::String>
262 void SetQuickResponseId(QuickResponseIdT&& value) { m_quickResponseIdHasBeenSet = true; m_quickResponseId = std::forward<QuickResponseIdT>(value); }
263 template<typename QuickResponseIdT = Aws::String>
264 QuickResponseSearchResultData& WithQuickResponseId(QuickResponseIdT&& value) { SetQuickResponseId(std::forward<QuickResponseIdT>(value)); return *this;}
266
268
272 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
273 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
274 template<typename ShortcutKeyT = Aws::String>
275 void SetShortcutKey(ShortcutKeyT&& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = std::forward<ShortcutKeyT>(value); }
276 template<typename ShortcutKeyT = Aws::String>
277 QuickResponseSearchResultData& WithShortcutKey(ShortcutKeyT&& value) { SetShortcutKey(std::forward<ShortcutKeyT>(value)); return *this;}
279
281
284 inline QuickResponseStatus GetStatus() const { return m_status; }
285 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
286 inline void SetStatus(QuickResponseStatus value) { m_statusHasBeenSet = true; m_status = value; }
289
291
294 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
295 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
296 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
297 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
298 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
299 QuickResponseSearchResultData& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
300 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
301 QuickResponseSearchResultData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
302 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
303 }
305 private:
306
307 Aws::Vector<Aws::String> m_attributesInterpolated;
308 bool m_attributesInterpolatedHasBeenSet = false;
309
310 Aws::Vector<Aws::String> m_attributesNotInterpolated;
311 bool m_attributesNotInterpolatedHasBeenSet = false;
312
313 Aws::Vector<Aws::String> m_channels;
314 bool m_channelsHasBeenSet = false;
315
316 Aws::String m_contentType;
317 bool m_contentTypeHasBeenSet = false;
318
319 QuickResponseContents m_contents;
320 bool m_contentsHasBeenSet = false;
321
322 Aws::Utils::DateTime m_createdTime{};
323 bool m_createdTimeHasBeenSet = false;
324
325 Aws::String m_description;
326 bool m_descriptionHasBeenSet = false;
327
328 GroupingConfiguration m_groupingConfiguration;
329 bool m_groupingConfigurationHasBeenSet = false;
330
331 bool m_isActive{false};
332 bool m_isActiveHasBeenSet = false;
333
334 Aws::String m_knowledgeBaseArn;
335 bool m_knowledgeBaseArnHasBeenSet = false;
336
337 Aws::String m_knowledgeBaseId;
338 bool m_knowledgeBaseIdHasBeenSet = false;
339
340 Aws::String m_language;
341 bool m_languageHasBeenSet = false;
342
343 Aws::String m_lastModifiedBy;
344 bool m_lastModifiedByHasBeenSet = false;
345
346 Aws::Utils::DateTime m_lastModifiedTime{};
347 bool m_lastModifiedTimeHasBeenSet = false;
348
349 Aws::String m_name;
350 bool m_nameHasBeenSet = false;
351
352 Aws::String m_quickResponseArn;
353 bool m_quickResponseArnHasBeenSet = false;
354
355 Aws::String m_quickResponseId;
356 bool m_quickResponseIdHasBeenSet = false;
357
358 Aws::String m_shortcutKey;
359 bool m_shortcutKeyHasBeenSet = false;
360
362 bool m_statusHasBeenSet = false;
363
365 bool m_tagsHasBeenSet = false;
366 };
367
368} // namespace Model
369} // namespace ConnectWisdomService
370} // 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 & WithChannels(ChannelsT &&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