AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
IngestionJob.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/bedrock-agent/model/IngestionJobStatistics.h>
12#include <aws/bedrock-agent/model/IngestionJobStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgent
26{
27namespace Model
28{
29
44 {
45 public:
46 AWS_BEDROCKAGENT_API IngestionJob() = default;
47 AWS_BEDROCKAGENT_API IngestionJob(Aws::Utils::Json::JsonView jsonValue);
48 AWS_BEDROCKAGENT_API IngestionJob& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
57 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
58 template<typename DataSourceIdT = Aws::String>
59 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
60 template<typename DataSourceIdT = Aws::String>
61 IngestionJob& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 IngestionJob& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
80 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
81 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
82 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
83 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::forward<FailureReasonsT>(value); }
84 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
85 IngestionJob& WithFailureReasons(FailureReasonsT&& value) { SetFailureReasons(std::forward<FailureReasonsT>(value)); return *this;}
86 template<typename FailureReasonsT = Aws::String>
87 IngestionJob& AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value)); return *this; }
89
91
94 inline const Aws::String& GetIngestionJobId() const { return m_ingestionJobId; }
95 inline bool IngestionJobIdHasBeenSet() const { return m_ingestionJobIdHasBeenSet; }
96 template<typename IngestionJobIdT = Aws::String>
97 void SetIngestionJobId(IngestionJobIdT&& value) { m_ingestionJobIdHasBeenSet = true; m_ingestionJobId = std::forward<IngestionJobIdT>(value); }
98 template<typename IngestionJobIdT = Aws::String>
99 IngestionJob& WithIngestionJobId(IngestionJobIdT&& value) { SetIngestionJobId(std::forward<IngestionJobIdT>(value)); return *this;}
101
103
106 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
107 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
108 template<typename KnowledgeBaseIdT = Aws::String>
109 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
110 template<typename KnowledgeBaseIdT = Aws::String>
111 IngestionJob& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
113
115
120 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
121 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
122 template<typename StartedAtT = Aws::Utils::DateTime>
123 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
124 template<typename StartedAtT = Aws::Utils::DateTime>
125 IngestionJob& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
127
129
132 inline const IngestionJobStatistics& GetStatistics() const { return m_statistics; }
133 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
134 template<typename StatisticsT = IngestionJobStatistics>
135 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet = true; m_statistics = std::forward<StatisticsT>(value); }
136 template<typename StatisticsT = IngestionJobStatistics>
137 IngestionJob& WithStatistics(StatisticsT&& value) { SetStatistics(std::forward<StatisticsT>(value)); return *this;}
139
141
144 inline IngestionJobStatus GetStatus() const { return m_status; }
145 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
146 inline void SetStatus(IngestionJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
147 inline IngestionJob& WithStatus(IngestionJobStatus value) { SetStatus(value); return *this;}
149
151
156 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
157 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
158 template<typename UpdatedAtT = Aws::Utils::DateTime>
159 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
160 template<typename UpdatedAtT = Aws::Utils::DateTime>
161 IngestionJob& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
163 private:
164
165 Aws::String m_dataSourceId;
166 bool m_dataSourceIdHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::Vector<Aws::String> m_failureReasons;
172 bool m_failureReasonsHasBeenSet = false;
173
174 Aws::String m_ingestionJobId;
175 bool m_ingestionJobIdHasBeenSet = false;
176
177 Aws::String m_knowledgeBaseId;
178 bool m_knowledgeBaseIdHasBeenSet = false;
179
180 Aws::Utils::DateTime m_startedAt{};
181 bool m_startedAtHasBeenSet = false;
182
183 IngestionJobStatistics m_statistics;
184 bool m_statisticsHasBeenSet = false;
185
187 bool m_statusHasBeenSet = false;
188
189 Aws::Utils::DateTime m_updatedAt{};
190 bool m_updatedAtHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace BedrockAgent
195} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue