AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportJobData.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/qconnect/model/ExternalSourceConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/qconnect/model/ImportJobType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/qconnect/model/ImportJobStatus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QConnect
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_QCONNECT_API ImportJobData();
40 AWS_QCONNECT_API ImportJobData(Aws::Utils::Json::JsonView jsonValue);
42 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
50 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
51 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
52 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
53 inline ImportJobData& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
54 inline ImportJobData& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
56
58
59 inline const ExternalSourceConfiguration& GetExternalSourceConfiguration() const{ return m_externalSourceConfiguration; }
60 inline bool ExternalSourceConfigurationHasBeenSet() const { return m_externalSourceConfigurationHasBeenSet; }
61 inline void SetExternalSourceConfiguration(const ExternalSourceConfiguration& value) { m_externalSourceConfigurationHasBeenSet = true; m_externalSourceConfiguration = value; }
62 inline void SetExternalSourceConfiguration(ExternalSourceConfiguration&& value) { m_externalSourceConfigurationHasBeenSet = true; m_externalSourceConfiguration = std::move(value); }
66
68
72 inline const Aws::String& GetFailedRecordReport() const{ return m_failedRecordReport; }
73 inline bool FailedRecordReportHasBeenSet() const { return m_failedRecordReportHasBeenSet; }
74 inline void SetFailedRecordReport(const Aws::String& value) { m_failedRecordReportHasBeenSet = true; m_failedRecordReport = value; }
75 inline void SetFailedRecordReport(Aws::String&& value) { m_failedRecordReportHasBeenSet = true; m_failedRecordReport = std::move(value); }
76 inline void SetFailedRecordReport(const char* value) { m_failedRecordReportHasBeenSet = true; m_failedRecordReport.assign(value); }
77 inline ImportJobData& WithFailedRecordReport(const Aws::String& value) { SetFailedRecordReport(value); return *this;}
78 inline ImportJobData& WithFailedRecordReport(Aws::String&& value) { SetFailedRecordReport(std::move(value)); return *this;}
79 inline ImportJobData& WithFailedRecordReport(const char* value) { SetFailedRecordReport(value); return *this;}
81
83
86 inline const Aws::String& GetImportJobId() const{ return m_importJobId; }
87 inline bool ImportJobIdHasBeenSet() const { return m_importJobIdHasBeenSet; }
88 inline void SetImportJobId(const Aws::String& value) { m_importJobIdHasBeenSet = true; m_importJobId = value; }
89 inline void SetImportJobId(Aws::String&& value) { m_importJobIdHasBeenSet = true; m_importJobId = std::move(value); }
90 inline void SetImportJobId(const char* value) { m_importJobIdHasBeenSet = true; m_importJobId.assign(value); }
91 inline ImportJobData& WithImportJobId(const Aws::String& value) { SetImportJobId(value); return *this;}
92 inline ImportJobData& WithImportJobId(Aws::String&& value) { SetImportJobId(std::move(value)); return *this;}
93 inline ImportJobData& WithImportJobId(const char* value) { SetImportJobId(value); return *this;}
95
97
100 inline const ImportJobType& GetImportJobType() const{ return m_importJobType; }
101 inline bool ImportJobTypeHasBeenSet() const { return m_importJobTypeHasBeenSet; }
102 inline void SetImportJobType(const ImportJobType& value) { m_importJobTypeHasBeenSet = true; m_importJobType = value; }
103 inline void SetImportJobType(ImportJobType&& value) { m_importJobTypeHasBeenSet = true; m_importJobType = std::move(value); }
104 inline ImportJobData& WithImportJobType(const ImportJobType& value) { SetImportJobType(value); return *this;}
105 inline ImportJobData& WithImportJobType(ImportJobType&& value) { SetImportJobType(std::move(value)); return *this;}
107
109
112 inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; }
113 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
114 inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; }
115 inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); }
116 inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); }
117 inline ImportJobData& WithKnowledgeBaseArn(const Aws::String& value) { SetKnowledgeBaseArn(value); return *this;}
118 inline ImportJobData& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;}
119 inline ImportJobData& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;}
121
123
126 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
127 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
128 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
129 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
130 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
131 inline ImportJobData& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
132 inline ImportJobData& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
133 inline ImportJobData& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
141 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
142 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
143 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
144 inline ImportJobData& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
145 inline ImportJobData& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
147
149
152 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
153 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
154 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
155 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
156 inline ImportJobData& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
157 inline ImportJobData& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
158 inline ImportJobData& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
159 inline ImportJobData& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
160 inline ImportJobData& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
161 inline ImportJobData& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
162 inline ImportJobData& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
163 inline ImportJobData& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
164 inline ImportJobData& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
166
168
171 inline const ImportJobStatus& GetStatus() const{ return m_status; }
172 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
173 inline void SetStatus(const ImportJobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
174 inline void SetStatus(ImportJobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
175 inline ImportJobData& WithStatus(const ImportJobStatus& value) { SetStatus(value); return *this;}
176 inline ImportJobData& WithStatus(ImportJobStatus&& value) { SetStatus(std::move(value)); return *this;}
178
180
184 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
185 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
186 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
187 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
188 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
189 inline ImportJobData& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
190 inline ImportJobData& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
191 inline ImportJobData& WithUploadId(const char* value) { SetUploadId(value); return *this;}
193
195
199 inline const Aws::String& GetUrl() const{ return m_url; }
200 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
201 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
202 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
203 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
204 inline ImportJobData& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
205 inline ImportJobData& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
206 inline ImportJobData& WithUrl(const char* value) { SetUrl(value); return *this;}
208
210
213 inline const Aws::Utils::DateTime& GetUrlExpiry() const{ return m_urlExpiry; }
214 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
215 inline void SetUrlExpiry(const Aws::Utils::DateTime& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = value; }
216 inline void SetUrlExpiry(Aws::Utils::DateTime&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::move(value); }
217 inline ImportJobData& WithUrlExpiry(const Aws::Utils::DateTime& value) { SetUrlExpiry(value); return *this;}
218 inline ImportJobData& WithUrlExpiry(Aws::Utils::DateTime&& value) { SetUrlExpiry(std::move(value)); return *this;}
220 private:
221
222 Aws::Utils::DateTime m_createdTime;
223 bool m_createdTimeHasBeenSet = false;
224
225 ExternalSourceConfiguration m_externalSourceConfiguration;
226 bool m_externalSourceConfigurationHasBeenSet = false;
227
228 Aws::String m_failedRecordReport;
229 bool m_failedRecordReportHasBeenSet = false;
230
231 Aws::String m_importJobId;
232 bool m_importJobIdHasBeenSet = false;
233
234 ImportJobType m_importJobType;
235 bool m_importJobTypeHasBeenSet = false;
236
237 Aws::String m_knowledgeBaseArn;
238 bool m_knowledgeBaseArnHasBeenSet = false;
239
240 Aws::String m_knowledgeBaseId;
241 bool m_knowledgeBaseIdHasBeenSet = false;
242
243 Aws::Utils::DateTime m_lastModifiedTime;
244 bool m_lastModifiedTimeHasBeenSet = false;
245
247 bool m_metadataHasBeenSet = false;
248
249 ImportJobStatus m_status;
250 bool m_statusHasBeenSet = false;
251
252 Aws::String m_uploadId;
253 bool m_uploadIdHasBeenSet = false;
254
255 Aws::String m_url;
256 bool m_urlHasBeenSet = false;
257
258 Aws::Utils::DateTime m_urlExpiry;
259 bool m_urlExpiryHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace QConnect
264} // namespace Aws
ImportJobData & WithLastModifiedTime(const Aws::Utils::DateTime &value)
const Aws::String & GetKnowledgeBaseId() const
ImportJobData & WithImportJobId(Aws::String &&value)
ImportJobData & WithImportJobId(const Aws::String &value)
ImportJobData & WithUploadId(const Aws::String &value)
ImportJobData & WithUploadId(const char *value)
const Aws::Utils::DateTime & GetCreatedTime() const
void SetKnowledgeBaseArn(const char *value)
ImportJobData & WithLastModifiedTime(Aws::Utils::DateTime &&value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ImportJobData & WithExternalSourceConfiguration(const ExternalSourceConfiguration &value)
void SetImportJobId(const char *value)
ImportJobData & WithStatus(const ImportJobStatus &value)
ImportJobData & WithCreatedTime(Aws::Utils::DateTime &&value)
ImportJobData & WithImportJobId(const char *value)
ImportJobData & WithImportJobType(ImportJobType &&value)
ImportJobData & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetKnowledgeBaseId(const Aws::String &value)
void SetKnowledgeBaseId(Aws::String &&value)
ImportJobData & WithCreatedTime(const Aws::Utils::DateTime &value)
ImportJobData & AddMetadata(Aws::String &&key, Aws::String &&value)
ImportJobData & WithUrlExpiry(Aws::Utils::DateTime &&value)
ImportJobData & WithUrl(const Aws::String &value)
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
void SetImportJobType(const ImportJobType &value)
const Aws::String & GetUrl() const
void SetImportJobId(Aws::String &&value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetKnowledgeBaseId(const char *value)
void SetUrl(Aws::String &&value)
void SetFailedRecordReport(Aws::String &&value)
ImportJobData & WithImportJobType(const ImportJobType &value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
const Aws::String & GetUploadId() const
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUrlExpiry(Aws::Utils::DateTime &&value)
ImportJobData & WithUploadId(Aws::String &&value)
ImportJobData & WithKnowledgeBaseId(Aws::String &&value)
const Aws::String & GetKnowledgeBaseArn() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::String & GetFailedRecordReport() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetKnowledgeBaseArn(Aws::String &&value)
ImportJobData & AddMetadata(const char *key, Aws::String &&value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
ImportJobData & WithKnowledgeBaseId(const Aws::String &value)
ImportJobData & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetKnowledgeBaseArn(const Aws::String &value)
void SetStatus(ImportJobStatus &&value)
void SetExternalSourceConfiguration(ExternalSourceConfiguration &&value)
ImportJobData & WithKnowledgeBaseArn(Aws::String &&value)
void SetImportJobId(const Aws::String &value)
ImportJobData & AddMetadata(Aws::String &&key, const Aws::String &value)
const ImportJobType & GetImportJobType() const
ImportJobData & WithStatus(ImportJobStatus &&value)
ImportJobData & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ImportJobData & WithExternalSourceConfiguration(ExternalSourceConfiguration &&value)
void SetUrlExpiry(const Aws::Utils::DateTime &value)
ImportJobData & WithKnowledgeBaseId(const char *value)
AWS_QCONNECT_API ImportJobData & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetUrlExpiry() const
ImportJobData & WithFailedRecordReport(Aws::String &&value)
ImportJobData & AddMetadata(const Aws::String &key, const Aws::String &value)
ImportJobData & WithFailedRecordReport(const Aws::String &value)
ImportJobData & AddMetadata(Aws::String &&key, const char *value)
void SetUploadId(const Aws::String &value)
void SetFailedRecordReport(const char *value)
ImportJobData & WithKnowledgeBaseArn(const Aws::String &value)
ImportJobData & WithUrl(const char *value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
ImportJobData & WithFailedRecordReport(const char *value)
const Aws::String & GetImportJobId() const
void SetExternalSourceConfiguration(const ExternalSourceConfiguration &value)
void SetUploadId(const char *value)
void SetUploadId(Aws::String &&value)
void SetFailedRecordReport(const Aws::String &value)
ImportJobData & WithUrl(Aws::String &&value)
ImportJobData & WithKnowledgeBaseArn(const char *value)
ImportJobData & AddMetadata(const char *key, const char *value)
void SetUrl(const Aws::String &value)
const ImportJobStatus & GetStatus() const
ImportJobData & WithUrlExpiry(const Aws::Utils::DateTime &value)
void SetImportJobType(ImportJobType &&value)
void SetStatus(const ImportJobStatus &value)
AWS_QCONNECT_API ImportJobData(Aws::Utils::Json::JsonView jsonValue)
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