AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ChannelsT = Aws::Vector<Aws::String>>
47 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
48 template<typename ChannelsT = Aws::Vector<Aws::String>>
49 CreateQuickResponseRequest& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
50 template<typename ChannelsT = Aws::String>
51 CreateQuickResponseRequest& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
53
55
62 inline const Aws::String& GetClientToken() const { return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 template<typename ClientTokenT = Aws::String>
65 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
66 template<typename ClientTokenT = Aws::String>
67 CreateQuickResponseRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
69
71
74 inline const QuickResponseDataProvider& GetContent() const { return m_content; }
75 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
76 template<typename ContentT = QuickResponseDataProvider>
77 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
78 template<typename ContentT = QuickResponseDataProvider>
79 CreateQuickResponseRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
81
83
90 inline const Aws::String& GetContentType() const { return m_contentType; }
91 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
92 template<typename ContentTypeT = Aws::String>
93 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
94 template<typename ContentTypeT = Aws::String>
95 CreateQuickResponseRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template<typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
106 template<typename DescriptionT = Aws::String>
107 CreateQuickResponseRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
109
111
115 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
116 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
117 template<typename GroupingConfigurationT = GroupingConfiguration>
118 void SetGroupingConfiguration(GroupingConfigurationT&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::forward<GroupingConfigurationT>(value); }
119 template<typename GroupingConfigurationT = GroupingConfiguration>
120 CreateQuickResponseRequest& WithGroupingConfiguration(GroupingConfigurationT&& value) { SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value)); return *this;}
122
124
127 inline bool GetIsActive() const { return m_isActive; }
128 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
129 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
130 inline CreateQuickResponseRequest& WithIsActive(bool value) { SetIsActive(value); return *this;}
132
134
139 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
140 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
141 template<typename KnowledgeBaseIdT = Aws::String>
142 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
143 template<typename KnowledgeBaseIdT = Aws::String>
144 CreateQuickResponseRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
146
148
155 inline const Aws::String& GetLanguage() const { return m_language; }
156 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
157 template<typename LanguageT = Aws::String>
158 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
159 template<typename LanguageT = Aws::String>
160 CreateQuickResponseRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
162
164
167 inline const Aws::String& GetName() const { return m_name; }
168 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
169 template<typename NameT = Aws::String>
170 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
171 template<typename NameT = Aws::String>
172 CreateQuickResponseRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
174
176
180 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
181 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
182 template<typename ShortcutKeyT = Aws::String>
183 void SetShortcutKey(ShortcutKeyT&& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = std::forward<ShortcutKeyT>(value); }
184 template<typename ShortcutKeyT = Aws::String>
185 CreateQuickResponseRequest& WithShortcutKey(ShortcutKeyT&& value) { SetShortcutKey(std::forward<ShortcutKeyT>(value)); return *this;}
187
189
192 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
196 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 CreateQuickResponseRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
198 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 CreateQuickResponseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
201 }
203 private:
204
205 Aws::Vector<Aws::String> m_channels;
206 bool m_channelsHasBeenSet = false;
207
209 bool m_clientTokenHasBeenSet = true;
210
211 QuickResponseDataProvider m_content;
212 bool m_contentHasBeenSet = false;
213
214 Aws::String m_contentType;
215 bool m_contentTypeHasBeenSet = false;
216
217 Aws::String m_description;
218 bool m_descriptionHasBeenSet = false;
219
220 GroupingConfiguration m_groupingConfiguration;
221 bool m_groupingConfigurationHasBeenSet = false;
222
223 bool m_isActive{false};
224 bool m_isActiveHasBeenSet = false;
225
226 Aws::String m_knowledgeBaseId;
227 bool m_knowledgeBaseIdHasBeenSet = false;
228
229 Aws::String m_language;
230 bool m_languageHasBeenSet = false;
231
232 Aws::String m_name;
233 bool m_nameHasBeenSet = false;
234
235 Aws::String m_shortcutKey;
236 bool m_shortcutKeyHasBeenSet = false;
237
239 bool m_tagsHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace ConnectWisdomService
244} // 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