AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateKnowledgeBaseRequest.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/wisdom/ConnectWisdomServiceRequest.h>
11#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
12#include <aws/wisdom/model/KnowledgeBaseType.h>
13#include <aws/wisdom/model/RenderingConfiguration.h>
14#include <aws/wisdom/model/ServerSideEncryptionConfiguration.h>
15#include <aws/wisdom/model/SourceConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace ConnectWisdomService {
21namespace Model {
22
26 public:
27 AWS_CONNECTWISDOMSERVICE_API CreateKnowledgeBaseRequest() = 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 "CreateKnowledgeBase"; }
34
35 AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
36
38
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template <typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) {
49 m_clientTokenHasBeenSet = true;
50 m_clientToken = std::forward<ClientTokenT>(value);
51 }
52 template <typename ClientTokenT = Aws::String>
54 SetClientToken(std::forward<ClientTokenT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
83 inline KnowledgeBaseType GetKnowledgeBaseType() const { return m_knowledgeBaseType; }
84 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
86 m_knowledgeBaseTypeHasBeenSet = true;
87 m_knowledgeBaseType = value;
88 }
91 return *this;
92 }
94
96
99 inline const Aws::String& GetName() const { return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 template <typename NameT = Aws::String>
102 void SetName(NameT&& value) {
103 m_nameHasBeenSet = true;
104 m_name = std::forward<NameT>(value);
105 }
106 template <typename NameT = Aws::String>
108 SetName(std::forward<NameT>(value));
109 return *this;
110 }
112
114
117 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
118 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
119 template <typename RenderingConfigurationT = RenderingConfiguration>
120 void SetRenderingConfiguration(RenderingConfigurationT&& value) {
121 m_renderingConfigurationHasBeenSet = true;
122 m_renderingConfiguration = std::forward<RenderingConfigurationT>(value);
123 }
124 template <typename RenderingConfigurationT = RenderingConfiguration>
125 CreateKnowledgeBaseRequest& WithRenderingConfiguration(RenderingConfigurationT&& value) {
126 SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value));
127 return *this;
128 }
130
132
143 return m_serverSideEncryptionConfiguration;
144 }
145 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
146 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
147 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
148 m_serverSideEncryptionConfigurationHasBeenSet = true;
149 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
150 }
151 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
152 CreateKnowledgeBaseRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
153 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
154 return *this;
155 }
157
159
163 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
164 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
165 template <typename SourceConfigurationT = SourceConfiguration>
166 void SetSourceConfiguration(SourceConfigurationT&& value) {
167 m_sourceConfigurationHasBeenSet = true;
168 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
169 }
170 template <typename SourceConfigurationT = SourceConfiguration>
172 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
184 void SetTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags = std::forward<TagsT>(value);
187 }
188 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
190 SetTags(std::forward<TagsT>(value));
191 return *this;
192 }
193 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
194 CreateKnowledgeBaseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
195 m_tagsHasBeenSet = true;
196 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
197 return *this;
198 }
200 private:
202
203 Aws::String m_description;
204
206
207 Aws::String m_name;
208
209 RenderingConfiguration m_renderingConfiguration;
210
211 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
212
213 SourceConfiguration m_sourceConfiguration;
214
216 bool m_clientTokenHasBeenSet = true;
217 bool m_descriptionHasBeenSet = false;
218 bool m_knowledgeBaseTypeHasBeenSet = false;
219 bool m_nameHasBeenSet = false;
220 bool m_renderingConfigurationHasBeenSet = false;
221 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
222 bool m_sourceConfigurationHasBeenSet = false;
223 bool m_tagsHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace ConnectWisdomService
228} // namespace Aws
CreateKnowledgeBaseRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
AWS_CONNECTWISDOMSERVICE_API CreateKnowledgeBaseRequest()=default
CreateKnowledgeBaseRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKnowledgeBaseRequest & WithSourceConfiguration(SourceConfigurationT &&value)
CreateKnowledgeBaseRequest & WithClientToken(ClientTokenT &&value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseType(KnowledgeBaseType value)
CreateKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
CreateKnowledgeBaseRequest & WithRenderingConfiguration(RenderingConfigurationT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&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