AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateQuickResponseRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qconnect/QConnectRequest.h>
10#include <aws/qconnect/QConnect_EXPORTS.h>
11#include <aws/qconnect/model/GroupingConfiguration.h>
12#include <aws/qconnect/model/QuickResponseDataProvider.h>
13
14#include <utility>
15
16namespace Aws {
17namespace QConnect {
18namespace Model {
19
23 public:
24 AWS_QCONNECT_API UpdateQuickResponseRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateQuickResponse"; }
31
32 AWS_QCONNECT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
40 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
41 template <typename KnowledgeBaseIdT = Aws::String>
43 m_knowledgeBaseIdHasBeenSet = true;
44 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
45 }
46 template <typename KnowledgeBaseIdT = Aws::String>
48 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
58 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
59 template <typename QuickResponseIdT = Aws::String>
61 m_quickResponseIdHasBeenSet = true;
62 m_quickResponseId = std::forward<QuickResponseIdT>(value);
63 }
64 template <typename QuickResponseIdT = Aws::String>
66 SetQuickResponseId(std::forward<QuickResponseIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const QuickResponseDataProvider& GetContent() const { return m_content; }
94 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
95 template <typename ContentT = QuickResponseDataProvider>
96 void SetContent(ContentT&& value) {
97 m_contentHasBeenSet = true;
98 m_content = std::forward<ContentT>(value);
99 }
100 template <typename ContentT = QuickResponseDataProvider>
102 SetContent(std::forward<ContentT>(value));
103 return *this;
104 }
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>
119 m_contentTypeHasBeenSet = true;
120 m_contentType = std::forward<ContentTypeT>(value);
121 }
122 template <typename ContentTypeT = Aws::String>
124 SetContentType(std::forward<ContentTypeT>(value));
125 return *this;
126 }
128
130
133 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
134 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
135 template <typename GroupingConfigurationT = GroupingConfiguration>
137 m_groupingConfigurationHasBeenSet = true;
138 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
139 }
140 template <typename GroupingConfigurationT = GroupingConfiguration>
142 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
143 return *this;
144 }
146
148
151 inline bool GetRemoveGroupingConfiguration() const { return m_removeGroupingConfiguration; }
152 inline bool RemoveGroupingConfigurationHasBeenSet() const { return m_removeGroupingConfigurationHasBeenSet; }
153 inline void SetRemoveGroupingConfiguration(bool value) {
154 m_removeGroupingConfigurationHasBeenSet = true;
155 m_removeGroupingConfiguration = value;
156 }
159 return *this;
160 }
162
164
167 inline const Aws::String& GetDescription() const { return m_description; }
168 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
169 template <typename DescriptionT = Aws::String>
171 m_descriptionHasBeenSet = true;
172 m_description = std::forward<DescriptionT>(value);
173 }
174 template <typename DescriptionT = Aws::String>
176 SetDescription(std::forward<DescriptionT>(value));
177 return *this;
178 }
180
182
185 inline bool GetRemoveDescription() const { return m_removeDescription; }
186 inline bool RemoveDescriptionHasBeenSet() const { return m_removeDescriptionHasBeenSet; }
187 inline void SetRemoveDescription(bool value) {
188 m_removeDescriptionHasBeenSet = true;
189 m_removeDescription = value;
190 }
193 return *this;
194 }
196
198
202 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
203 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
204 template <typename ShortcutKeyT = Aws::String>
206 m_shortcutKeyHasBeenSet = true;
207 m_shortcutKey = std::forward<ShortcutKeyT>(value);
208 }
209 template <typename ShortcutKeyT = Aws::String>
211 SetShortcutKey(std::forward<ShortcutKeyT>(value));
212 return *this;
213 }
215
217
220 inline bool GetRemoveShortcutKey() const { return m_removeShortcutKey; }
221 inline bool RemoveShortcutKeyHasBeenSet() const { return m_removeShortcutKeyHasBeenSet; }
222 inline void SetRemoveShortcutKey(bool value) {
223 m_removeShortcutKeyHasBeenSet = true;
224 m_removeShortcutKey = value;
225 }
228 return *this;
229 }
231
233
236 inline bool GetIsActive() const { return m_isActive; }
237 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
238 inline void SetIsActive(bool value) {
239 m_isActiveHasBeenSet = true;
240 m_isActive = value;
241 }
243 SetIsActive(value);
244 return *this;
245 }
247
249
253 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
254 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
255 template <typename ChannelsT = Aws::Vector<Aws::String>>
256 void SetChannels(ChannelsT&& value) {
257 m_channelsHasBeenSet = true;
258 m_channels = std::forward<ChannelsT>(value);
259 }
260 template <typename ChannelsT = Aws::Vector<Aws::String>>
262 SetChannels(std::forward<ChannelsT>(value));
263 return *this;
264 }
265 template <typename ChannelsT = Aws::String>
267 m_channelsHasBeenSet = true;
268 m_channels.emplace_back(std::forward<ChannelsT>(value));
269 return *this;
270 }
272
274
281 inline const Aws::String& GetLanguage() const { return m_language; }
282 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
283 template <typename LanguageT = Aws::String>
284 void SetLanguage(LanguageT&& value) {
285 m_languageHasBeenSet = true;
286 m_language = std::forward<LanguageT>(value);
287 }
288 template <typename LanguageT = Aws::String>
290 SetLanguage(std::forward<LanguageT>(value));
291 return *this;
292 }
294 private:
295 Aws::String m_knowledgeBaseId;
296
297 Aws::String m_quickResponseId;
298
299 Aws::String m_name;
300
302
303 Aws::String m_contentType;
304
305 GroupingConfiguration m_groupingConfiguration;
306
307 bool m_removeGroupingConfiguration{false};
308
309 Aws::String m_description;
310
311 bool m_removeDescription{false};
312
313 Aws::String m_shortcutKey;
314
315 bool m_removeShortcutKey{false};
316
317 bool m_isActive{false};
318
319 Aws::Vector<Aws::String> m_channels;
320
321 Aws::String m_language;
322 bool m_knowledgeBaseIdHasBeenSet = false;
323 bool m_quickResponseIdHasBeenSet = false;
324 bool m_nameHasBeenSet = false;
325 bool m_contentHasBeenSet = false;
326 bool m_contentTypeHasBeenSet = false;
327 bool m_groupingConfigurationHasBeenSet = false;
328 bool m_removeGroupingConfigurationHasBeenSet = false;
329 bool m_descriptionHasBeenSet = false;
330 bool m_removeDescriptionHasBeenSet = false;
331 bool m_shortcutKeyHasBeenSet = false;
332 bool m_removeShortcutKeyHasBeenSet = false;
333 bool m_isActiveHasBeenSet = false;
334 bool m_channelsHasBeenSet = false;
335 bool m_languageHasBeenSet = false;
336};
337
338} // namespace Model
339} // namespace QConnect
340} // namespace Aws
UpdateQuickResponseRequest & WithContentType(ContentTypeT &&value)
UpdateQuickResponseRequest & WithShortcutKey(ShortcutKeyT &&value)
UpdateQuickResponseRequest & WithDescription(DescriptionT &&value)
AWS_QCONNECT_API UpdateQuickResponseRequest()=default
const Aws::Vector< Aws::String > & GetChannels() const
UpdateQuickResponseRequest & WithContent(ContentT &&value)
UpdateQuickResponseRequest & WithRemoveGroupingConfiguration(bool value)
const QuickResponseDataProvider & GetContent() const
virtual const char * GetServiceRequestName() const override
UpdateQuickResponseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
UpdateQuickResponseRequest & WithName(NameT &&value)
UpdateQuickResponseRequest & WithIsActive(bool value)
UpdateQuickResponseRequest & WithQuickResponseId(QuickResponseIdT &&value)
UpdateQuickResponseRequest & WithChannels(ChannelsT &&value)
UpdateQuickResponseRequest & AddChannels(ChannelsT &&value)
UpdateQuickResponseRequest & WithRemoveShortcutKey(bool value)
const GroupingConfiguration & GetGroupingConfiguration() const
UpdateQuickResponseRequest & WithLanguage(LanguageT &&value)
UpdateQuickResponseRequest & WithGroupingConfiguration(GroupingConfigurationT &&value)
UpdateQuickResponseRequest & WithRemoveDescription(bool value)
void SetGroupingConfiguration(GroupingConfigurationT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector