AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/bedrock-agent/model/DataDeletionPolicy.h>
10#include <aws/bedrock-agent/model/DataSourceConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/bedrock-agent/model/ServerSideEncryptionConfiguration.h>
14#include <aws/bedrock-agent/model/DataSourceStatus.h>
15#include <aws/bedrock-agent/model/VectorIngestionConfiguration.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace BedrockAgent
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_BEDROCKAGENT_API DataSource();
42 AWS_BEDROCKAGENT_API DataSource(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENT_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
52 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
53 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
54 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
55 inline DataSource& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
56 inline DataSource& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
58
60
63 inline const DataDeletionPolicy& GetDataDeletionPolicy() const{ return m_dataDeletionPolicy; }
64 inline bool DataDeletionPolicyHasBeenSet() const { return m_dataDeletionPolicyHasBeenSet; }
65 inline void SetDataDeletionPolicy(const DataDeletionPolicy& value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = value; }
66 inline void SetDataDeletionPolicy(DataDeletionPolicy&& value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = std::move(value); }
67 inline DataSource& WithDataDeletionPolicy(const DataDeletionPolicy& value) { SetDataDeletionPolicy(value); return *this;}
68 inline DataSource& WithDataDeletionPolicy(DataDeletionPolicy&& value) { SetDataDeletionPolicy(std::move(value)); return *this;}
70
72
75 inline const DataSourceConfiguration& GetDataSourceConfiguration() const{ return m_dataSourceConfiguration; }
76 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
77 inline void SetDataSourceConfiguration(const DataSourceConfiguration& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = value; }
78 inline void SetDataSourceConfiguration(DataSourceConfiguration&& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = std::move(value); }
82
84
87 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
88 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
89 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
90 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
91 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
92 inline DataSource& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
93 inline DataSource& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
94 inline DataSource& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
96
98
101 inline const Aws::String& GetDescription() const{ return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
104 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
105 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 inline DataSource& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 inline DataSource& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
108 inline DataSource& WithDescription(const char* value) { SetDescription(value); return *this;}
110
112
115 inline const Aws::Vector<Aws::String>& GetFailureReasons() const{ return m_failureReasons; }
116 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
117 inline void SetFailureReasons(const Aws::Vector<Aws::String>& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = value; }
118 inline void SetFailureReasons(Aws::Vector<Aws::String>&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::move(value); }
119 inline DataSource& WithFailureReasons(const Aws::Vector<Aws::String>& value) { SetFailureReasons(value); return *this;}
120 inline DataSource& WithFailureReasons(Aws::Vector<Aws::String>&& value) { SetFailureReasons(std::move(value)); return *this;}
121 inline DataSource& AddFailureReasons(const Aws::String& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; }
122 inline DataSource& AddFailureReasons(Aws::String&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(std::move(value)); return *this; }
123 inline DataSource& AddFailureReasons(const char* value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; }
125
127
131 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
132 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
133 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
134 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
135 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
136 inline DataSource& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
137 inline DataSource& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
138 inline DataSource& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
140
142
145 inline const Aws::String& GetName() const{ return m_name; }
146 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
147 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
148 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
149 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
150 inline DataSource& WithName(const Aws::String& value) { SetName(value); return *this;}
151 inline DataSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
152 inline DataSource& WithName(const char* value) { SetName(value); return *this;}
154
156
159 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; }
160 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
161 inline void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; }
162 inline void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); }
166
168
174 inline const DataSourceStatus& GetStatus() const{ return m_status; }
175 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
176 inline void SetStatus(const DataSourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
177 inline void SetStatus(DataSourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
178 inline DataSource& WithStatus(const DataSourceStatus& value) { SetStatus(value); return *this;}
179 inline DataSource& WithStatus(DataSourceStatus&& value) { SetStatus(std::move(value)); return *this;}
181
183
186 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
187 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
188 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
189 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
190 inline DataSource& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
191 inline DataSource& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
193
195
198 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const{ return m_vectorIngestionConfiguration; }
199 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
200 inline void SetVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = value; }
201 inline void SetVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::move(value); }
205 private:
206
207 Aws::Utils::DateTime m_createdAt;
208 bool m_createdAtHasBeenSet = false;
209
210 DataDeletionPolicy m_dataDeletionPolicy;
211 bool m_dataDeletionPolicyHasBeenSet = false;
212
213 DataSourceConfiguration m_dataSourceConfiguration;
214 bool m_dataSourceConfigurationHasBeenSet = false;
215
216 Aws::String m_dataSourceId;
217 bool m_dataSourceIdHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
222 Aws::Vector<Aws::String> m_failureReasons;
223 bool m_failureReasonsHasBeenSet = false;
224
225 Aws::String m_knowledgeBaseId;
226 bool m_knowledgeBaseIdHasBeenSet = false;
227
228 Aws::String m_name;
229 bool m_nameHasBeenSet = false;
230
231 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
232 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
233
234 DataSourceStatus m_status;
235 bool m_statusHasBeenSet = false;
236
237 Aws::Utils::DateTime m_updatedAt;
238 bool m_updatedAtHasBeenSet = false;
239
240 VectorIngestionConfiguration m_vectorIngestionConfiguration;
241 bool m_vectorIngestionConfigurationHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace BedrockAgent
246} // namespace Aws
DataSource & WithVectorIngestionConfiguration(VectorIngestionConfiguration &&value)
Definition DataSource.h:203
bool VectorIngestionConfigurationHasBeenSet() const
Definition DataSource.h:199
DataSource & WithServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
Definition DataSource.h:163
DataSource & WithName(const Aws::String &value)
Definition DataSource.h:150
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition DataSource.h:186
DataSource & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:56
DataSource & WithVectorIngestionConfiguration(const VectorIngestionConfiguration &value)
Definition DataSource.h:202
void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
Definition DataSource.h:161
void SetStatus(const DataSourceStatus &value)
Definition DataSource.h:176
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:53
DataSource & WithDataSourceConfiguration(const DataSourceConfiguration &value)
Definition DataSource.h:79
DataSource & WithDescription(Aws::String &&value)
Definition DataSource.h:107
void SetDataSourceId(Aws::String &&value)
Definition DataSource.h:90
DataSource & AddFailureReasons(const Aws::String &value)
Definition DataSource.h:121
void SetDataDeletionPolicy(const DataDeletionPolicy &value)
Definition DataSource.h:65
void SetVectorIngestionConfiguration(const VectorIngestionConfiguration &value)
Definition DataSource.h:200
DataSource & WithDataSourceId(Aws::String &&value)
Definition DataSource.h:93
void SetName(const char *value)
Definition DataSource.h:149
DataSource & AddFailureReasons(const char *value)
Definition DataSource.h:123
void SetName(Aws::String &&value)
Definition DataSource.h:148
AWS_BEDROCKAGENT_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition DataSource.h:51
DataSource & WithDataSourceConfiguration(DataSourceConfiguration &&value)
Definition DataSource.h:80
void SetName(const Aws::String &value)
Definition DataSource.h:147
void SetDescription(Aws::String &&value)
Definition DataSource.h:104
DataSource & WithDataSourceId(const Aws::String &value)
Definition DataSource.h:92
AWS_BEDROCKAGENT_API DataSource()
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
Definition DataSource.h:162
DataSource & WithFailureReasons(const Aws::Vector< Aws::String > &value)
Definition DataSource.h:119
AWS_BEDROCKAGENT_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const DataDeletionPolicy & GetDataDeletionPolicy() const
Definition DataSource.h:63
void SetStatus(DataSourceStatus &&value)
Definition DataSource.h:177
void SetFailureReasons(const Aws::Vector< Aws::String > &value)
Definition DataSource.h:117
void SetKnowledgeBaseId(Aws::String &&value)
Definition DataSource.h:134
DataSource & WithStatus(DataSourceStatus &&value)
Definition DataSource.h:179
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:189
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:188
DataSource & WithDescription(const Aws::String &value)
Definition DataSource.h:106
const DataSourceStatus & GetStatus() const
Definition DataSource.h:174
const Aws::String & GetDataSourceId() const
Definition DataSource.h:87
DataSource & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:55
void SetDataSourceConfiguration(const DataSourceConfiguration &value)
Definition DataSource.h:77
DataSource & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:191
const Aws::Vector< Aws::String > & GetFailureReasons() const
Definition DataSource.h:115
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
Definition DataSource.h:198
const Aws::String & GetKnowledgeBaseId() const
Definition DataSource.h:131
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition DataSource.h:54
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
DataSource & WithDescription(const char *value)
Definition DataSource.h:108
DataSource & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition DataSource.h:190
const DataSourceConfiguration & GetDataSourceConfiguration() const
Definition DataSource.h:75
void SetKnowledgeBaseId(const char *value)
Definition DataSource.h:135
DataSource & WithName(const char *value)
Definition DataSource.h:152
DataSource & WithStatus(const DataSourceStatus &value)
Definition DataSource.h:178
void SetDescription(const Aws::String &value)
Definition DataSource.h:103
bool ServerSideEncryptionConfigurationHasBeenSet() const
Definition DataSource.h:160
DataSource & WithKnowledgeBaseId(const char *value)
Definition DataSource.h:138
DataSource & AddFailureReasons(Aws::String &&value)
Definition DataSource.h:122
void SetDataSourceId(const char *value)
Definition DataSource.h:91
void SetFailureReasons(Aws::Vector< Aws::String > &&value)
Definition DataSource.h:118
DataSource & WithDataDeletionPolicy(DataDeletionPolicy &&value)
Definition DataSource.h:68
void SetDataDeletionPolicy(DataDeletionPolicy &&value)
Definition DataSource.h:66
void SetDescription(const char *value)
Definition DataSource.h:105
void SetDataSourceConfiguration(DataSourceConfiguration &&value)
Definition DataSource.h:78
DataSource & WithName(Aws::String &&value)
Definition DataSource.h:151
DataSource & WithKnowledgeBaseId(const Aws::String &value)
Definition DataSource.h:136
void SetVectorIngestionConfiguration(VectorIngestionConfiguration &&value)
Definition DataSource.h:201
void SetDataSourceId(const Aws::String &value)
Definition DataSource.h:89
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
Definition DataSource.h:159
DataSource & WithKnowledgeBaseId(Aws::String &&value)
Definition DataSource.h:137
DataSource & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
Definition DataSource.h:164
DataSource & WithFailureReasons(Aws::Vector< Aws::String > &&value)
Definition DataSource.h:120
void SetKnowledgeBaseId(const Aws::String &value)
Definition DataSource.h:133
const Aws::String & GetDescription() const
Definition DataSource.h:101
DataSource & WithDataSourceId(const char *value)
Definition DataSource.h:94
DataSource & WithDataDeletionPolicy(const DataDeletionPolicy &value)
Definition DataSource.h:67
const Aws::String & GetName() const
Definition DataSource.h:145
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue