AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateDataSourceRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/bedrock-agent/model/DataDeletionPolicy.h>
10#include <aws/bedrock-agent/model/DataSourceConfiguration.h>
11#include <aws/bedrock-agent/model/ServerSideEncryptionConfiguration.h>
12#include <aws/bedrock-agent/model/VectorIngestionConfiguration.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace BedrockAgent {
20namespace Model {
21
25 public:
26 AWS_BEDROCKAGENT_API CreateDataSourceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; }
33
34 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
42 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
43 template <typename KnowledgeBaseIdT = Aws::String>
45 m_knowledgeBaseIdHasBeenSet = true;
46 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
47 }
48 template <typename KnowledgeBaseIdT = Aws::String>
50 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::String& GetClientToken() const { return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 template <typename ClientTokenT = Aws::String>
67 m_clientTokenHasBeenSet = true;
68 m_clientToken = std::forward<ClientTokenT>(value);
69 }
70 template <typename ClientTokenT = Aws::String>
72 SetClientToken(std::forward<ClientTokenT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
118 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
119 template <typename DataSourceConfigurationT = DataSourceConfiguration>
121 m_dataSourceConfigurationHasBeenSet = true;
122 m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value);
123 }
124 template <typename DataSourceConfigurationT = DataSourceConfiguration>
126 SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value));
127 return *this;
128 }
130
132
143 inline DataDeletionPolicy GetDataDeletionPolicy() const { return m_dataDeletionPolicy; }
144 inline bool DataDeletionPolicyHasBeenSet() const { return m_dataDeletionPolicyHasBeenSet; }
146 m_dataDeletionPolicyHasBeenSet = true;
147 m_dataDeletionPolicy = value;
148 }
151 return *this;
152 }
154
156
160 return m_serverSideEncryptionConfiguration;
161 }
162 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
163 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
165 m_serverSideEncryptionConfigurationHasBeenSet = true;
166 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
167 }
168 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
170 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
171 return *this;
172 }
174
176
179 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
180 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
181 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
183 m_vectorIngestionConfigurationHasBeenSet = true;
184 m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value);
185 }
186 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
188 SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_knowledgeBaseId;
194
196
197 Aws::String m_name;
198
199 Aws::String m_description;
200
201 DataSourceConfiguration m_dataSourceConfiguration;
202
204
205 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
206
207 VectorIngestionConfiguration m_vectorIngestionConfiguration;
208 bool m_knowledgeBaseIdHasBeenSet = false;
209 bool m_clientTokenHasBeenSet = true;
210 bool m_nameHasBeenSet = false;
211 bool m_descriptionHasBeenSet = false;
212 bool m_dataSourceConfigurationHasBeenSet = false;
213 bool m_dataDeletionPolicyHasBeenSet = false;
214 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
215 bool m_vectorIngestionConfigurationHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace BedrockAgent
220} // namespace Aws
const DataSourceConfiguration & GetDataSourceConfiguration() const
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
CreateDataSourceRequest & WithName(NameT &&value)
CreateDataSourceRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
CreateDataSourceRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
CreateDataSourceRequest & WithDescription(DescriptionT &&value)
void SetDataSourceConfiguration(DataSourceConfigurationT &&value)
CreateDataSourceRequest & WithClientToken(ClientTokenT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
void SetVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
AWS_BEDROCKAGENT_API CreateDataSourceRequest()=default
CreateDataSourceRequest & WithDataSourceConfiguration(DataSourceConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & WithVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
CreateDataSourceRequest & WithDataDeletionPolicy(DataDeletionPolicy value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String