AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/wisdom/ConnectWisdomServiceRequest.h>
10#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
11#include <aws/wisdom/model/GroupingConfiguration.h>
12#include <aws/wisdom/model/QuickResponseDataProvider.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ConnectWisdomService {
18namespace Model {
19
23 public:
24 AWS_CONNECTWISDOMSERVICE_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_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
40 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
41 template <typename ChannelsT = Aws::Vector<Aws::String>>
42 void SetChannels(ChannelsT&& value) {
43 m_channelsHasBeenSet = true;
44 m_channels = std::forward<ChannelsT>(value);
45 }
46 template <typename ChannelsT = Aws::Vector<Aws::String>>
48 SetChannels(std::forward<ChannelsT>(value));
49 return *this;
50 }
51 template <typename ChannelsT = Aws::String>
53 m_channelsHasBeenSet = true;
54 m_channels.emplace_back(std::forward<ChannelsT>(value));
55 return *this;
56 }
58
60
63 inline const QuickResponseDataProvider& GetContent() const { return m_content; }
64 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
65 template <typename ContentT = QuickResponseDataProvider>
66 void SetContent(ContentT&& value) {
67 m_contentHasBeenSet = true;
68 m_content = std::forward<ContentT>(value);
69 }
70 template <typename ContentT = QuickResponseDataProvider>
72 SetContent(std::forward<ContentT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::String& GetContentType() const { return m_contentType; }
86 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
87 template <typename ContentTypeT = Aws::String>
88 void SetContentType(ContentTypeT&& value) {
89 m_contentTypeHasBeenSet = true;
90 m_contentType = std::forward<ContentTypeT>(value);
91 }
92 template <typename ContentTypeT = Aws::String>
94 SetContentType(std::forward<ContentTypeT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetDescription() const { return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 template <typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) {
107 m_descriptionHasBeenSet = true;
108 m_description = std::forward<DescriptionT>(value);
109 }
110 template <typename DescriptionT = Aws::String>
112 SetDescription(std::forward<DescriptionT>(value));
113 return *this;
114 }
116
118
121 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
122 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
123 template <typename GroupingConfigurationT = GroupingConfiguration>
124 void SetGroupingConfiguration(GroupingConfigurationT&& value) {
125 m_groupingConfigurationHasBeenSet = true;
126 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
127 }
128 template <typename GroupingConfigurationT = GroupingConfiguration>
129 UpdateQuickResponseRequest& WithGroupingConfiguration(GroupingConfigurationT&& value) {
130 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
131 return *this;
132 }
134
136
139 inline bool GetIsActive() const { return m_isActive; }
140 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
141 inline void SetIsActive(bool value) {
142 m_isActiveHasBeenSet = true;
143 m_isActive = value;
144 }
146 SetIsActive(value);
147 return *this;
148 }
150
152
157 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
158 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
159 template <typename KnowledgeBaseIdT = Aws::String>
160 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
161 m_knowledgeBaseIdHasBeenSet = true;
162 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
163 }
164 template <typename KnowledgeBaseIdT = Aws::String>
166 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
167 return *this;
168 }
170
172
179 inline const Aws::String& GetLanguage() const { return m_language; }
180 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
181 template <typename LanguageT = Aws::String>
182 void SetLanguage(LanguageT&& value) {
183 m_languageHasBeenSet = true;
184 m_language = std::forward<LanguageT>(value);
185 }
186 template <typename LanguageT = Aws::String>
188 SetLanguage(std::forward<LanguageT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetName() const { return m_name; }
198 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
199 template <typename NameT = Aws::String>
200 void SetName(NameT&& value) {
201 m_nameHasBeenSet = true;
202 m_name = std::forward<NameT>(value);
203 }
204 template <typename NameT = Aws::String>
206 SetName(std::forward<NameT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
216 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
217 template <typename QuickResponseIdT = Aws::String>
218 void SetQuickResponseId(QuickResponseIdT&& value) {
219 m_quickResponseIdHasBeenSet = true;
220 m_quickResponseId = std::forward<QuickResponseIdT>(value);
221 }
222 template <typename QuickResponseIdT = Aws::String>
224 SetQuickResponseId(std::forward<QuickResponseIdT>(value));
225 return *this;
226 }
228
230
233 inline bool GetRemoveDescription() const { return m_removeDescription; }
234 inline bool RemoveDescriptionHasBeenSet() const { return m_removeDescriptionHasBeenSet; }
235 inline void SetRemoveDescription(bool value) {
236 m_removeDescriptionHasBeenSet = true;
237 m_removeDescription = value;
238 }
241 return *this;
242 }
244
246
249 inline bool GetRemoveGroupingConfiguration() const { return m_removeGroupingConfiguration; }
250 inline bool RemoveGroupingConfigurationHasBeenSet() const { return m_removeGroupingConfigurationHasBeenSet; }
251 inline void SetRemoveGroupingConfiguration(bool value) {
252 m_removeGroupingConfigurationHasBeenSet = true;
253 m_removeGroupingConfiguration = value;
254 }
257 return *this;
258 }
260
262
265 inline bool GetRemoveShortcutKey() const { return m_removeShortcutKey; }
266 inline bool RemoveShortcutKeyHasBeenSet() const { return m_removeShortcutKeyHasBeenSet; }
267 inline void SetRemoveShortcutKey(bool value) {
268 m_removeShortcutKeyHasBeenSet = true;
269 m_removeShortcutKey = value;
270 }
273 return *this;
274 }
276
278
282 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
283 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
284 template <typename ShortcutKeyT = Aws::String>
285 void SetShortcutKey(ShortcutKeyT&& value) {
286 m_shortcutKeyHasBeenSet = true;
287 m_shortcutKey = std::forward<ShortcutKeyT>(value);
288 }
289 template <typename ShortcutKeyT = Aws::String>
291 SetShortcutKey(std::forward<ShortcutKeyT>(value));
292 return *this;
293 }
295 private:
296 Aws::Vector<Aws::String> m_channels;
297
299
300 Aws::String m_contentType;
301
302 Aws::String m_description;
303
304 GroupingConfiguration m_groupingConfiguration;
305
306 bool m_isActive{false};
307
308 Aws::String m_knowledgeBaseId;
309
310 Aws::String m_language;
311
312 Aws::String m_name;
313
314 Aws::String m_quickResponseId;
315
316 bool m_removeDescription{false};
317
318 bool m_removeGroupingConfiguration{false};
319
320 bool m_removeShortcutKey{false};
321
322 Aws::String m_shortcutKey;
323 bool m_channelsHasBeenSet = false;
324 bool m_contentHasBeenSet = false;
325 bool m_contentTypeHasBeenSet = false;
326 bool m_descriptionHasBeenSet = false;
327 bool m_groupingConfigurationHasBeenSet = false;
328 bool m_isActiveHasBeenSet = false;
329 bool m_knowledgeBaseIdHasBeenSet = false;
330 bool m_languageHasBeenSet = false;
331 bool m_nameHasBeenSet = false;
332 bool m_quickResponseIdHasBeenSet = false;
333 bool m_removeDescriptionHasBeenSet = false;
334 bool m_removeGroupingConfigurationHasBeenSet = false;
335 bool m_removeShortcutKeyHasBeenSet = false;
336 bool m_shortcutKeyHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace ConnectWisdomService
341} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
UpdateQuickResponseRequest & WithDescription(DescriptionT &&value)
UpdateQuickResponseRequest & WithQuickResponseId(QuickResponseIdT &&value)
UpdateQuickResponseRequest & WithContentType(ContentTypeT &&value)
UpdateQuickResponseRequest & WithShortcutKey(ShortcutKeyT &&value)
UpdateQuickResponseRequest & WithLanguage(LanguageT &&value)
UpdateQuickResponseRequest & AddChannels(ChannelsT &&value)
UpdateQuickResponseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
UpdateQuickResponseRequest & WithChannels(ChannelsT &&value)
UpdateQuickResponseRequest & WithGroupingConfiguration(GroupingConfigurationT &&value)
AWS_CONNECTWISDOMSERVICE_API UpdateQuickResponseRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector