AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateKnowledgeBaseRequest.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/KnowledgeBaseType.h>
11#include <aws/qconnect/model/SourceConfiguration.h>
12#include <aws/qconnect/model/RenderingConfiguration.h>
13#include <aws/qconnect/model/VectorIngestionConfiguration.h>
14#include <aws/qconnect/model/ServerSideEncryptionConfiguration.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace QConnect
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_QCONNECT_API CreateKnowledgeBaseRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateKnowledgeBase"; }
38
39 AWS_QCONNECT_API Aws::String SerializePayload() const override;
40
41
43
50 inline const Aws::String& GetClientToken() const { return m_clientToken; }
51 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
52 template<typename ClientTokenT = Aws::String>
53 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
54 template<typename ClientTokenT = Aws::String>
55 CreateKnowledgeBaseRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 CreateKnowledgeBaseRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
76 inline KnowledgeBaseType GetKnowledgeBaseType() const { return m_knowledgeBaseType; }
77 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
78 inline void SetKnowledgeBaseType(KnowledgeBaseType value) { m_knowledgeBaseTypeHasBeenSet = true; m_knowledgeBaseType = value; }
81
83
87 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
88 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
89 template<typename SourceConfigurationT = SourceConfiguration>
90 void SetSourceConfiguration(SourceConfigurationT&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::forward<SourceConfigurationT>(value); }
91 template<typename SourceConfigurationT = SourceConfiguration>
92 CreateKnowledgeBaseRequest& WithSourceConfiguration(SourceConfigurationT&& value) { SetSourceConfiguration(std::forward<SourceConfigurationT>(value)); return *this;}
94
96
99 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
100 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
101 template<typename RenderingConfigurationT = RenderingConfiguration>
102 void SetRenderingConfiguration(RenderingConfigurationT&& value) { m_renderingConfigurationHasBeenSet = true; m_renderingConfiguration = std::forward<RenderingConfigurationT>(value); }
103 template<typename RenderingConfigurationT = RenderingConfiguration>
104 CreateKnowledgeBaseRequest& WithRenderingConfiguration(RenderingConfigurationT&& value) { SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value)); return *this;}
106
108
111 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
112 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
113 template<typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
114 void SetVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value); }
115 template<typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
116 CreateKnowledgeBaseRequest& WithVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) { SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value)); return *this;}
118
120
131 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const { return m_serverSideEncryptionConfiguration; }
132 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
133 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
134 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value); }
135 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
136 CreateKnowledgeBaseRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value)); return *this;}
138
140
143 inline const Aws::String& GetDescription() const { return m_description; }
144 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
145 template<typename DescriptionT = Aws::String>
146 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
147 template<typename DescriptionT = Aws::String>
148 CreateKnowledgeBaseRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
150
152
155 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
159 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 CreateKnowledgeBaseRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
161 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
162 CreateKnowledgeBaseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
163 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
164 }
166 private:
167
169 bool m_clientTokenHasBeenSet = true;
170
171 Aws::String m_name;
172 bool m_nameHasBeenSet = false;
173
175 bool m_knowledgeBaseTypeHasBeenSet = false;
176
177 SourceConfiguration m_sourceConfiguration;
178 bool m_sourceConfigurationHasBeenSet = false;
179
180 RenderingConfiguration m_renderingConfiguration;
181 bool m_renderingConfigurationHasBeenSet = false;
182
183 VectorIngestionConfiguration m_vectorIngestionConfiguration;
184 bool m_vectorIngestionConfigurationHasBeenSet = false;
185
186 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
187 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
188
189 Aws::String m_description;
190 bool m_descriptionHasBeenSet = false;
191
193 bool m_tagsHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace QConnect
198} // namespace Aws
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
const SourceConfiguration & GetSourceConfiguration() 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