AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateQuickResponseRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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/qconnect/QConnectRequest.h>
12#include <aws/qconnect/QConnect_EXPORTS.h>
13#include <aws/qconnect/model/GroupingConfiguration.h>
14#include <aws/qconnect/model/QuickResponseDataProvider.h>
15
16#include <utility>
17
18namespace Aws {
19namespace QConnect {
20namespace Model {
21
25 public:
26 AWS_QCONNECT_API CreateQuickResponseRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateQuickResponse"; }
33
34 AWS_QCONNECT_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
42 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
43 template <typename KnowledgeBaseIdT = Aws::String>
44 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
45 m_knowledgeBaseIdHasBeenSet = true;
46 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
47 }
48 template <typename KnowledgeBaseIdT = Aws::String>
50 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const QuickResponseDataProvider& GetContent() const { return m_content; }
78 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
79 template <typename ContentT = QuickResponseDataProvider>
80 void SetContent(ContentT&& value) {
81 m_contentHasBeenSet = true;
82 m_content = std::forward<ContentT>(value);
83 }
84 template <typename ContentT = QuickResponseDataProvider>
86 SetContent(std::forward<ContentT>(value));
87 return *this;
88 }
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) {
103 m_contentTypeHasBeenSet = true;
104 m_contentType = std::forward<ContentTypeT>(value);
105 }
106 template <typename ContentTypeT = Aws::String>
108 SetContentType(std::forward<ContentTypeT>(value));
109 return *this;
110 }
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) {
122 m_groupingConfigurationHasBeenSet = true;
123 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
124 }
125 template <typename GroupingConfigurationT = GroupingConfiguration>
126 CreateQuickResponseRequest& WithGroupingConfiguration(GroupingConfigurationT&& value) {
127 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetDescription() const { return m_description; }
137 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
138 template <typename DescriptionT = Aws::String>
139 void SetDescription(DescriptionT&& value) {
140 m_descriptionHasBeenSet = true;
141 m_description = std::forward<DescriptionT>(value);
142 }
143 template <typename DescriptionT = Aws::String>
145 SetDescription(std::forward<DescriptionT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
156 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
157 template <typename ShortcutKeyT = Aws::String>
158 void SetShortcutKey(ShortcutKeyT&& value) {
159 m_shortcutKeyHasBeenSet = true;
160 m_shortcutKey = std::forward<ShortcutKeyT>(value);
161 }
162 template <typename ShortcutKeyT = Aws::String>
164 SetShortcutKey(std::forward<ShortcutKeyT>(value));
165 return *this;
166 }
168
170
173 inline bool GetIsActive() const { return m_isActive; }
174 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
175 inline void SetIsActive(bool value) {
176 m_isActiveHasBeenSet = true;
177 m_isActive = value;
178 }
180 SetIsActive(value);
181 return *this;
182 }
184
186
189 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
190 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
191 template <typename ChannelsT = Aws::Vector<Aws::String>>
192 void SetChannels(ChannelsT&& value) {
193 m_channelsHasBeenSet = true;
194 m_channels = std::forward<ChannelsT>(value);
195 }
196 template <typename ChannelsT = Aws::Vector<Aws::String>>
198 SetChannels(std::forward<ChannelsT>(value));
199 return *this;
200 }
201 template <typename ChannelsT = Aws::String>
203 m_channelsHasBeenSet = true;
204 m_channels.emplace_back(std::forward<ChannelsT>(value));
205 return *this;
206 }
208
210
217 inline const Aws::String& GetLanguage() const { return m_language; }
218 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
219 template <typename LanguageT = Aws::String>
220 void SetLanguage(LanguageT&& value) {
221 m_languageHasBeenSet = true;
222 m_language = std::forward<LanguageT>(value);
223 }
224 template <typename LanguageT = Aws::String>
226 SetLanguage(std::forward<LanguageT>(value));
227 return *this;
228 }
230
232
239 inline const Aws::String& GetClientToken() const { return m_clientToken; }
240 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
241 template <typename ClientTokenT = Aws::String>
242 void SetClientToken(ClientTokenT&& value) {
243 m_clientTokenHasBeenSet = true;
244 m_clientToken = std::forward<ClientTokenT>(value);
245 }
246 template <typename ClientTokenT = Aws::String>
248 SetClientToken(std::forward<ClientTokenT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
258 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
259 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
260 void SetTags(TagsT&& value) {
261 m_tagsHasBeenSet = true;
262 m_tags = std::forward<TagsT>(value);
263 }
264 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
266 SetTags(std::forward<TagsT>(value));
267 return *this;
268 }
269 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
270 CreateQuickResponseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
271 m_tagsHasBeenSet = true;
272 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
273 return *this;
274 }
276 private:
277 Aws::String m_knowledgeBaseId;
278
279 Aws::String m_name;
280
282
283 Aws::String m_contentType;
284
285 GroupingConfiguration m_groupingConfiguration;
286
287 Aws::String m_description;
288
289 Aws::String m_shortcutKey;
290
291 bool m_isActive{false};
292
293 Aws::Vector<Aws::String> m_channels;
294
295 Aws::String m_language;
296
298
300 bool m_knowledgeBaseIdHasBeenSet = false;
301 bool m_nameHasBeenSet = false;
302 bool m_contentHasBeenSet = false;
303 bool m_contentTypeHasBeenSet = false;
304 bool m_groupingConfigurationHasBeenSet = false;
305 bool m_descriptionHasBeenSet = false;
306 bool m_shortcutKeyHasBeenSet = false;
307 bool m_isActiveHasBeenSet = false;
308 bool m_channelsHasBeenSet = false;
309 bool m_languageHasBeenSet = false;
310 bool m_clientTokenHasBeenSet = true;
311 bool m_tagsHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace QConnect
316} // namespace Aws
CreateQuickResponseRequest & AddChannels(ChannelsT &&value)
CreateQuickResponseRequest & WithGroupingConfiguration(GroupingConfigurationT &&value)
CreateQuickResponseRequest & WithContent(ContentT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateQuickResponseRequest & WithDescription(DescriptionT &&value)
const GroupingConfiguration & GetGroupingConfiguration() const
CreateQuickResponseRequest & WithLanguage(LanguageT &&value)
CreateQuickResponseRequest & WithClientToken(ClientTokenT &&value)
CreateQuickResponseRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateQuickResponseRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateQuickResponseRequest & WithShortcutKey(ShortcutKeyT &&value)
CreateQuickResponseRequest & WithChannels(ChannelsT &&value)
CreateQuickResponseRequest & WithContentType(ContentTypeT &&value)
AWS_QCONNECT_API CreateQuickResponseRequest()=default
const Aws::Vector< Aws::String > & GetChannels() const
CreateQuickResponseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetGroupingConfiguration(GroupingConfigurationT &&value)
const QuickResponseDataProvider & GetContent() const
CreateQuickResponseRequest & WithTags(TagsT &&value)
CreateQuickResponseRequest & WithIsActive(bool value)
static Aws::Utils::UUID PseudoRandomUUID()
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