AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
59 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
60 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
61 inline IngestionJob& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
62 inline IngestionJob& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
63 inline IngestionJob& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline IngestionJob& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline IngestionJob& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline IngestionJob& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
84 inline const Aws::Vector<Aws::String>& GetFailureReasons() const{ return m_failureReasons; }
85 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
86 inline void SetFailureReasons(const Aws::Vector<Aws::String>& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = value; }
87 inline void SetFailureReasons(Aws::Vector<Aws::String>&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::move(value); }
88 inline IngestionJob& WithFailureReasons(const Aws::Vector<Aws::String>& value) { SetFailureReasons(value); return *this;}
89 inline IngestionJob& WithFailureReasons(Aws::Vector<Aws::String>&& value) { SetFailureReasons(std::move(value)); return *this;}
90 inline IngestionJob& AddFailureReasons(const Aws::String& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; }
91 inline IngestionJob& AddFailureReasons(Aws::String&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(std::move(value)); return *this; }
92 inline IngestionJob& AddFailureReasons(const char* value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; }
94
96
99 inline const Aws::String& GetIngestionJobId() const{ return m_ingestionJobId; }
100 inline bool IngestionJobIdHasBeenSet() const { return m_ingestionJobIdHasBeenSet; }
101 inline void SetIngestionJobId(const Aws::String& value) { m_ingestionJobIdHasBeenSet = true; m_ingestionJobId = value; }
102 inline void SetIngestionJobId(Aws::String&& value) { m_ingestionJobIdHasBeenSet = true; m_ingestionJobId = std::move(value); }
103 inline void SetIngestionJobId(const char* value) { m_ingestionJobIdHasBeenSet = true; m_ingestionJobId.assign(value); }
104 inline IngestionJob& WithIngestionJobId(const Aws::String& value) { SetIngestionJobId(value); return *this;}
105 inline IngestionJob& WithIngestionJobId(Aws::String&& value) { SetIngestionJobId(std::move(value)); return *this;}
106 inline IngestionJob& WithIngestionJobId(const char* value) { SetIngestionJobId(value); return *this;}
108
110
113 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
114 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
115 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
116 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
117 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
118 inline IngestionJob& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
119 inline IngestionJob& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
120 inline IngestionJob& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
122
124
129 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
130 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
131 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
132 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
133 inline IngestionJob& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
134 inline IngestionJob& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
136
138
141 inline const IngestionJobStatistics& GetStatistics() const{ return m_statistics; }
142 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
143 inline void SetStatistics(const IngestionJobStatistics& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
144 inline void SetStatistics(IngestionJobStatistics&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
145 inline IngestionJob& WithStatistics(const IngestionJobStatistics& value) { SetStatistics(value); return *this;}
146 inline IngestionJob& WithStatistics(IngestionJobStatistics&& value) { SetStatistics(std::move(value)); return *this;}
148
150
153 inline const IngestionJobStatus& GetStatus() const{ return m_status; }
154 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
155 inline void SetStatus(const IngestionJobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
156 inline void SetStatus(IngestionJobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
157 inline IngestionJob& WithStatus(const IngestionJobStatus& value) { SetStatus(value); return *this;}
158 inline IngestionJob& WithStatus(IngestionJobStatus&& value) { SetStatus(std::move(value)); return *this;}
160
162
167 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
168 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
169 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
170 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
171 inline IngestionJob& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
172 inline IngestionJob& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
174 private:
175
176 Aws::String m_dataSourceId;
177 bool m_dataSourceIdHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_failureReasons;
183 bool m_failureReasonsHasBeenSet = false;
184
185 Aws::String m_ingestionJobId;
186 bool m_ingestionJobIdHasBeenSet = false;
187
188 Aws::String m_knowledgeBaseId;
189 bool m_knowledgeBaseIdHasBeenSet = false;
190
191 Aws::Utils::DateTime m_startedAt;
192 bool m_startedAtHasBeenSet = false;
193
194 IngestionJobStatistics m_statistics;
195 bool m_statisticsHasBeenSet = false;
196
197 IngestionJobStatus m_status;
198 bool m_statusHasBeenSet = false;
199
200 Aws::Utils::DateTime m_updatedAt;
201 bool m_updatedAtHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace BedrockAgent
206} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIngestionJobId(const char *value)
IngestionJob & AddFailureReasons(const Aws::String &value)
AWS_BEDROCKAGENT_API IngestionJob()
void SetIngestionJobId(const Aws::String &value)
IngestionJob & WithDescription(const Aws::String &value)
IngestionJob & WithStatistics(IngestionJobStatistics &&value)
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetStartedAt(Aws::Utils::DateTime &&value)
IngestionJob & WithDataSourceId(const Aws::String &value)
IngestionJob & WithStartedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetFailureReasons(Aws::Vector< Aws::String > &&value)
IngestionJob & WithDataSourceId(const char *value)
const Aws::String & GetDataSourceId() const
IngestionJob & WithFailureReasons(Aws::Vector< Aws::String > &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetIngestionJobId() const
IngestionJob & WithFailureReasons(const Aws::Vector< Aws::String > &value)
IngestionJob & WithDataSourceId(Aws::String &&value)
void SetStatus(const IngestionJobStatus &value)
AWS_BEDROCKAGENT_API IngestionJob(Aws::Utils::Json::JsonView jsonValue)
IngestionJob & WithUpdatedAt(const Aws::Utils::DateTime &value)
IngestionJob & WithDescription(Aws::String &&value)
const Aws::String & GetDescription() const
void SetStatistics(const IngestionJobStatistics &value)
void SetDataSourceId(Aws::String &&value)
void SetFailureReasons(const Aws::Vector< Aws::String > &value)
IngestionJob & AddFailureReasons(Aws::String &&value)
const IngestionJobStatistics & GetStatistics() const
IngestionJob & WithKnowledgeBaseId(const char *value)
IngestionJob & WithStatus(const IngestionJobStatus &value)
IngestionJob & WithStatistics(const IngestionJobStatistics &value)
void SetDescription(Aws::String &&value)
void SetKnowledgeBaseId(Aws::String &&value)
void SetKnowledgeBaseId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
void SetDescription(const char *value)
IngestionJob & WithDescription(const char *value)
const Aws::String & GetKnowledgeBaseId() const
IngestionJob & WithKnowledgeBaseId(Aws::String &&value)
IngestionJob & WithKnowledgeBaseId(const Aws::String &value)
const IngestionJobStatus & GetStatus() const
void SetDataSourceId(const char *value)
void SetDataSourceId(const Aws::String &value)
void SetIngestionJobId(Aws::String &&value)
IngestionJob & WithIngestionJobId(const Aws::String &value)
AWS_BEDROCKAGENT_API IngestionJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(const Aws::String &value)
IngestionJob & WithStatus(IngestionJobStatus &&value)
void SetStatistics(IngestionJobStatistics &&value)
IngestionJob & WithIngestionJobId(const char *value)
IngestionJob & AddFailureReasons(const char *value)
void SetStatus(IngestionJobStatus &&value)
void SetKnowledgeBaseId(const char *value)
IngestionJob & WithUpdatedAt(Aws::Utils::DateTime &&value)
IngestionJob & WithIngestionJobId(Aws::String &&value)
IngestionJob & WithStartedAt(const Aws::Utils::DateTime &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