AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/qconnect/QConnectRequest.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/KnowledgeBaseType.h>
13#include <aws/qconnect/model/RenderingConfiguration.h>
14#include <aws/qconnect/model/ServerSideEncryptionConfiguration.h>
15#include <aws/qconnect/model/SourceConfiguration.h>
16#include <aws/qconnect/model/VectorIngestionConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace QConnect {
22namespace Model {
23
27 public:
28 AWS_QCONNECT_API CreateKnowledgeBaseRequest() = 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 "CreateKnowledgeBase"; }
35
36 AWS_QCONNECT_API Aws::String SerializePayload() const override;
37
39
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template <typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) {
50 m_clientTokenHasBeenSet = true;
51 m_clientToken = std::forward<ClientTokenT>(value);
52 }
53 template <typename ClientTokenT = Aws::String>
55 SetClientToken(std::forward<ClientTokenT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
84 inline KnowledgeBaseType GetKnowledgeBaseType() const { return m_knowledgeBaseType; }
85 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
87 m_knowledgeBaseTypeHasBeenSet = true;
88 m_knowledgeBaseType = value;
89 }
92 return *this;
93 }
95
97
101 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
102 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
103 template <typename SourceConfigurationT = SourceConfiguration>
104 void SetSourceConfiguration(SourceConfigurationT&& value) {
105 m_sourceConfigurationHasBeenSet = true;
106 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
107 }
108 template <typename SourceConfigurationT = SourceConfiguration>
110 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
111 return *this;
112 }
114
116
119 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
120 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
121 template <typename RenderingConfigurationT = RenderingConfiguration>
122 void SetRenderingConfiguration(RenderingConfigurationT&& value) {
123 m_renderingConfigurationHasBeenSet = true;
124 m_renderingConfiguration = std::forward<RenderingConfigurationT>(value);
125 }
126 template <typename RenderingConfigurationT = RenderingConfiguration>
127 CreateKnowledgeBaseRequest& WithRenderingConfiguration(RenderingConfigurationT&& value) {
128 SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value));
129 return *this;
130 }
132
134
137 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
138 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
139 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
140 void SetVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) {
141 m_vectorIngestionConfigurationHasBeenSet = true;
142 m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value);
143 }
144 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
145 CreateKnowledgeBaseRequest& WithVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) {
146 SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value));
147 return *this;
148 }
150
152
164 return m_serverSideEncryptionConfiguration;
165 }
166 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
167 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
168 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
169 m_serverSideEncryptionConfigurationHasBeenSet = true;
170 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
171 }
172 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
173 CreateKnowledgeBaseRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
174 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetDescription() const { return m_description; }
184 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
185 template <typename DescriptionT = Aws::String>
186 void SetDescription(DescriptionT&& value) {
187 m_descriptionHasBeenSet = true;
188 m_description = std::forward<DescriptionT>(value);
189 }
190 template <typename DescriptionT = Aws::String>
192 SetDescription(std::forward<DescriptionT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
202 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
203 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
204 void SetTags(TagsT&& value) {
205 m_tagsHasBeenSet = true;
206 m_tags = std::forward<TagsT>(value);
207 }
208 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
210 SetTags(std::forward<TagsT>(value));
211 return *this;
212 }
213 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
214 CreateKnowledgeBaseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
215 m_tagsHasBeenSet = true;
216 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
217 return *this;
218 }
220 private:
222
223 Aws::String m_name;
224
226
227 SourceConfiguration m_sourceConfiguration;
228
229 RenderingConfiguration m_renderingConfiguration;
230
231 VectorIngestionConfiguration m_vectorIngestionConfiguration;
232
233 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
234
235 Aws::String m_description;
236
238 bool m_clientTokenHasBeenSet = true;
239 bool m_nameHasBeenSet = false;
240 bool m_knowledgeBaseTypeHasBeenSet = false;
241 bool m_sourceConfigurationHasBeenSet = false;
242 bool m_renderingConfigurationHasBeenSet = false;
243 bool m_vectorIngestionConfigurationHasBeenSet = false;
244 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
245 bool m_descriptionHasBeenSet = false;
246 bool m_tagsHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace QConnect
251} // namespace Aws
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
CreateKnowledgeBaseRequest & WithName(NameT &&value)
CreateKnowledgeBaseRequest & WithRenderingConfiguration(RenderingConfigurationT &&value)
const RenderingConfiguration & GetRenderingConfiguration() const
CreateKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseType(KnowledgeBaseType value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
CreateKnowledgeBaseRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
void SetRenderingConfiguration(RenderingConfigurationT &&value)
CreateKnowledgeBaseRequest & WithSourceConfiguration(SourceConfigurationT &&value)
AWS_QCONNECT_API CreateKnowledgeBaseRequest()=default
CreateKnowledgeBaseRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
void SetVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
CreateKnowledgeBaseRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
CreateKnowledgeBaseRequest & WithVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
CreateKnowledgeBaseRequest & WithTags(TagsT &&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