AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/DataDeletionPolicy.h>
9#include <aws/bedrock-agent/model/DataSourceConfiguration.h>
10#include <aws/bedrock-agent/model/DataSourceStatus.h>
11#include <aws/bedrock-agent/model/ServerSideEncryptionConfiguration.h>
12#include <aws/bedrock-agent/model/VectorIngestionConfiguration.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent {
27namespace Model {
28
35 public:
36 AWS_BEDROCKAGENT_API DataSource() = default;
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
47 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
48 template <typename KnowledgeBaseIdT = Aws::String>
50 m_knowledgeBaseIdHasBeenSet = true;
51 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
52 }
53 template <typename KnowledgeBaseIdT = Aws::String>
55 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
65 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
66 template <typename DataSourceIdT = Aws::String>
68 m_dataSourceIdHasBeenSet = true;
69 m_dataSourceId = std::forward<DataSourceIdT>(value);
70 }
71 template <typename DataSourceIdT = Aws::String>
73 SetDataSourceId(std::forward<DataSourceIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template <typename NameT = Aws::String>
85 void SetName(NameT&& value) {
86 m_nameHasBeenSet = true;
87 m_name = std::forward<NameT>(value);
88 }
89 template <typename NameT = Aws::String>
91 SetName(std::forward<NameT>(value));
92 return *this;
93 }
95
97
103 inline DataSourceStatus GetStatus() const { return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 inline void SetStatus(DataSourceStatus value) {
106 m_statusHasBeenSet = true;
107 m_status = value;
108 }
110 SetStatus(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetDescription() const { return m_description; }
120 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 template <typename DescriptionT = Aws::String>
123 m_descriptionHasBeenSet = true;
124 m_description = std::forward<DescriptionT>(value);
125 }
126 template <typename DescriptionT = Aws::String>
128 SetDescription(std::forward<DescriptionT>(value));
129 return *this;
130 }
132
134
137 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
138 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
139 template <typename DataSourceConfigurationT = DataSourceConfiguration>
141 m_dataSourceConfigurationHasBeenSet = true;
142 m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value);
143 }
144 template <typename DataSourceConfigurationT = DataSourceConfiguration>
146 SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value));
147 return *this;
148 }
150
152
156 return m_serverSideEncryptionConfiguration;
157 }
158 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
159 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
161 m_serverSideEncryptionConfigurationHasBeenSet = true;
162 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
163 }
164 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
166 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
167 return *this;
168 }
170
172
175 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
176 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
177 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
179 m_vectorIngestionConfigurationHasBeenSet = true;
180 m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value);
181 }
182 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
184 SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value));
185 return *this;
186 }
188
190
193 inline DataDeletionPolicy GetDataDeletionPolicy() const { return m_dataDeletionPolicy; }
194 inline bool DataDeletionPolicyHasBeenSet() const { return m_dataDeletionPolicyHasBeenSet; }
196 m_dataDeletionPolicyHasBeenSet = true;
197 m_dataDeletionPolicy = value;
198 }
201 return *this;
202 }
204
206
209 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
210 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
211 template <typename CreatedAtT = Aws::Utils::DateTime>
212 void SetCreatedAt(CreatedAtT&& value) {
213 m_createdAtHasBeenSet = true;
214 m_createdAt = std::forward<CreatedAtT>(value);
215 }
216 template <typename CreatedAtT = Aws::Utils::DateTime>
218 SetCreatedAt(std::forward<CreatedAtT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
228 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
229 template <typename UpdatedAtT = Aws::Utils::DateTime>
230 void SetUpdatedAt(UpdatedAtT&& value) {
231 m_updatedAtHasBeenSet = true;
232 m_updatedAt = std::forward<UpdatedAtT>(value);
233 }
234 template <typename UpdatedAtT = Aws::Utils::DateTime>
236 SetUpdatedAt(std::forward<UpdatedAtT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
246 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
247 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
249 m_failureReasonsHasBeenSet = true;
250 m_failureReasons = std::forward<FailureReasonsT>(value);
251 }
252 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
254 SetFailureReasons(std::forward<FailureReasonsT>(value));
255 return *this;
256 }
257 template <typename FailureReasonsT = Aws::String>
259 m_failureReasonsHasBeenSet = true;
260 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
261 return *this;
262 }
264 private:
265 Aws::String m_knowledgeBaseId;
266
267 Aws::String m_dataSourceId;
268
269 Aws::String m_name;
270
272
273 Aws::String m_description;
274
275 DataSourceConfiguration m_dataSourceConfiguration;
276
277 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
278
279 VectorIngestionConfiguration m_vectorIngestionConfiguration;
280
282
283 Aws::Utils::DateTime m_createdAt{};
284
285 Aws::Utils::DateTime m_updatedAt{};
286
287 Aws::Vector<Aws::String> m_failureReasons;
288 bool m_knowledgeBaseIdHasBeenSet = false;
289 bool m_dataSourceIdHasBeenSet = false;
290 bool m_nameHasBeenSet = false;
291 bool m_statusHasBeenSet = false;
292 bool m_descriptionHasBeenSet = false;
293 bool m_dataSourceConfigurationHasBeenSet = false;
294 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
295 bool m_vectorIngestionConfigurationHasBeenSet = false;
296 bool m_dataDeletionPolicyHasBeenSet = false;
297 bool m_createdAtHasBeenSet = false;
298 bool m_updatedAtHasBeenSet = false;
299 bool m_failureReasonsHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace BedrockAgent
304} // namespace Aws
DataSource & WithStatus(DataSourceStatus value)
Definition DataSource.h:109
bool VectorIngestionConfigurationHasBeenSet() const
Definition DataSource.h:176
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition DataSource.h:227
void SetDescription(DescriptionT &&value)
Definition DataSource.h:122
DataSource & WithDataSourceId(DataSourceIdT &&value)
Definition DataSource.h:72
void SetUpdatedAt(UpdatedAtT &&value)
Definition DataSource.h:230
DataSource & WithFailureReasons(FailureReasonsT &&value)
Definition DataSource.h:253
AWS_BEDROCKAGENT_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition DataSource.h:209
void SetDataSourceId(DataSourceIdT &&value)
Definition DataSource.h:67
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
Definition DataSource.h:49
DataSource & WithDataDeletionPolicy(DataDeletionPolicy value)
Definition DataSource.h:199
DataSource & AddFailureReasons(FailureReasonsT &&value)
Definition DataSource.h:258
void SetDataSourceConfiguration(DataSourceConfigurationT &&value)
Definition DataSource.h:140
void SetFailureReasons(FailureReasonsT &&value)
Definition DataSource.h:248
DataDeletionPolicy GetDataDeletionPolicy() const
Definition DataSource.h:193
AWS_BEDROCKAGENT_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceStatus GetStatus() const
Definition DataSource.h:103
const Aws::String & GetDataSourceId() const
Definition DataSource.h:64
DataSource & WithVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
Definition DataSource.h:183
const Aws::Vector< Aws::String > & GetFailureReasons() const
Definition DataSource.h:245
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
Definition DataSource.h:175
const Aws::String & GetKnowledgeBaseId() const
Definition DataSource.h:46
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
DataSource & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
Definition DataSource.h:165
DataSource & WithDescription(DescriptionT &&value)
Definition DataSource.h:127
DataSource & WithCreatedAt(CreatedAtT &&value)
Definition DataSource.h:217
void SetCreatedAt(CreatedAtT &&value)
Definition DataSource.h:212
const DataSourceConfiguration & GetDataSourceConfiguration() const
Definition DataSource.h:137
void SetStatus(DataSourceStatus value)
Definition DataSource.h:105
DataSource & WithDataSourceConfiguration(DataSourceConfigurationT &&value)
Definition DataSource.h:145
bool ServerSideEncryptionConfigurationHasBeenSet() const
Definition DataSource.h:158
void SetVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
Definition DataSource.h:178
DataSource & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
Definition DataSource.h:54
DataSource & WithName(NameT &&value)
Definition DataSource.h:90
void SetDataDeletionPolicy(DataDeletionPolicy value)
Definition DataSource.h:195
DataSource & WithUpdatedAt(UpdatedAtT &&value)
Definition DataSource.h:235
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
Definition DataSource.h:155
AWS_BEDROCKAGENT_API DataSource()=default
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
Definition DataSource.h:160
const Aws::String & GetDescription() const
Definition DataSource.h:119
const Aws::String & GetName() const
Definition DataSource.h:82
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue