AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateMessageTemplateRequest.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/qconnect/QConnectRequest.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/ChannelSubtype.h>
13#include <aws/qconnect/model/GroupingConfiguration.h>
14#include <aws/qconnect/model/MessageTemplateAttributes.h>
15#include <aws/qconnect/model/MessageTemplateContentProvider.h>
16#include <aws/qconnect/model/MessageTemplateSourceConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace QConnect {
22namespace Model {
23
27 public:
28 AWS_QCONNECT_API CreateMessageTemplateRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateMessageTemplate"; }
35
36 AWS_QCONNECT_API Aws::String SerializePayload() const override;
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) {
47 m_knowledgeBaseIdHasBeenSet = true;
48 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
49 }
50 template <typename KnowledgeBaseIdT = Aws::String>
52 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const MessageTemplateContentProvider& GetContent() const { return m_content; }
80 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
81 template <typename ContentT = MessageTemplateContentProvider>
82 void SetContent(ContentT&& value) {
83 m_contentHasBeenSet = true;
84 m_content = std::forward<ContentT>(value);
85 }
86 template <typename ContentT = MessageTemplateContentProvider>
88 SetContent(std::forward<ContentT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline ChannelSubtype GetChannelSubtype() const { return m_channelSubtype; }
116 inline bool ChannelSubtypeHasBeenSet() const { return m_channelSubtypeHasBeenSet; }
118 m_channelSubtypeHasBeenSet = true;
119 m_channelSubtype = value;
120 }
122 SetChannelSubtype(value);
123 return *this;
124 }
126
128
135 inline const Aws::String& GetLanguage() const { return m_language; }
136 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
137 template <typename LanguageT = Aws::String>
138 void SetLanguage(LanguageT&& value) {
139 m_languageHasBeenSet = true;
140 m_language = std::forward<LanguageT>(value);
141 }
142 template <typename LanguageT = Aws::String>
144 SetLanguage(std::forward<LanguageT>(value));
145 return *this;
146 }
148
150
154 inline const MessageTemplateSourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
155 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
156 template <typename SourceConfigurationT = MessageTemplateSourceConfiguration>
157 void SetSourceConfiguration(SourceConfigurationT&& value) {
158 m_sourceConfigurationHasBeenSet = true;
159 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
160 }
161 template <typename SourceConfigurationT = MessageTemplateSourceConfiguration>
163 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
164 return *this;
165 }
167
169
175 inline const MessageTemplateAttributes& GetDefaultAttributes() const { return m_defaultAttributes; }
176 inline bool DefaultAttributesHasBeenSet() const { return m_defaultAttributesHasBeenSet; }
177 template <typename DefaultAttributesT = MessageTemplateAttributes>
178 void SetDefaultAttributes(DefaultAttributesT&& value) {
179 m_defaultAttributesHasBeenSet = true;
180 m_defaultAttributes = std::forward<DefaultAttributesT>(value);
181 }
182 template <typename DefaultAttributesT = MessageTemplateAttributes>
184 SetDefaultAttributes(std::forward<DefaultAttributesT>(value));
185 return *this;
186 }
188
190
191 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
192 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
193 template <typename GroupingConfigurationT = GroupingConfiguration>
194 void SetGroupingConfiguration(GroupingConfigurationT&& value) {
195 m_groupingConfigurationHasBeenSet = true;
196 m_groupingConfiguration = std::forward<GroupingConfigurationT>(value);
197 }
198 template <typename GroupingConfigurationT = GroupingConfiguration>
200 SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value));
201 return *this;
202 }
204
206
213 inline const Aws::String& GetClientToken() const { return m_clientToken; }
214 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
215 template <typename ClientTokenT = Aws::String>
216 void SetClientToken(ClientTokenT&& value) {
217 m_clientTokenHasBeenSet = true;
218 m_clientToken = std::forward<ClientTokenT>(value);
219 }
220 template <typename ClientTokenT = Aws::String>
222 SetClientToken(std::forward<ClientTokenT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
232 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
233 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
234 void SetTags(TagsT&& value) {
235 m_tagsHasBeenSet = true;
236 m_tags = std::forward<TagsT>(value);
237 }
238 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
240 SetTags(std::forward<TagsT>(value));
241 return *this;
242 }
243 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
244 CreateMessageTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
245 m_tagsHasBeenSet = true;
246 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_knowledgeBaseId;
252
253 Aws::String m_name;
254
256
257 Aws::String m_description;
258
259 ChannelSubtype m_channelSubtype{ChannelSubtype::NOT_SET};
260
261 Aws::String m_language;
262
263 MessageTemplateSourceConfiguration m_sourceConfiguration;
264
265 MessageTemplateAttributes m_defaultAttributes;
266
267 GroupingConfiguration m_groupingConfiguration;
268
270
272 bool m_knowledgeBaseIdHasBeenSet = false;
273 bool m_nameHasBeenSet = false;
274 bool m_contentHasBeenSet = false;
275 bool m_descriptionHasBeenSet = false;
276 bool m_channelSubtypeHasBeenSet = false;
277 bool m_languageHasBeenSet = false;
278 bool m_sourceConfigurationHasBeenSet = false;
279 bool m_defaultAttributesHasBeenSet = false;
280 bool m_groupingConfigurationHasBeenSet = false;
281 bool m_clientTokenHasBeenSet = true;
282 bool m_tagsHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace QConnect
287} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateMessageTemplateRequest & WithDefaultAttributes(DefaultAttributesT &&value)
CreateMessageTemplateRequest & WithClientToken(ClientTokenT &&value)
CreateMessageTemplateRequest & WithName(NameT &&value)
CreateMessageTemplateRequest & WithSourceConfiguration(SourceConfigurationT &&value)
CreateMessageTemplateRequest & WithContent(ContentT &&value)
CreateMessageTemplateRequest & WithLanguage(LanguageT &&value)
const MessageTemplateAttributes & GetDefaultAttributes() const
CreateMessageTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_QCONNECT_API CreateMessageTemplateRequest()=default
CreateMessageTemplateRequest & WithTags(TagsT &&value)
CreateMessageTemplateRequest & WithDescription(DescriptionT &&value)
CreateMessageTemplateRequest & WithGroupingConfiguration(GroupingConfigurationT &&value)
CreateMessageTemplateRequest & WithChannelSubtype(ChannelSubtype value)
CreateMessageTemplateRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
const MessageTemplateContentProvider & GetContent() const
const MessageTemplateSourceConfiguration & GetSourceConfiguration() const
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