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/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 <utility>
14
15namespace Aws
16{
17namespace QConnect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_QCONNECT_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_QCONNECT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
44 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
45 template<typename KnowledgeBaseIdT = Aws::String>
46 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
47 template<typename KnowledgeBaseIdT = Aws::String>
48 UpdateQuickResponseRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
56 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
57 template<typename QuickResponseIdT = Aws::String>
58 void SetQuickResponseId(QuickResponseIdT&& value) { m_quickResponseIdHasBeenSet = true; m_quickResponseId = std::forward<QuickResponseIdT>(value); }
59 template<typename QuickResponseIdT = Aws::String>
60 UpdateQuickResponseRequest& WithQuickResponseId(QuickResponseIdT&& value) { SetQuickResponseId(std::forward<QuickResponseIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 UpdateQuickResponseRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline const QuickResponseDataProvider& GetContent() const { return m_content; }
80 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
81 template<typename ContentT = QuickResponseDataProvider>
82 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
83 template<typename ContentT = QuickResponseDataProvider>
84 UpdateQuickResponseRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
86
88
95 inline const Aws::String& GetContentType() const { return m_contentType; }
96 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
97 template<typename ContentTypeT = Aws::String>
98 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
99 template<typename ContentTypeT = Aws::String>
100 UpdateQuickResponseRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
102
104
107 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
108 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
109 template<typename GroupingConfigurationT = GroupingConfiguration>
110 void SetGroupingConfiguration(GroupingConfigurationT&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::forward<GroupingConfigurationT>(value); }
111 template<typename GroupingConfigurationT = GroupingConfiguration>
112 UpdateQuickResponseRequest& WithGroupingConfiguration(GroupingConfigurationT&& value) { SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value)); return *this;}
114
116
119 inline bool GetRemoveGroupingConfiguration() const { return m_removeGroupingConfiguration; }
120 inline bool RemoveGroupingConfigurationHasBeenSet() const { return m_removeGroupingConfigurationHasBeenSet; }
121 inline void SetRemoveGroupingConfiguration(bool value) { m_removeGroupingConfigurationHasBeenSet = true; m_removeGroupingConfiguration = value; }
124
126
129 inline const Aws::String& GetDescription() const { return m_description; }
130 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 template<typename DescriptionT = Aws::String>
132 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
133 template<typename DescriptionT = Aws::String>
134 UpdateQuickResponseRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
136
138
141 inline bool GetRemoveDescription() const { return m_removeDescription; }
142 inline bool RemoveDescriptionHasBeenSet() const { return m_removeDescriptionHasBeenSet; }
143 inline void SetRemoveDescription(bool value) { m_removeDescriptionHasBeenSet = true; m_removeDescription = value; }
144 inline UpdateQuickResponseRequest& WithRemoveDescription(bool value) { SetRemoveDescription(value); return *this;}
146
148
152 inline const Aws::String& GetShortcutKey() const { return m_shortcutKey; }
153 inline bool ShortcutKeyHasBeenSet() const { return m_shortcutKeyHasBeenSet; }
154 template<typename ShortcutKeyT = Aws::String>
155 void SetShortcutKey(ShortcutKeyT&& value) { m_shortcutKeyHasBeenSet = true; m_shortcutKey = std::forward<ShortcutKeyT>(value); }
156 template<typename ShortcutKeyT = Aws::String>
157 UpdateQuickResponseRequest& WithShortcutKey(ShortcutKeyT&& value) { SetShortcutKey(std::forward<ShortcutKeyT>(value)); return *this;}
159
161
164 inline bool GetRemoveShortcutKey() const { return m_removeShortcutKey; }
165 inline bool RemoveShortcutKeyHasBeenSet() const { return m_removeShortcutKeyHasBeenSet; }
166 inline void SetRemoveShortcutKey(bool value) { m_removeShortcutKeyHasBeenSet = true; m_removeShortcutKey = value; }
167 inline UpdateQuickResponseRequest& WithRemoveShortcutKey(bool value) { SetRemoveShortcutKey(value); return *this;}
169
171
174 inline bool GetIsActive() const { return m_isActive; }
175 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
176 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
177 inline UpdateQuickResponseRequest& WithIsActive(bool value) { SetIsActive(value); return *this;}
179
181
185 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
186 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
187 template<typename ChannelsT = Aws::Vector<Aws::String>>
188 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
189 template<typename ChannelsT = Aws::Vector<Aws::String>>
190 UpdateQuickResponseRequest& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
191 template<typename ChannelsT = Aws::String>
192 UpdateQuickResponseRequest& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
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) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
207 template<typename LanguageT = Aws::String>
208 UpdateQuickResponseRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
210 private:
211
212 Aws::String m_knowledgeBaseId;
213 bool m_knowledgeBaseIdHasBeenSet = false;
214
215 Aws::String m_quickResponseId;
216 bool m_quickResponseIdHasBeenSet = false;
217
218 Aws::String m_name;
219 bool m_nameHasBeenSet = false;
220
222 bool m_contentHasBeenSet = false;
223
224 Aws::String m_contentType;
225 bool m_contentTypeHasBeenSet = false;
226
227 GroupingConfiguration m_groupingConfiguration;
228 bool m_groupingConfigurationHasBeenSet = false;
229
230 bool m_removeGroupingConfiguration{false};
231 bool m_removeGroupingConfigurationHasBeenSet = false;
232
233 Aws::String m_description;
234 bool m_descriptionHasBeenSet = false;
235
236 bool m_removeDescription{false};
237 bool m_removeDescriptionHasBeenSet = false;
238
239 Aws::String m_shortcutKey;
240 bool m_shortcutKeyHasBeenSet = false;
241
242 bool m_removeShortcutKey{false};
243 bool m_removeShortcutKeyHasBeenSet = false;
244
245 bool m_isActive{false};
246 bool m_isActiveHasBeenSet = false;
247
248 Aws::Vector<Aws::String> m_channels;
249 bool m_channelsHasBeenSet = false;
250
251 Aws::String m_language;
252 bool m_languageHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace QConnect
257} // namespace Aws
UpdateQuickResponseRequest & WithContentType(ContentTypeT &&value)
UpdateQuickResponseRequest & WithShortcutKey(ShortcutKeyT &&value)
UpdateQuickResponseRequest & WithDescription(DescriptionT &&value)
AWS_QCONNECT_API UpdateQuickResponseRequest()=default
const Aws::Vector< Aws::String > & GetChannels() const
UpdateQuickResponseRequest & WithContent(ContentT &&value)
UpdateQuickResponseRequest & WithRemoveGroupingConfiguration(bool value)
const QuickResponseDataProvider & GetContent() const
virtual const char * GetServiceRequestName() const override
UpdateQuickResponseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
UpdateQuickResponseRequest & WithName(NameT &&value)
UpdateQuickResponseRequest & WithIsActive(bool value)
UpdateQuickResponseRequest & WithQuickResponseId(QuickResponseIdT &&value)
UpdateQuickResponseRequest & WithChannels(ChannelsT &&value)
UpdateQuickResponseRequest & AddChannels(ChannelsT &&value)
UpdateQuickResponseRequest & WithRemoveShortcutKey(bool value)
const GroupingConfiguration & GetGroupingConfiguration() const
UpdateQuickResponseRequest & WithLanguage(LanguageT &&value)
UpdateQuickResponseRequest & WithGroupingConfiguration(GroupingConfigurationT &&value)
UpdateQuickResponseRequest & WithRemoveDescription(bool value)
void SetGroupingConfiguration(GroupingConfigurationT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector