AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
IngestionJobSummary.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
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent {
23namespace Model {
24
31 public:
32 AWS_BEDROCKAGENT_API IngestionJobSummary() = default;
35 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
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
59 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
60 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
61 template <typename DataSourceIdT = Aws::String>
63 m_dataSourceIdHasBeenSet = true;
64 m_dataSourceId = std::forward<DataSourceIdT>(value);
65 }
66 template <typename DataSourceIdT = Aws::String>
68 SetDataSourceId(std::forward<DataSourceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetIngestionJobId() const { return m_ingestionJobId; }
78 inline bool IngestionJobIdHasBeenSet() const { return m_ingestionJobIdHasBeenSet; }
79 template <typename IngestionJobIdT = Aws::String>
81 m_ingestionJobIdHasBeenSet = true;
82 m_ingestionJobId = std::forward<IngestionJobIdT>(value);
83 }
84 template <typename IngestionJobIdT = Aws::String>
86 SetIngestionJobId(std::forward<IngestionJobIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline IngestionJobStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(IngestionJobStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
130 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
131 template <typename StartedAtT = Aws::Utils::DateTime>
132 void SetStartedAt(StartedAtT&& value) {
133 m_startedAtHasBeenSet = true;
134 m_startedAt = std::forward<StartedAtT>(value);
135 }
136 template <typename StartedAtT = Aws::Utils::DateTime>
138 SetStartedAt(std::forward<StartedAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
148 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
149 template <typename UpdatedAtT = Aws::Utils::DateTime>
150 void SetUpdatedAt(UpdatedAtT&& value) {
151 m_updatedAtHasBeenSet = true;
152 m_updatedAt = std::forward<UpdatedAtT>(value);
153 }
154 template <typename UpdatedAtT = Aws::Utils::DateTime>
156 SetUpdatedAt(std::forward<UpdatedAtT>(value));
157 return *this;
158 }
160
162
167 inline const Aws::Utils::DateTime& GetTextReadyAt() const { return m_textReadyAt; }
168 inline bool TextReadyAtHasBeenSet() const { return m_textReadyAtHasBeenSet; }
169 template <typename TextReadyAtT = Aws::Utils::DateTime>
171 m_textReadyAtHasBeenSet = true;
172 m_textReadyAt = std::forward<TextReadyAtT>(value);
173 }
174 template <typename TextReadyAtT = Aws::Utils::DateTime>
176 SetTextReadyAt(std::forward<TextReadyAtT>(value));
177 return *this;
178 }
180
182
185 inline const IngestionJobStatistics& GetStatistics() const { return m_statistics; }
186 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
187 template <typename StatisticsT = IngestionJobStatistics>
189 m_statisticsHasBeenSet = true;
190 m_statistics = std::forward<StatisticsT>(value);
191 }
192 template <typename StatisticsT = IngestionJobStatistics>
194 SetStatistics(std::forward<StatisticsT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_knowledgeBaseId;
200
201 Aws::String m_dataSourceId;
202
203 Aws::String m_ingestionJobId;
204
205 Aws::String m_description;
206
208
209 Aws::Utils::DateTime m_startedAt{};
210
211 Aws::Utils::DateTime m_updatedAt{};
212
213 Aws::Utils::DateTime m_textReadyAt{};
214
215 IngestionJobStatistics m_statistics;
216 bool m_knowledgeBaseIdHasBeenSet = false;
217 bool m_dataSourceIdHasBeenSet = false;
218 bool m_ingestionJobIdHasBeenSet = false;
219 bool m_descriptionHasBeenSet = false;
220 bool m_statusHasBeenSet = false;
221 bool m_startedAtHasBeenSet = false;
222 bool m_updatedAtHasBeenSet = false;
223 bool m_textReadyAtHasBeenSet = false;
224 bool m_statisticsHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace BedrockAgent
229} // namespace Aws
IngestionJobSummary & WithStatus(IngestionJobStatus value)
IngestionJobSummary & WithStatistics(StatisticsT &&value)
AWS_BEDROCKAGENT_API IngestionJobSummary()=default
IngestionJobSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
IngestionJobSummary & WithStartedAt(StartedAtT &&value)
AWS_BEDROCKAGENT_API IngestionJobSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
IngestionJobSummary & WithIngestionJobId(IngestionJobIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_BEDROCKAGENT_API IngestionJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTextReadyAt() const
IngestionJobSummary & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
IngestionJobSummary & WithUpdatedAt(UpdatedAtT &&value)
const IngestionJobStatistics & GetStatistics() const
IngestionJobSummary & WithTextReadyAt(TextReadyAtT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
IngestionJobSummary & WithDataSourceId(DataSourceIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue