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/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/QuickResponseDataProvider.h>
11#include <aws/qconnect/model/GroupingConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.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 QConnect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_QCONNECT_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_QCONNECT_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
46 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
47 template<typename KnowledgeBaseIdT = Aws::String>
48 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
49 template<typename KnowledgeBaseIdT = Aws::String>
50 CreateQuickResponseRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 CreateQuickResponseRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const QuickResponseDataProvider& GetContent() const { return m_content; }
70 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
71 template<typename ContentT = QuickResponseDataProvider>
72 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
73 template<typename ContentT = QuickResponseDataProvider>
74 CreateQuickResponseRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
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) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
89 template<typename ContentTypeT = Aws::String>
90 CreateQuickResponseRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
92
94
98 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
99 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
100 template<typename GroupingConfigurationT = GroupingConfiguration>
101 void SetGroupingConfiguration(GroupingConfigurationT&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::forward<GroupingConfigurationT>(value); }
102 template<typename GroupingConfigurationT = GroupingConfiguration>
103 CreateQuickResponseRequest& WithGroupingConfiguration(GroupingConfigurationT&& value) { SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value)); return *this;}
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 template<typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
114 template<typename DescriptionT = Aws::String>
115 CreateQuickResponseRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
117
119
123 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
124 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
125 template<typename ShortcutKeyT = Aws::String>
126 void SetShortcutKey(ShortcutKeyT&& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = std::forward<ShortcutKeyT>(value); }
127 template<typename ShortcutKeyT = Aws::String>
128 CreateQuickResponseRequest& WithShortcutKey(ShortcutKeyT&& value) { SetShortcutKey(std::forward<ShortcutKeyT>(value)); return *this;}
130
132
135 inline bool GetIsActive() const { return m_isActive; }
136 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
137 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
138 inline CreateQuickResponseRequest& WithIsActive(bool value) { SetIsActive(value); return *this;}
140
142
145 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
146 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
147 template<typename ChannelsT = Aws::Vector<Aws::String>>
148 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
149 template<typename ChannelsT = Aws::Vector<Aws::String>>
150 CreateQuickResponseRequest& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
151 template<typename ChannelsT = Aws::String>
152 CreateQuickResponseRequest& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
154
156
163 inline const Aws::String& GetLanguage() const { return m_language; }
164 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
165 template<typename LanguageT = Aws::String>
166 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
167 template<typename LanguageT = Aws::String>
168 CreateQuickResponseRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
170
172
179 inline const Aws::String& GetClientToken() const { return m_clientToken; }
180 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
181 template<typename ClientTokenT = Aws::String>
182 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
183 template<typename ClientTokenT = Aws::String>
184 CreateQuickResponseRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
186
188
191 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
192 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
193 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
194 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
195 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 CreateQuickResponseRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
197 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
198 CreateQuickResponseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
199 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
200 }
202 private:
203
204 Aws::String m_knowledgeBaseId;
205 bool m_knowledgeBaseIdHasBeenSet = false;
206
207 Aws::String m_name;
208 bool m_nameHasBeenSet = false;
209
211 bool m_contentHasBeenSet = false;
212
213 Aws::String m_contentType;
214 bool m_contentTypeHasBeenSet = false;
215
216 GroupingConfiguration m_groupingConfiguration;
217 bool m_groupingConfigurationHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
222 Aws::String m_shortcutKey;
223 bool m_shortcutKeyHasBeenSet = false;
224
225 bool m_isActive{false};
226 bool m_isActiveHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_channels;
229 bool m_channelsHasBeenSet = false;
230
231 Aws::String m_language;
232 bool m_languageHasBeenSet = false;
233
235 bool m_clientTokenHasBeenSet = true;
236
238 bool m_tagsHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace QConnect
243} // namespace Aws
CreateQuickResponseRequest & AddChannels(ChannelsT &&value)
CreateQuickResponseRequest & WithGroupingConfiguration(GroupingConfigurationT &&value)
CreateQuickResponseRequest & WithContent(ContentT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateQuickResponseRequest & WithDescription(DescriptionT &&value)
const GroupingConfiguration & GetGroupingConfiguration() const
CreateQuickResponseRequest & WithLanguage(LanguageT &&value)
CreateQuickResponseRequest & WithClientToken(ClientTokenT &&value)
CreateQuickResponseRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateQuickResponseRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateQuickResponseRequest & WithShortcutKey(ShortcutKeyT &&value)
CreateQuickResponseRequest & WithChannels(ChannelsT &&value)
CreateQuickResponseRequest & WithContentType(ContentTypeT &&value)
AWS_QCONNECT_API CreateQuickResponseRequest()=default
const Aws::Vector< Aws::String > & GetChannels() const
CreateQuickResponseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetGroupingConfiguration(GroupingConfigurationT &&value)
const QuickResponseDataProvider & GetContent() const
CreateQuickResponseRequest & WithTags(TagsT &&value)
CreateQuickResponseRequest & WithIsActive(bool 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