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/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/model/QuickResponseStatus.h>
10#include <aws/qconnect/model/QuickResponseContents.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/qconnect/model/GroupingConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSVector.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 QConnect
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_QCONNECT_API QuickResponseSearchResultData() = default;
43 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetQuickResponseArn() const { return m_quickResponseArn; }
51 inline bool QuickResponseArnHasBeenSet() const { return m_quickResponseArnHasBeenSet; }
52 template<typename QuickResponseArnT = Aws::String>
53 void SetQuickResponseArn(QuickResponseArnT&& value) { m_quickResponseArnHasBeenSet = true; m_quickResponseArn = std::forward<QuickResponseArnT>(value); }
54 template<typename QuickResponseArnT = Aws::String>
55 QuickResponseSearchResultData& WithQuickResponseArn(QuickResponseArnT&& value) { SetQuickResponseArn(std::forward<QuickResponseArnT>(value)); return *this;}
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) { m_quickResponseIdHasBeenSet = true; m_quickResponseId = std::forward<QuickResponseIdT>(value); }
66 template<typename QuickResponseIdT = Aws::String>
67 QuickResponseSearchResultData& WithQuickResponseId(QuickResponseIdT&& value) { SetQuickResponseId(std::forward<QuickResponseIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
75 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
76 template<typename KnowledgeBaseArnT = Aws::String>
77 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
78 template<typename KnowledgeBaseArnT = Aws::String>
79 QuickResponseSearchResultData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
81
83
87 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
88 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
89 template<typename KnowledgeBaseIdT = Aws::String>
90 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
91 template<typename KnowledgeBaseIdT = Aws::String>
92 QuickResponseSearchResultData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
94
96
99 inline const Aws::String& GetName() const { return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 template<typename NameT = Aws::String>
102 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
103 template<typename NameT = Aws::String>
104 QuickResponseSearchResultData& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
106
108
115 inline const Aws::String& GetContentType() const { return m_contentType; }
116 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
117 template<typename ContentTypeT = Aws::String>
118 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
119 template<typename ContentTypeT = Aws::String>
120 QuickResponseSearchResultData& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
122
124
127 inline QuickResponseStatus GetStatus() const { return m_status; }
128 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
129 inline void SetStatus(QuickResponseStatus value) { m_statusHasBeenSet = true; m_status = value; }
132
134
137 inline const QuickResponseContents& GetContents() const { return m_contents; }
138 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
139 template<typename ContentsT = QuickResponseContents>
140 void SetContents(ContentsT&& value) { m_contentsHasBeenSet = true; m_contents = std::forward<ContentsT>(value); }
141 template<typename ContentsT = QuickResponseContents>
142 QuickResponseSearchResultData& WithContents(ContentsT&& value) { SetContents(std::forward<ContentsT>(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
150 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
151 template<typename CreatedTimeT = Aws::Utils::DateTime>
152 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
153 template<typename CreatedTimeT = Aws::Utils::DateTime>
154 QuickResponseSearchResultData& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
156
158
162 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
163 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
164 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
165 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
166 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
167 QuickResponseSearchResultData& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
169
171
174 inline bool GetIsActive() const { return m_isActive; }
175 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
176 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
177 inline QuickResponseSearchResultData& WithIsActive(bool value) { SetIsActive(value); return *this;}
179
181
184 inline const Aws::String& GetDescription() const { return m_description; }
185 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
186 template<typename DescriptionT = Aws::String>
187 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
188 template<typename DescriptionT = Aws::String>
189 QuickResponseSearchResultData& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
191
193
197 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
198 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
199 template<typename GroupingConfigurationT = GroupingConfiguration>
200 void SetGroupingConfiguration(GroupingConfigurationT&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::forward<GroupingConfigurationT>(value); }
201 template<typename GroupingConfigurationT = GroupingConfiguration>
202 QuickResponseSearchResultData& WithGroupingConfiguration(GroupingConfigurationT&& value) { SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value)); return *this;}
204
206
210 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
211 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
212 template<typename ShortcutKeyT = Aws::String>
213 void SetShortcutKey(ShortcutKeyT&& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = std::forward<ShortcutKeyT>(value); }
214 template<typename ShortcutKeyT = Aws::String>
215 QuickResponseSearchResultData& WithShortcutKey(ShortcutKeyT&& value) { SetShortcutKey(std::forward<ShortcutKeyT>(value)); return *this;}
217
219
223 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
224 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
225 template<typename LastModifiedByT = Aws::String>
226 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
227 template<typename LastModifiedByT = Aws::String>
228 QuickResponseSearchResultData& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
230
232
236 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
237 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
238 template<typename ChannelsT = Aws::Vector<Aws::String>>
239 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
240 template<typename ChannelsT = Aws::Vector<Aws::String>>
241 QuickResponseSearchResultData& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
242 template<typename ChannelsT = Aws::String>
243 QuickResponseSearchResultData& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
245
247
251 inline const Aws::String& GetLanguage() const { return m_language; }
252 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
253 template<typename LanguageT = Aws::String>
254 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
255 template<typename LanguageT = Aws::String>
256 QuickResponseSearchResultData& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
258
260
264 inline const Aws::Vector<Aws::String>& GetAttributesNotInterpolated() const { return m_attributesNotInterpolated; }
265 inline bool AttributesNotInterpolatedHasBeenSet() const { return m_attributesNotInterpolatedHasBeenSet; }
266 template<typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
267 void SetAttributesNotInterpolated(AttributesNotInterpolatedT&& value) { m_attributesNotInterpolatedHasBeenSet = true; m_attributesNotInterpolated = std::forward<AttributesNotInterpolatedT>(value); }
268 template<typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
269 QuickResponseSearchResultData& WithAttributesNotInterpolated(AttributesNotInterpolatedT&& value) { SetAttributesNotInterpolated(std::forward<AttributesNotInterpolatedT>(value)); return *this;}
270 template<typename AttributesNotInterpolatedT = Aws::String>
271 QuickResponseSearchResultData& AddAttributesNotInterpolated(AttributesNotInterpolatedT&& value) { m_attributesNotInterpolatedHasBeenSet = true; m_attributesNotInterpolated.emplace_back(std::forward<AttributesNotInterpolatedT>(value)); return *this; }
273
275
279 inline const Aws::Vector<Aws::String>& GetAttributesInterpolated() const { return m_attributesInterpolated; }
280 inline bool AttributesInterpolatedHasBeenSet() const { return m_attributesInterpolatedHasBeenSet; }
281 template<typename AttributesInterpolatedT = Aws::Vector<Aws::String>>
282 void SetAttributesInterpolated(AttributesInterpolatedT&& value) { m_attributesInterpolatedHasBeenSet = true; m_attributesInterpolated = std::forward<AttributesInterpolatedT>(value); }
283 template<typename AttributesInterpolatedT = Aws::Vector<Aws::String>>
284 QuickResponseSearchResultData& WithAttributesInterpolated(AttributesInterpolatedT&& value) { SetAttributesInterpolated(std::forward<AttributesInterpolatedT>(value)); return *this;}
285 template<typename AttributesInterpolatedT = Aws::String>
286 QuickResponseSearchResultData& AddAttributesInterpolated(AttributesInterpolatedT&& value) { m_attributesInterpolatedHasBeenSet = true; m_attributesInterpolated.emplace_back(std::forward<AttributesInterpolatedT>(value)); return *this; }
288
290
293 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
294 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
295 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
296 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
297 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
298 QuickResponseSearchResultData& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
299 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
301 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
302 }
304 private:
305
306 Aws::String m_quickResponseArn;
307 bool m_quickResponseArnHasBeenSet = false;
308
309 Aws::String m_quickResponseId;
310 bool m_quickResponseIdHasBeenSet = false;
311
312 Aws::String m_knowledgeBaseArn;
313 bool m_knowledgeBaseArnHasBeenSet = false;
314
315 Aws::String m_knowledgeBaseId;
316 bool m_knowledgeBaseIdHasBeenSet = false;
317
318 Aws::String m_name;
319 bool m_nameHasBeenSet = false;
320
321 Aws::String m_contentType;
322 bool m_contentTypeHasBeenSet = false;
323
325 bool m_statusHasBeenSet = false;
326
327 QuickResponseContents m_contents;
328 bool m_contentsHasBeenSet = false;
329
330 Aws::Utils::DateTime m_createdTime{};
331 bool m_createdTimeHasBeenSet = false;
332
333 Aws::Utils::DateTime m_lastModifiedTime{};
334 bool m_lastModifiedTimeHasBeenSet = false;
335
336 bool m_isActive{false};
337 bool m_isActiveHasBeenSet = false;
338
339 Aws::String m_description;
340 bool m_descriptionHasBeenSet = false;
341
342 GroupingConfiguration m_groupingConfiguration;
343 bool m_groupingConfigurationHasBeenSet = false;
344
345 Aws::String m_shortcutKey;
346 bool m_shortcutKeyHasBeenSet = false;
347
348 Aws::String m_lastModifiedBy;
349 bool m_lastModifiedByHasBeenSet = false;
350
351 Aws::Vector<Aws::String> m_channels;
352 bool m_channelsHasBeenSet = false;
353
354 Aws::String m_language;
355 bool m_languageHasBeenSet = false;
356
357 Aws::Vector<Aws::String> m_attributesNotInterpolated;
358 bool m_attributesNotInterpolatedHasBeenSet = false;
359
360 Aws::Vector<Aws::String> m_attributesInterpolated;
361 bool m_attributesInterpolatedHasBeenSet = false;
362
364 bool m_tagsHasBeenSet = false;
365 };
366
367} // namespace Model
368} // namespace QConnect
369} // namespace Aws
QuickResponseSearchResultData & AddChannels(ChannelsT &&value)
QuickResponseSearchResultData & WithGroupingConfiguration(GroupingConfigurationT &&value)
QuickResponseSearchResultData & WithQuickResponseId(QuickResponseIdT &&value)
AWS_QCONNECT_API QuickResponseSearchResultData & operator=(Aws::Utils::Json::JsonView jsonValue)
QuickResponseSearchResultData & WithQuickResponseArn(QuickResponseArnT &&value)
QuickResponseSearchResultData & WithShortcutKey(ShortcutKeyT &&value)
QuickResponseSearchResultData & WithLastModifiedBy(LastModifiedByT &&value)
const Aws::Vector< Aws::String > & GetAttributesNotInterpolated() const
QuickResponseSearchResultData & WithIsActive(bool value)
QuickResponseSearchResultData & WithAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
void SetAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
QuickResponseSearchResultData & WithStatus(QuickResponseStatus value)
QuickResponseSearchResultData & WithLanguage(LanguageT &&value)
QuickResponseSearchResultData & WithContentType(ContentTypeT &&value)
QuickResponseSearchResultData & WithDescription(DescriptionT &&value)
QuickResponseSearchResultData & WithAttributesInterpolated(AttributesInterpolatedT &&value)
QuickResponseSearchResultData & AddAttributesInterpolated(AttributesInterpolatedT &&value)
AWS_QCONNECT_API QuickResponseSearchResultData(Aws::Utils::Json::JsonView jsonValue)
QuickResponseSearchResultData & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
QuickResponseSearchResultData & WithCreatedTime(CreatedTimeT &&value)
QuickResponseSearchResultData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
QuickResponseSearchResultData & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_QCONNECT_API QuickResponseSearchResultData()=default
QuickResponseSearchResultData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
QuickResponseSearchResultData & AddAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
QuickResponseSearchResultData & WithContents(ContentsT &&value)
const Aws::Vector< Aws::String > & GetAttributesInterpolated() const
QuickResponseSearchResultData & WithChannels(ChannelsT &&value)
QuickResponseSearchResultData & WithTags(TagsT &&value)
QuickResponseSearchResultData & WithLastModifiedTime(LastModifiedTimeT &&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