AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/wisdom/ConnectWisdomServiceRequest.h>
12#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
13#include <aws/wisdom/model/GroupingConfiguration.h>
14#include <aws/wisdom/model/QuickResponseDataProvider.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ConnectWisdomService {
20namespace Model {
21
25 public:
26 AWS_CONNECTWISDOMSERVICE_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_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
41 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
42 template <typename ChannelsT = Aws::Vector<Aws::String>>
43 void SetChannels(ChannelsT&& value) {
44 m_channelsHasBeenSet = true;
45 m_channels = std::forward<ChannelsT>(value);
46 }
47 template <typename ChannelsT = Aws::Vector<Aws::String>>
49 SetChannels(std::forward<ChannelsT>(value));
50 return *this;
51 }
52 template <typename ChannelsT = Aws::String>
54 m_channelsHasBeenSet = true;
55 m_channels.emplace_back(std::forward<ChannelsT>(value));
56 return *this;
57 }
59
61
68 inline const Aws::String& GetClientToken() const { return m_clientToken; }
69 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
70 template <typename ClientTokenT = Aws::String>
71 void SetClientToken(ClientTokenT&& value) {
72 m_clientTokenHasBeenSet = true;
73 m_clientToken = std::forward<ClientTokenT>(value);
74 }
75 template <typename ClientTokenT = Aws::String>
77 SetClientToken(std::forward<ClientTokenT>(value));
78 return *this;
79 }
81
83
86 inline const QuickResponseDataProvider& GetContent() const { return m_content; }
87 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
88 template <typename ContentT = QuickResponseDataProvider>
89 void SetContent(ContentT&& value) {
90 m_contentHasBeenSet = true;
91 m_content = std::forward<ContentT>(value);
92 }
93 template <typename ContentT = QuickResponseDataProvider>
95 SetContent(std::forward<ContentT>(value));
96 return *this;
97 }
99
101
108 inline const Aws::String& GetContentType() const { return m_contentType; }
109 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
110 template <typename ContentTypeT = Aws::String>
111 void SetContentType(ContentTypeT&& value) {
112 m_contentTypeHasBeenSet = true;
113 m_contentType = std::forward<ContentTypeT>(value);
114 }
115 template <typename ContentTypeT = Aws::String>
117 SetContentType(std::forward<ContentTypeT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetDescription() const { return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 template <typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) {
130 m_descriptionHasBeenSet = true;
131 m_description = std::forward<DescriptionT>(value);
132 }
133 template <typename DescriptionT = Aws::String>
135 SetDescription(std::forward<DescriptionT>(value));
136 return *this;
137 }
139
141
145 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
146 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
147 template <typename GroupingConfigurationT = GroupingConfiguration>
148 void SetGroupingConfiguration(GroupingConfigurationT&& value) {
149 m_groupingConfigurationHasBeenSet = true;
150 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
151 }
152 template <typename GroupingConfigurationT = GroupingConfiguration>
153 CreateQuickResponseRequest& WithGroupingConfiguration(GroupingConfigurationT&& value) {
154 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
155 return *this;
156 }
158
160
163 inline bool GetIsActive() const { return m_isActive; }
164 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
165 inline void SetIsActive(bool value) {
166 m_isActiveHasBeenSet = true;
167 m_isActive = value;
168 }
170 SetIsActive(value);
171 return *this;
172 }
174
176
181 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
182 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
183 template <typename KnowledgeBaseIdT = Aws::String>
184 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
185 m_knowledgeBaseIdHasBeenSet = true;
186 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
187 }
188 template <typename KnowledgeBaseIdT = Aws::String>
190 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
191 return *this;
192 }
194
196
203 inline const Aws::String& GetLanguage() const { return m_language; }
204 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
205 template <typename LanguageT = Aws::String>
206 void SetLanguage(LanguageT&& value) {
207 m_languageHasBeenSet = true;
208 m_language = std::forward<LanguageT>(value);
209 }
210 template <typename LanguageT = Aws::String>
212 SetLanguage(std::forward<LanguageT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetName() const { return m_name; }
222 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
223 template <typename NameT = Aws::String>
224 void SetName(NameT&& value) {
225 m_nameHasBeenSet = true;
226 m_name = std::forward<NameT>(value);
227 }
228 template <typename NameT = Aws::String>
230 SetName(std::forward<NameT>(value));
231 return *this;
232 }
234
236
240 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
241 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
242 template <typename ShortcutKeyT = Aws::String>
243 void SetShortcutKey(ShortcutKeyT&& value) {
244 m_shortcutKeyHasBeenSet = true;
245 m_shortcutKey = std::forward<ShortcutKeyT>(value);
246 }
247 template <typename ShortcutKeyT = Aws::String>
249 SetShortcutKey(std::forward<ShortcutKeyT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
259 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
260 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
261 void SetTags(TagsT&& value) {
262 m_tagsHasBeenSet = true;
263 m_tags = std::forward<TagsT>(value);
264 }
265 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
267 SetTags(std::forward<TagsT>(value));
268 return *this;
269 }
270 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
271 CreateQuickResponseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
272 m_tagsHasBeenSet = true;
273 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
274 return *this;
275 }
277 private:
278 Aws::Vector<Aws::String> m_channels;
279
281
282 QuickResponseDataProvider m_content;
283
284 Aws::String m_contentType;
285
286 Aws::String m_description;
287
288 GroupingConfiguration m_groupingConfiguration;
289
290 bool m_isActive{false};
291
292 Aws::String m_knowledgeBaseId;
293
294 Aws::String m_language;
295
296 Aws::String m_name;
297
298 Aws::String m_shortcutKey;
299
301 bool m_channelsHasBeenSet = false;
302 bool m_clientTokenHasBeenSet = true;
303 bool m_contentHasBeenSet = false;
304 bool m_contentTypeHasBeenSet = false;
305 bool m_descriptionHasBeenSet = false;
306 bool m_groupingConfigurationHasBeenSet = false;
307 bool m_isActiveHasBeenSet = false;
308 bool m_knowledgeBaseIdHasBeenSet = false;
309 bool m_languageHasBeenSet = false;
310 bool m_nameHasBeenSet = false;
311 bool m_shortcutKeyHasBeenSet = false;
312 bool m_tagsHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace ConnectWisdomService
317} // namespace Aws
CreateQuickResponseRequest & WithLanguage(LanguageT &&value)
CreateQuickResponseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
CreateQuickResponseRequest & AddChannels(ChannelsT &&value)
CreateQuickResponseRequest & WithClientToken(ClientTokenT &&value)
CreateQuickResponseRequest & WithDescription(DescriptionT &&value)
CreateQuickResponseRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQuickResponseRequest & WithGroupingConfiguration(GroupingConfigurationT &&value)
CreateQuickResponseRequest & WithChannels(ChannelsT &&value)
AWS_CONNECTWISDOMSERVICE_API CreateQuickResponseRequest()=default
CreateQuickResponseRequest & WithShortcutKey(ShortcutKeyT &&value)
CreateQuickResponseRequest & WithContentType(ContentTypeT &&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