AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
IngestionJob.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/IngestionJobStatistics.h>
9#include <aws/bedrock-agent/model/IngestionJobStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent {
24namespace Model {
25
40 public:
41 AWS_BEDROCKAGENT_API IngestionJob() = default;
44 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
51 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
52 template <typename KnowledgeBaseIdT = Aws::String>
54 m_knowledgeBaseIdHasBeenSet = true;
55 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
56 }
57 template <typename KnowledgeBaseIdT = Aws::String>
59 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
69 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
70 template <typename DataSourceIdT = Aws::String>
72 m_dataSourceIdHasBeenSet = true;
73 m_dataSourceId = std::forward<DataSourceIdT>(value);
74 }
75 template <typename DataSourceIdT = Aws::String>
77 SetDataSourceId(std::forward<DataSourceIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetIngestionJobId() const { return m_ingestionJobId; }
87 inline bool IngestionJobIdHasBeenSet() const { return m_ingestionJobIdHasBeenSet; }
88 template <typename IngestionJobIdT = Aws::String>
90 m_ingestionJobIdHasBeenSet = true;
91 m_ingestionJobId = std::forward<IngestionJobIdT>(value);
92 }
93 template <typename IngestionJobIdT = Aws::String>
95 SetIngestionJobId(std::forward<IngestionJobIdT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDescription() const { return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 template <typename DescriptionT = Aws::String>
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
122 inline IngestionJobStatus GetStatus() const { return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
124 inline void SetStatus(IngestionJobStatus value) {
125 m_statusHasBeenSet = true;
126 m_status = value;
127 }
129 SetStatus(value);
130 return *this;
131 }
133
135
138 inline const IngestionJobStatistics& GetStatistics() const { return m_statistics; }
139 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
140 template <typename StatisticsT = IngestionJobStatistics>
142 m_statisticsHasBeenSet = true;
143 m_statistics = std::forward<StatisticsT>(value);
144 }
145 template <typename StatisticsT = IngestionJobStatistics>
147 SetStatistics(std::forward<StatisticsT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
157 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
158 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
160 m_failureReasonsHasBeenSet = true;
161 m_failureReasons = std::forward<FailureReasonsT>(value);
162 }
163 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
165 SetFailureReasons(std::forward<FailureReasonsT>(value));
166 return *this;
167 }
168 template <typename FailureReasonsT = Aws::String>
170 m_failureReasonsHasBeenSet = true;
171 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
172 return *this;
173 }
175
177
182 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
183 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
184 template <typename StartedAtT = Aws::Utils::DateTime>
185 void SetStartedAt(StartedAtT&& value) {
186 m_startedAtHasBeenSet = true;
187 m_startedAt = std::forward<StartedAtT>(value);
188 }
189 template <typename StartedAtT = Aws::Utils::DateTime>
191 SetStartedAt(std::forward<StartedAtT>(value));
192 return *this;
193 }
195
197
202 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
203 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
204 template <typename UpdatedAtT = Aws::Utils::DateTime>
205 void SetUpdatedAt(UpdatedAtT&& value) {
206 m_updatedAtHasBeenSet = true;
207 m_updatedAt = std::forward<UpdatedAtT>(value);
208 }
209 template <typename UpdatedAtT = Aws::Utils::DateTime>
211 SetUpdatedAt(std::forward<UpdatedAtT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_knowledgeBaseId;
217
218 Aws::String m_dataSourceId;
219
220 Aws::String m_ingestionJobId;
221
222 Aws::String m_description;
223
225
226 IngestionJobStatistics m_statistics;
227
228 Aws::Vector<Aws::String> m_failureReasons;
229
230 Aws::Utils::DateTime m_startedAt{};
231
232 Aws::Utils::DateTime m_updatedAt{};
233 bool m_knowledgeBaseIdHasBeenSet = false;
234 bool m_dataSourceIdHasBeenSet = false;
235 bool m_ingestionJobIdHasBeenSet = false;
236 bool m_descriptionHasBeenSet = false;
237 bool m_statusHasBeenSet = false;
238 bool m_statisticsHasBeenSet = false;
239 bool m_failureReasonsHasBeenSet = false;
240 bool m_startedAtHasBeenSet = false;
241 bool m_updatedAtHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace BedrockAgent
246} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
IngestionJob & WithFailureReasons(FailureReasonsT &&value)
AWS_BEDROCKAGENT_API IngestionJob()=default
const Aws::Utils::DateTime & GetStartedAt() const
IngestionJob & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetDataSourceId() const
IngestionJob & WithDescription(DescriptionT &&value)
const Aws::String & GetIngestionJobId() const
IngestionJob & WithStatistics(StatisticsT &&value)
IngestionJob & WithStartedAt(StartedAtT &&value)
AWS_BEDROCKAGENT_API IngestionJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
IngestionJob & AddFailureReasons(FailureReasonsT &&value)
const IngestionJobStatistics & GetStatistics() const
void SetDescription(DescriptionT &&value)
void SetDataSourceId(DataSourceIdT &&value)
IngestionJob & WithIngestionJobId(IngestionJobIdT &&value)
void SetIngestionJobId(IngestionJobIdT &&value)
IngestionJob & WithStatus(IngestionJobStatus value)
void SetUpdatedAt(UpdatedAtT &&value)
IngestionJobStatus GetStatus() const
void SetStatistics(StatisticsT &&value)
void SetStatus(IngestionJobStatus value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
void SetFailureReasons(FailureReasonsT &&value)
const Aws::String & GetKnowledgeBaseId() const
void SetStartedAt(StartedAtT &&value)
AWS_BEDROCKAGENT_API IngestionJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
IngestionJob & WithDataSourceId(DataSourceIdT &&value)
IngestionJob & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
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