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/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/model/QuickResponseStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/qconnect/model/QuickResponseContents.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 QuickResponseData() = 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 QuickResponseData& 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 QuickResponseData& 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 QuickResponseData& 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 QuickResponseData& 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 QuickResponseData& 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 QuickResponseData& 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; }
130 inline QuickResponseData& WithStatus(QuickResponseStatus value) { SetStatus(value); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
138 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
139 template<typename CreatedTimeT = Aws::Utils::DateTime>
140 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
141 template<typename CreatedTimeT = Aws::Utils::DateTime>
142 QuickResponseData& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
150 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
151 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
152 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
153 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
154 QuickResponseData& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
156
158
161 inline const QuickResponseContents& GetContents() const { return m_contents; }
162 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
163 template<typename ContentsT = QuickResponseContents>
164 void SetContents(ContentsT&& value) { m_contentsHasBeenSet = true; m_contents = std::forward<ContentsT>(value); }
165 template<typename ContentsT = QuickResponseContents>
166 QuickResponseData& WithContents(ContentsT&& value) { SetContents(std::forward<ContentsT>(value)); return *this;}
168
170
173 inline const Aws::String& GetDescription() const { return m_description; }
174 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
175 template<typename DescriptionT = Aws::String>
176 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
177 template<typename DescriptionT = Aws::String>
178 QuickResponseData& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
180
182
186 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
187 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
188 template<typename GroupingConfigurationT = GroupingConfiguration>
189 void SetGroupingConfiguration(GroupingConfigurationT&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::forward<GroupingConfigurationT>(value); }
190 template<typename GroupingConfigurationT = GroupingConfiguration>
191 QuickResponseData& WithGroupingConfiguration(GroupingConfigurationT&& value) { SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value)); return *this;}
193
195
199 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
200 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
201 template<typename ShortcutKeyT = Aws::String>
202 void SetShortcutKey(ShortcutKeyT&& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = std::forward<ShortcutKeyT>(value); }
203 template<typename ShortcutKeyT = Aws::String>
204 QuickResponseData& WithShortcutKey(ShortcutKeyT&& value) { SetShortcutKey(std::forward<ShortcutKeyT>(value)); return *this;}
206
208
212 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
213 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
214 template<typename LastModifiedByT = Aws::String>
215 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
216 template<typename LastModifiedByT = Aws::String>
217 QuickResponseData& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
219
221
224 inline bool GetIsActive() const { return m_isActive; }
225 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
226 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
227 inline QuickResponseData& WithIsActive(bool value) { SetIsActive(value); return *this;}
229
231
235 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
236 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
237 template<typename ChannelsT = Aws::Vector<Aws::String>>
238 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
239 template<typename ChannelsT = Aws::Vector<Aws::String>>
240 QuickResponseData& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
241 template<typename ChannelsT = Aws::String>
242 QuickResponseData& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
244
246
253 inline const Aws::String& GetLanguage() const { return m_language; }
254 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
255 template<typename LanguageT = Aws::String>
256 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
257 template<typename LanguageT = Aws::String>
258 QuickResponseData& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
260
262
265 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
266 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
267 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
268 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
269 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
270 QuickResponseData& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
271 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
273 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
274 }
276 private:
277
278 Aws::String m_quickResponseArn;
279 bool m_quickResponseArnHasBeenSet = false;
280
281 Aws::String m_quickResponseId;
282 bool m_quickResponseIdHasBeenSet = false;
283
284 Aws::String m_knowledgeBaseArn;
285 bool m_knowledgeBaseArnHasBeenSet = false;
286
287 Aws::String m_knowledgeBaseId;
288 bool m_knowledgeBaseIdHasBeenSet = false;
289
290 Aws::String m_name;
291 bool m_nameHasBeenSet = false;
292
293 Aws::String m_contentType;
294 bool m_contentTypeHasBeenSet = false;
295
297 bool m_statusHasBeenSet = false;
298
299 Aws::Utils::DateTime m_createdTime{};
300 bool m_createdTimeHasBeenSet = false;
301
302 Aws::Utils::DateTime m_lastModifiedTime{};
303 bool m_lastModifiedTimeHasBeenSet = false;
304
305 QuickResponseContents m_contents;
306 bool m_contentsHasBeenSet = false;
307
308 Aws::String m_description;
309 bool m_descriptionHasBeenSet = false;
310
311 GroupingConfiguration m_groupingConfiguration;
312 bool m_groupingConfigurationHasBeenSet = false;
313
314 Aws::String m_shortcutKey;
315 bool m_shortcutKeyHasBeenSet = false;
316
317 Aws::String m_lastModifiedBy;
318 bool m_lastModifiedByHasBeenSet = false;
319
320 bool m_isActive{false};
321 bool m_isActiveHasBeenSet = false;
322
323 Aws::Vector<Aws::String> m_channels;
324 bool m_channelsHasBeenSet = false;
325
326 Aws::String m_language;
327 bool m_languageHasBeenSet = false;
328
330 bool m_tagsHasBeenSet = false;
331 };
332
333} // namespace Model
334} // namespace QConnect
335} // 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