AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateQuickResponseRequest.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/ConnectWisdomServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wisdom/model/QuickResponseDataProvider.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/wisdom/model/GroupingConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ConnectWisdomService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECTWISDOMSERVICE_API UpdateQuickResponseRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateQuickResponse"; }
34
35 AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
44 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
45 template<typename ChannelsT = Aws::Vector<Aws::String>>
46 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
47 template<typename ChannelsT = Aws::Vector<Aws::String>>
48 UpdateQuickResponseRequest& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
49 template<typename ChannelsT = Aws::String>
50 UpdateQuickResponseRequest& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
52
54
57 inline const QuickResponseDataProvider& GetContent() const { return m_content; }
58 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
59 template<typename ContentT = QuickResponseDataProvider>
60 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
61 template<typename ContentT = QuickResponseDataProvider>
62 UpdateQuickResponseRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
64
66
73 inline const Aws::String& GetContentType() const { return m_contentType; }
74 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
75 template<typename ContentTypeT = Aws::String>
76 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
77 template<typename ContentTypeT = Aws::String>
78 UpdateQuickResponseRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 UpdateQuickResponseRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
97 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
98 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
99 template<typename GroupingConfigurationT = GroupingConfiguration>
100 void SetGroupingConfiguration(GroupingConfigurationT&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::forward<GroupingConfigurationT>(value); }
101 template<typename GroupingConfigurationT = GroupingConfiguration>
102 UpdateQuickResponseRequest& WithGroupingConfiguration(GroupingConfigurationT&& value) { SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value)); return *this;}
104
106
109 inline bool GetIsActive() const { return m_isActive; }
110 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
111 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
112 inline UpdateQuickResponseRequest& WithIsActive(bool value) { SetIsActive(value); return *this;}
114
116
121 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
122 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
123 template<typename KnowledgeBaseIdT = Aws::String>
124 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
125 template<typename KnowledgeBaseIdT = Aws::String>
126 UpdateQuickResponseRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
128
130
137 inline const Aws::String& GetLanguage() const { return m_language; }
138 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
139 template<typename LanguageT = Aws::String>
140 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
141 template<typename LanguageT = Aws::String>
142 UpdateQuickResponseRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
144
146
149 inline const Aws::String& GetName() const { return m_name; }
150 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
151 template<typename NameT = Aws::String>
152 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
153 template<typename NameT = Aws::String>
154 UpdateQuickResponseRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
156
158
161 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
162 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
163 template<typename QuickResponseIdT = Aws::String>
164 void SetQuickResponseId(QuickResponseIdT&& value) { m_quickResponseIdHasBeenSet = true; m_quickResponseId = std::forward<QuickResponseIdT>(value); }
165 template<typename QuickResponseIdT = Aws::String>
166 UpdateQuickResponseRequest& WithQuickResponseId(QuickResponseIdT&& value) { SetQuickResponseId(std::forward<QuickResponseIdT>(value)); return *this;}
168
170
173 inline bool GetRemoveDescription() const { return m_removeDescription; }
174 inline bool RemoveDescriptionHasBeenSet() const { return m_removeDescriptionHasBeenSet; }
175 inline void SetRemoveDescription(bool value) { m_removeDescriptionHasBeenSet = true; m_removeDescription = value; }
176 inline UpdateQuickResponseRequest& WithRemoveDescription(bool value) { SetRemoveDescription(value); return *this;}
178
180
183 inline bool GetRemoveGroupingConfiguration() const { return m_removeGroupingConfiguration; }
184 inline bool RemoveGroupingConfigurationHasBeenSet() const { return m_removeGroupingConfigurationHasBeenSet; }
185 inline void SetRemoveGroupingConfiguration(bool value) { m_removeGroupingConfigurationHasBeenSet = true; m_removeGroupingConfiguration = value; }
188
190
193 inline bool GetRemoveShortcutKey() const { return m_removeShortcutKey; }
194 inline bool RemoveShortcutKeyHasBeenSet() const { return m_removeShortcutKeyHasBeenSet; }
195 inline void SetRemoveShortcutKey(bool value) { m_removeShortcutKeyHasBeenSet = true; m_removeShortcutKey = value; }
196 inline UpdateQuickResponseRequest& WithRemoveShortcutKey(bool value) { SetRemoveShortcutKey(value); return *this;}
198
200
204 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
205 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
206 template<typename ShortcutKeyT = Aws::String>
207 void SetShortcutKey(ShortcutKeyT&& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = std::forward<ShortcutKeyT>(value); }
208 template<typename ShortcutKeyT = Aws::String>
209 UpdateQuickResponseRequest& WithShortcutKey(ShortcutKeyT&& value) { SetShortcutKey(std::forward<ShortcutKeyT>(value)); return *this;}
211 private:
212
213 Aws::Vector<Aws::String> m_channels;
214 bool m_channelsHasBeenSet = false;
215
217 bool m_contentHasBeenSet = false;
218
219 Aws::String m_contentType;
220 bool m_contentTypeHasBeenSet = false;
221
222 Aws::String m_description;
223 bool m_descriptionHasBeenSet = false;
224
225 GroupingConfiguration m_groupingConfiguration;
226 bool m_groupingConfigurationHasBeenSet = false;
227
228 bool m_isActive{false};
229 bool m_isActiveHasBeenSet = false;
230
231 Aws::String m_knowledgeBaseId;
232 bool m_knowledgeBaseIdHasBeenSet = false;
233
234 Aws::String m_language;
235 bool m_languageHasBeenSet = false;
236
237 Aws::String m_name;
238 bool m_nameHasBeenSet = false;
239
240 Aws::String m_quickResponseId;
241 bool m_quickResponseIdHasBeenSet = false;
242
243 bool m_removeDescription{false};
244 bool m_removeDescriptionHasBeenSet = false;
245
246 bool m_removeGroupingConfiguration{false};
247 bool m_removeGroupingConfigurationHasBeenSet = false;
248
249 bool m_removeShortcutKey{false};
250 bool m_removeShortcutKeyHasBeenSet = false;
251
252 Aws::String m_shortcutKey;
253 bool m_shortcutKeyHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace ConnectWisdomService
258} // 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