AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateMessageTemplateRequest.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/MessageTemplateContentProvider.h>
11#include <aws/qconnect/model/ChannelSubtype.h>
12#include <aws/qconnect/model/MessageTemplateAttributes.h>
13#include <aws/qconnect/model/GroupingConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace QConnect
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_QCONNECT_API CreateMessageTemplateRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateMessageTemplate"; }
37
38 AWS_QCONNECT_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
47 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
48 template<typename KnowledgeBaseIdT = Aws::String>
49 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
50 template<typename KnowledgeBaseIdT = Aws::String>
51 CreateMessageTemplateRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreateMessageTemplateRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const MessageTemplateContentProvider& GetContent() const { return m_content; }
71 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
72 template<typename ContentT = MessageTemplateContentProvider>
73 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
74 template<typename ContentT = MessageTemplateContentProvider>
75 CreateMessageTemplateRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 CreateMessageTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
94 inline ChannelSubtype GetChannelSubtype() const { return m_channelSubtype; }
95 inline bool ChannelSubtypeHasBeenSet() const { return m_channelSubtypeHasBeenSet; }
96 inline void SetChannelSubtype(ChannelSubtype value) { m_channelSubtypeHasBeenSet = true; m_channelSubtype = value; }
99
101
108 inline const Aws::String& GetLanguage() const { return m_language; }
109 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
110 template<typename LanguageT = Aws::String>
111 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
112 template<typename LanguageT = Aws::String>
113 CreateMessageTemplateRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
115
117
123 inline const MessageTemplateAttributes& GetDefaultAttributes() const { return m_defaultAttributes; }
124 inline bool DefaultAttributesHasBeenSet() const { return m_defaultAttributesHasBeenSet; }
125 template<typename DefaultAttributesT = MessageTemplateAttributes>
126 void SetDefaultAttributes(DefaultAttributesT&& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes = std::forward<DefaultAttributesT>(value); }
127 template<typename DefaultAttributesT = MessageTemplateAttributes>
128 CreateMessageTemplateRequest& WithDefaultAttributes(DefaultAttributesT&& value) { SetDefaultAttributes(std::forward<DefaultAttributesT>(value)); return *this;}
130
132
133 inline const GroupingConfiguration& GetGroupingConfiguration() const { return m_groupingConfiguration; }
134 inline bool GroupingConfigurationHasBeenSet() const { return m_groupingConfigurationHasBeenSet; }
135 template<typename GroupingConfigurationT = GroupingConfiguration>
136 void SetGroupingConfiguration(GroupingConfigurationT&& value) { m_groupingConfigurationHasBeenSet = true; m_groupingConfiguration = std::forward<GroupingConfigurationT>(value); }
137 template<typename GroupingConfigurationT = GroupingConfiguration>
138 CreateMessageTemplateRequest& WithGroupingConfiguration(GroupingConfigurationT&& value) { SetGroupingConfiguration(std::forward<GroupingConfigurationT>(value)); return *this;}
140
142
149 inline const Aws::String& GetClientToken() const { return m_clientToken; }
150 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
151 template<typename ClientTokenT = Aws::String>
152 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
153 template<typename ClientTokenT = Aws::String>
154 CreateMessageTemplateRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
156
158
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 CreateMessageTemplateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
168 CreateMessageTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
169 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
170 }
172 private:
173
174 Aws::String m_knowledgeBaseId;
175 bool m_knowledgeBaseIdHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
181 bool m_contentHasBeenSet = false;
182
183 Aws::String m_description;
184 bool m_descriptionHasBeenSet = false;
185
186 ChannelSubtype m_channelSubtype{ChannelSubtype::NOT_SET};
187 bool m_channelSubtypeHasBeenSet = false;
188
189 Aws::String m_language;
190 bool m_languageHasBeenSet = false;
191
192 MessageTemplateAttributes m_defaultAttributes;
193 bool m_defaultAttributesHasBeenSet = false;
194
195 GroupingConfiguration m_groupingConfiguration;
196 bool m_groupingConfigurationHasBeenSet = false;
197
199 bool m_clientTokenHasBeenSet = true;
200
202 bool m_tagsHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace QConnect
207} // 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 & 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
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