AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/RenderingConfiguration.h>
12#include <aws/qconnect/model/ServerSideEncryptionConfiguration.h>
13#include <aws/qconnect/model/SourceConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/qconnect/model/VectorIngestionConfiguration.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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
53 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
54 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
55 inline CreateKnowledgeBaseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
56 inline CreateKnowledgeBaseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
57 inline CreateKnowledgeBaseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
59
61
64 inline const Aws::String& GetDescription() const{ return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 inline CreateKnowledgeBaseRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline CreateKnowledgeBaseRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline CreateKnowledgeBaseRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
80 inline const KnowledgeBaseType& GetKnowledgeBaseType() const{ return m_knowledgeBaseType; }
81 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
82 inline void SetKnowledgeBaseType(const KnowledgeBaseType& value) { m_knowledgeBaseTypeHasBeenSet = true; m_knowledgeBaseType = value; }
83 inline void SetKnowledgeBaseType(KnowledgeBaseType&& value) { m_knowledgeBaseTypeHasBeenSet = true; m_knowledgeBaseType = std::move(value); }
87
89
92 inline const Aws::String& GetName() const{ return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
96 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
97 inline CreateKnowledgeBaseRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
98 inline CreateKnowledgeBaseRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
99 inline CreateKnowledgeBaseRequest& WithName(const char* value) { SetName(value); return *this;}
101
103
106 inline const RenderingConfiguration& GetRenderingConfiguration() const{ return m_renderingConfiguration; }
107 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
108 inline void SetRenderingConfiguration(const RenderingConfiguration& value) { m_renderingConfigurationHasBeenSet = true; m_renderingConfiguration = value; }
109 inline void SetRenderingConfiguration(RenderingConfiguration&& value) { m_renderingConfigurationHasBeenSet = true; m_renderingConfiguration = std::move(value); }
113
115
126 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; }
127 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
128 inline void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; }
129 inline void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); }
133
135
139 inline const SourceConfiguration& GetSourceConfiguration() const{ return m_sourceConfiguration; }
140 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
141 inline void SetSourceConfiguration(const SourceConfiguration& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = value; }
142 inline void SetSourceConfiguration(SourceConfiguration&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::move(value); }
146
148
151 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
156 inline CreateKnowledgeBaseRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
157 inline CreateKnowledgeBaseRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
158 inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
159 inline CreateKnowledgeBaseRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
160 inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
161 inline CreateKnowledgeBaseRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
162 inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
163 inline CreateKnowledgeBaseRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
165
167
170 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const{ return m_vectorIngestionConfiguration; }
171 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
172 inline void SetVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = value; }
173 inline void SetVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::move(value); }
177 private:
178
179 Aws::String m_clientToken;
180 bool m_clientTokenHasBeenSet = false;
181
182 Aws::String m_description;
183 bool m_descriptionHasBeenSet = false;
184
185 KnowledgeBaseType m_knowledgeBaseType;
186 bool m_knowledgeBaseTypeHasBeenSet = false;
187
188 Aws::String m_name;
189 bool m_nameHasBeenSet = false;
190
191 RenderingConfiguration m_renderingConfiguration;
192 bool m_renderingConfigurationHasBeenSet = false;
193
194 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
195 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
196
197 SourceConfiguration m_sourceConfiguration;
198 bool m_sourceConfigurationHasBeenSet = false;
199
201 bool m_tagsHasBeenSet = false;
202
203 VectorIngestionConfiguration m_vectorIngestionConfiguration;
204 bool m_vectorIngestionConfigurationHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace QConnect
209} // namespace Aws
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
CreateKnowledgeBaseRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
CreateKnowledgeBaseRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateKnowledgeBaseRequest & WithRenderingConfiguration(const RenderingConfiguration &value)
CreateKnowledgeBaseRequest & WithDescription(const char *value)
void SetKnowledgeBaseType(const KnowledgeBaseType &value)
CreateKnowledgeBaseRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetRenderingConfiguration(RenderingConfiguration &&value)
void SetRenderingConfiguration(const RenderingConfiguration &value)
CreateKnowledgeBaseRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateKnowledgeBaseRequest & WithName(const char *value)
CreateKnowledgeBaseRequest & WithServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
CreateKnowledgeBaseRequest & AddTags(Aws::String &&key, const char *value)
CreateKnowledgeBaseRequest & WithRenderingConfiguration(RenderingConfiguration &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
CreateKnowledgeBaseRequest & WithDescription(const Aws::String &value)
CreateKnowledgeBaseRequest & WithSourceConfiguration(SourceConfiguration &&value)
const RenderingConfiguration & GetRenderingConfiguration() const
CreateKnowledgeBaseRequest & WithClientToken(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKnowledgeBaseRequest & AddTags(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetVectorIngestionConfiguration(const VectorIngestionConfiguration &value)
CreateKnowledgeBaseRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateKnowledgeBaseRequest & WithClientToken(Aws::String &&value)
void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateKnowledgeBaseRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateKnowledgeBaseRequest & WithVectorIngestionConfiguration(const VectorIngestionConfiguration &value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseType(KnowledgeBaseType &&value)
CreateKnowledgeBaseRequest & WithClientToken(const char *value)
CreateKnowledgeBaseRequest & WithName(const Aws::String &value)
CreateKnowledgeBaseRequest & WithVectorIngestionConfiguration(VectorIngestionConfiguration &&value)
CreateKnowledgeBaseRequest & AddTags(const char *key, Aws::String &&value)
void SetVectorIngestionConfiguration(VectorIngestionConfiguration &&value)
virtual const char * GetServiceRequestName() const override
CreateKnowledgeBaseRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKnowledgeBaseRequest & WithDescription(Aws::String &&value)
CreateKnowledgeBaseRequest & WithName(Aws::String &&value)
void SetSourceConfiguration(const SourceConfiguration &value)
CreateKnowledgeBaseRequest & WithSourceConfiguration(const SourceConfiguration &value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseType(const KnowledgeBaseType &value)
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