AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateQuickResponseRequest.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/core/utils/memory/stl/AWSString.h>
11#include <aws/wisdom/model/QuickResponseDataProvider.h>
12#include <aws/wisdom/model/GroupingConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace ConnectWisdomService
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECTWISDOMSERVICE_API CreateQuickResponseRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateQuickResponse"; }
36
37 AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::Vector<Aws::String>& GetChannels() const{ return m_channels; }
45 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
46 inline void SetChannels(const Aws::Vector<Aws::String>& value) { m_channelsHasBeenSet = true; m_channels = value; }
47 inline void SetChannels(Aws::Vector<Aws::String>&& value) { m_channelsHasBeenSet = true; m_channels = std::move(value); }
48 inline CreateQuickResponseRequest& WithChannels(const Aws::Vector<Aws::String>& value) { SetChannels(value); return *this;}
49 inline CreateQuickResponseRequest& WithChannels(Aws::Vector<Aws::String>&& value) { SetChannels(std::move(value)); return *this;}
50 inline CreateQuickResponseRequest& AddChannels(const Aws::String& value) { m_channelsHasBeenSet = true; m_channels.push_back(value); return *this; }
51 inline CreateQuickResponseRequest& AddChannels(Aws::String&& value) { m_channelsHasBeenSet = true; m_channels.push_back(std::move(value)); return *this; }
52 inline CreateQuickResponseRequest& AddChannels(const char* value) { m_channelsHasBeenSet = true; m_channels.push_back(value); return *this; }
54
56
63 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
66 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
67 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
68 inline CreateQuickResponseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
69 inline CreateQuickResponseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
70 inline CreateQuickResponseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
72
74
77 inline const QuickResponseDataProvider& GetContent() const{ return m_content; }
78 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
79 inline void SetContent(const QuickResponseDataProvider& value) { m_contentHasBeenSet = true; m_content = value; }
80 inline void SetContent(QuickResponseDataProvider&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
81 inline CreateQuickResponseRequest& WithContent(const QuickResponseDataProvider& value) { SetContent(value); return *this;}
82 inline CreateQuickResponseRequest& WithContent(QuickResponseDataProvider&& value) { SetContent(std::move(value)); return *this;}
84
86
93 inline const Aws::String& GetContentType() const{ return m_contentType; }
94 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
95 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
96 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
97 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
98 inline CreateQuickResponseRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
99 inline CreateQuickResponseRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
100 inline CreateQuickResponseRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
102
104
107 inline const Aws::String& GetDescription() const{ return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
110 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
111 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
112 inline CreateQuickResponseRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
113 inline CreateQuickResponseRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 inline CreateQuickResponseRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
116
118
122 inline const GroupingConfiguration& GetGroupingConfiguration() const{ return m_groupingConfiguration; }
123 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
124 inline void SetGroupingConfiguration(const GroupingConfiguration& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = value; }
125 inline void SetGroupingConfiguration(GroupingConfiguration&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::move(value); }
129
131
134 inline bool GetIsActive() const{ return m_isActive; }
135 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
136 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
137 inline CreateQuickResponseRequest& WithIsActive(bool value) { SetIsActive(value); return *this;}
139
141
146 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
147 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
148 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
149 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
150 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
152 inline CreateQuickResponseRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
153 inline CreateQuickResponseRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
155
157
164 inline const Aws::String& GetLanguage() const{ return m_language; }
165 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
166 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
167 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
168 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
169 inline CreateQuickResponseRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
170 inline CreateQuickResponseRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
171 inline CreateQuickResponseRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
173
175
178 inline const Aws::String& GetName() const{ return m_name; }
179 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
180 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
181 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
182 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
183 inline CreateQuickResponseRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
184 inline CreateQuickResponseRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
185 inline CreateQuickResponseRequest& WithName(const char* value) { SetName(value); return *this;}
187
189
193 inline const Aws::String& GetShortcutKey() const{ return m_shortcutKey; }
194 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
195 inline void SetShortcutKey(const Aws::String& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = value; }
196 inline void SetShortcutKey(Aws::String&& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = std::move(value); }
197 inline void SetShortcutKey(const char* value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey.assign(value); }
198 inline CreateQuickResponseRequest& WithShortcutKey(const Aws::String& value) { SetShortcutKey(value); return *this;}
199 inline CreateQuickResponseRequest& WithShortcutKey(Aws::String&& value) { SetShortcutKey(std::move(value)); return *this;}
200 inline CreateQuickResponseRequest& WithShortcutKey(const char* value) { SetShortcutKey(value); return *this;}
202
204
207 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
208 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
209 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
210 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
212 inline CreateQuickResponseRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
213 inline CreateQuickResponseRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
214 inline CreateQuickResponseRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
215 inline CreateQuickResponseRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
216 inline CreateQuickResponseRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
217 inline CreateQuickResponseRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
218 inline CreateQuickResponseRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
219 inline CreateQuickResponseRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
221 private:
222
223 Aws::Vector<Aws::String> m_channels;
224 bool m_channelsHasBeenSet = false;
225
226 Aws::String m_clientToken;
227 bool m_clientTokenHasBeenSet = false;
228
230 bool m_contentHasBeenSet = false;
231
232 Aws::String m_contentType;
233 bool m_contentTypeHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 GroupingConfiguration m_groupingConfiguration;
239 bool m_groupingConfigurationHasBeenSet = false;
240
241 bool m_isActive;
242 bool m_isActiveHasBeenSet = false;
243
244 Aws::String m_knowledgeBaseId;
245 bool m_knowledgeBaseIdHasBeenSet = false;
246
247 Aws::String m_language;
248 bool m_languageHasBeenSet = false;
249
250 Aws::String m_name;
251 bool m_nameHasBeenSet = false;
252
253 Aws::String m_shortcutKey;
254 bool m_shortcutKeyHasBeenSet = false;
255
257 bool m_tagsHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace ConnectWisdomService
262} // namespace Aws
CreateQuickResponseRequest & WithContent(const QuickResponseDataProvider &value)
CreateQuickResponseRequest & WithClientToken(const char *value)
CreateQuickResponseRequest & WithContentType(const char *value)
CreateQuickResponseRequest & WithShortcutKey(const Aws::String &value)
CreateQuickResponseRequest & WithShortcutKey(Aws::String &&value)
CreateQuickResponseRequest & WithLanguage(const char *value)
CreateQuickResponseRequest & WithDescription(Aws::String &&value)
CreateQuickResponseRequest & WithGroupingConfiguration(const GroupingConfiguration &value)
CreateQuickResponseRequest & AddTags(Aws::String &&key, const char *value)
CreateQuickResponseRequest & AddTags(const char *key, Aws::String &&value)
CreateQuickResponseRequest & AddChannels(const char *value)
CreateQuickResponseRequest & WithKnowledgeBaseId(const Aws::String &value)
CreateQuickResponseRequest & WithChannels(Aws::Vector< Aws::String > &&value)
CreateQuickResponseRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateQuickResponseRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateQuickResponseRequest & WithDescription(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQuickResponseRequest & WithChannels(const Aws::Vector< Aws::String > &value)
CreateQuickResponseRequest & WithClientToken(const Aws::String &value)
CreateQuickResponseRequest & AddChannels(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateQuickResponseRequest & WithLanguage(const Aws::String &value)
CreateQuickResponseRequest & WithContent(QuickResponseDataProvider &&value)
CreateQuickResponseRequest & AddChannels(Aws::String &&value)
CreateQuickResponseRequest & WithGroupingConfiguration(GroupingConfiguration &&value)
CreateQuickResponseRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateQuickResponseRequest & WithKnowledgeBaseId(Aws::String &&value)
CreateQuickResponseRequest & WithName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateQuickResponseRequest & AddTags(const char *key, const char *value)
CreateQuickResponseRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateQuickResponseRequest & WithName(const Aws::String &value)
CreateQuickResponseRequest & WithDescription(const char *value)
CreateQuickResponseRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateQuickResponseRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateQuickResponseRequest & WithLanguage(Aws::String &&value)
CreateQuickResponseRequest & WithContentType(const Aws::String &value)
CreateQuickResponseRequest & WithClientToken(Aws::String &&value)
CreateQuickResponseRequest & WithKnowledgeBaseId(const char *value)
CreateQuickResponseRequest & WithContentType(Aws::String &&value)
CreateQuickResponseRequest & WithShortcutKey(const char *value)
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