AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ImportJobData.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
11#include <aws/wisdom/model/ExternalSourceConfiguration.h>
12#include <aws/wisdom/model/ImportJobStatus.h>
13#include <aws/wisdom/model/ImportJobType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectWisdomService {
25namespace Model {
26
33 public:
34 AWS_CONNECTWISDOMSERVICE_API ImportJobData() = default;
35 AWS_CONNECTWISDOMSERVICE_API ImportJobData(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTWISDOMSERVICE_API ImportJobData& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
44 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
45 template <typename CreatedTimeT = Aws::Utils::DateTime>
46 void SetCreatedTime(CreatedTimeT&& value) {
47 m_createdTimeHasBeenSet = true;
48 m_createdTime = std::forward<CreatedTimeT>(value);
49 }
50 template <typename CreatedTimeT = Aws::Utils::DateTime>
51 ImportJobData& WithCreatedTime(CreatedTimeT&& value) {
52 SetCreatedTime(std::forward<CreatedTimeT>(value));
53 return *this;
54 }
56
58
59 inline const ExternalSourceConfiguration& GetExternalSourceConfiguration() const { return m_externalSourceConfiguration; }
60 inline bool ExternalSourceConfigurationHasBeenSet() const { return m_externalSourceConfigurationHasBeenSet; }
61 template <typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
62 void SetExternalSourceConfiguration(ExternalSourceConfigurationT&& value) {
63 m_externalSourceConfigurationHasBeenSet = true;
64 m_externalSourceConfiguration = std::forward<ExternalSourceConfigurationT>(value);
65 }
66 template <typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
67 ImportJobData& WithExternalSourceConfiguration(ExternalSourceConfigurationT&& value) {
68 SetExternalSourceConfiguration(std::forward<ExternalSourceConfigurationT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetFailedRecordReport() const { return m_failedRecordReport; }
79 inline bool FailedRecordReportHasBeenSet() const { return m_failedRecordReportHasBeenSet; }
80 template <typename FailedRecordReportT = Aws::String>
81 void SetFailedRecordReport(FailedRecordReportT&& value) {
82 m_failedRecordReportHasBeenSet = true;
83 m_failedRecordReport = std::forward<FailedRecordReportT>(value);
84 }
85 template <typename FailedRecordReportT = Aws::String>
86 ImportJobData& WithFailedRecordReport(FailedRecordReportT&& value) {
87 SetFailedRecordReport(std::forward<FailedRecordReportT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetImportJobId() const { return m_importJobId; }
97 inline bool ImportJobIdHasBeenSet() const { return m_importJobIdHasBeenSet; }
98 template <typename ImportJobIdT = Aws::String>
99 void SetImportJobId(ImportJobIdT&& value) {
100 m_importJobIdHasBeenSet = true;
101 m_importJobId = std::forward<ImportJobIdT>(value);
102 }
103 template <typename ImportJobIdT = Aws::String>
104 ImportJobData& WithImportJobId(ImportJobIdT&& value) {
105 SetImportJobId(std::forward<ImportJobIdT>(value));
106 return *this;
107 }
109
111
114 inline ImportJobType GetImportJobType() const { return m_importJobType; }
115 inline bool ImportJobTypeHasBeenSet() const { return m_importJobTypeHasBeenSet; }
116 inline void SetImportJobType(ImportJobType value) {
117 m_importJobTypeHasBeenSet = true;
118 m_importJobType = value;
119 }
121 SetImportJobType(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
131 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
132 template <typename KnowledgeBaseArnT = Aws::String>
133 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
134 m_knowledgeBaseArnHasBeenSet = true;
135 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
136 }
137 template <typename KnowledgeBaseArnT = Aws::String>
138 ImportJobData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
139 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
150 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
151 template <typename KnowledgeBaseIdT = Aws::String>
152 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
153 m_knowledgeBaseIdHasBeenSet = true;
154 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
155 }
156 template <typename KnowledgeBaseIdT = Aws::String>
157 ImportJobData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
158 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
168 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
169 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
170 void SetLastModifiedTime(LastModifiedTimeT&& value) {
171 m_lastModifiedTimeHasBeenSet = true;
172 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
173 }
174 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
175 ImportJobData& WithLastModifiedTime(LastModifiedTimeT&& value) {
176 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
186 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
187 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
188 void SetMetadata(MetadataT&& value) {
189 m_metadataHasBeenSet = true;
190 m_metadata = std::forward<MetadataT>(value);
191 }
192 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
193 ImportJobData& WithMetadata(MetadataT&& value) {
194 SetMetadata(std::forward<MetadataT>(value));
195 return *this;
196 }
197 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
198 ImportJobData& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
199 m_metadataHasBeenSet = true;
200 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
201 return *this;
202 }
204
206
209 inline ImportJobStatus GetStatus() const { return m_status; }
210 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
211 inline void SetStatus(ImportJobStatus value) {
212 m_statusHasBeenSet = true;
213 m_status = value;
214 }
216 SetStatus(value);
217 return *this;
218 }
220
222
226 inline const Aws::String& GetUploadId() const { return m_uploadId; }
227 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
228 template <typename UploadIdT = Aws::String>
229 void SetUploadId(UploadIdT&& value) {
230 m_uploadIdHasBeenSet = true;
231 m_uploadId = std::forward<UploadIdT>(value);
232 }
233 template <typename UploadIdT = Aws::String>
234 ImportJobData& WithUploadId(UploadIdT&& value) {
235 SetUploadId(std::forward<UploadIdT>(value));
236 return *this;
237 }
239
241
245 inline const Aws::String& GetUrl() const { return m_url; }
246 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
247 template <typename UrlT = Aws::String>
248 void SetUrl(UrlT&& value) {
249 m_urlHasBeenSet = true;
250 m_url = std::forward<UrlT>(value);
251 }
252 template <typename UrlT = Aws::String>
253 ImportJobData& WithUrl(UrlT&& value) {
254 SetUrl(std::forward<UrlT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::Utils::DateTime& GetUrlExpiry() const { return m_urlExpiry; }
264 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
265 template <typename UrlExpiryT = Aws::Utils::DateTime>
266 void SetUrlExpiry(UrlExpiryT&& value) {
267 m_urlExpiryHasBeenSet = true;
268 m_urlExpiry = std::forward<UrlExpiryT>(value);
269 }
270 template <typename UrlExpiryT = Aws::Utils::DateTime>
271 ImportJobData& WithUrlExpiry(UrlExpiryT&& value) {
272 SetUrlExpiry(std::forward<UrlExpiryT>(value));
273 return *this;
274 }
276 private:
277 Aws::Utils::DateTime m_createdTime{};
278
279 ExternalSourceConfiguration m_externalSourceConfiguration;
280
281 Aws::String m_failedRecordReport;
282
283 Aws::String m_importJobId;
284
285 ImportJobType m_importJobType{ImportJobType::NOT_SET};
286
287 Aws::String m_knowledgeBaseArn;
288
289 Aws::String m_knowledgeBaseId;
290
291 Aws::Utils::DateTime m_lastModifiedTime{};
292
294
296
297 Aws::String m_uploadId;
298
299 Aws::String m_url;
300
301 Aws::Utils::DateTime m_urlExpiry{};
302 bool m_createdTimeHasBeenSet = false;
303 bool m_externalSourceConfigurationHasBeenSet = false;
304 bool m_failedRecordReportHasBeenSet = false;
305 bool m_importJobIdHasBeenSet = false;
306 bool m_importJobTypeHasBeenSet = false;
307 bool m_knowledgeBaseArnHasBeenSet = false;
308 bool m_knowledgeBaseIdHasBeenSet = false;
309 bool m_lastModifiedTimeHasBeenSet = false;
310 bool m_metadataHasBeenSet = false;
311 bool m_statusHasBeenSet = false;
312 bool m_uploadIdHasBeenSet = false;
313 bool m_urlHasBeenSet = false;
314 bool m_urlExpiryHasBeenSet = false;
315};
316
317} // namespace Model
318} // namespace ConnectWisdomService
319} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API ImportJobData()=default
AWS_CONNECTWISDOMSERVICE_API ImportJobData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
ImportJobData & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
ImportJobData & WithFailedRecordReport(FailedRecordReportT &&value)
ImportJobData & WithMetadata(MetadataT &&value)
AWS_CONNECTWISDOMSERVICE_API ImportJobData(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFailedRecordReport() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetKnowledgeBaseArn() const
ImportJobData & WithUrlExpiry(UrlExpiryT &&value)
ImportJobData & WithExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
ImportJobData & WithImportJobType(ImportJobType value)
ImportJobData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
void SetFailedRecordReport(FailedRecordReportT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ImportJobData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ImportJobData & WithLastModifiedTime(LastModifiedTimeT &&value)
ImportJobData & WithUploadId(UploadIdT &&value)
const Aws::Utils::DateTime & GetUrlExpiry() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ImportJobData & WithStatus(ImportJobStatus value)
ImportJobData & WithCreatedTime(CreatedTimeT &&value)
ImportJobData & WithImportJobId(ImportJobIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue