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/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/wisdom/model/ExternalSourceConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/wisdom/model/ImportJobType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/wisdom/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 ConnectWisdomService
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CONNECTWISDOMSERVICE_API ImportJobData();
40 AWS_CONNECTWISDOMSERVICE_API ImportJobData(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECTWISDOMSERVICE_API ImportJobData& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECTWISDOMSERVICE_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
127 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
128 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
129 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
130 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
131 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
132 inline ImportJobData& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
133 inline ImportJobData& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
134 inline ImportJobData& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
142 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
143 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
144 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
145 inline ImportJobData& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
146 inline ImportJobData& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
148
150
153 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
154 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
155 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
156 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
157 inline ImportJobData& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
158 inline ImportJobData& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
159 inline ImportJobData& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
160 inline ImportJobData& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
161 inline ImportJobData& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
162 inline ImportJobData& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
163 inline ImportJobData& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
164 inline ImportJobData& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
165 inline ImportJobData& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
167
169
172 inline const ImportJobStatus& GetStatus() const{ return m_status; }
173 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
174 inline void SetStatus(const ImportJobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
175 inline void SetStatus(ImportJobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
176 inline ImportJobData& WithStatus(const ImportJobStatus& value) { SetStatus(value); return *this;}
177 inline ImportJobData& WithStatus(ImportJobStatus&& value) { SetStatus(std::move(value)); return *this;}
179
181
185 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
186 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
187 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
188 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
189 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
190 inline ImportJobData& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
191 inline ImportJobData& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
192 inline ImportJobData& WithUploadId(const char* value) { SetUploadId(value); return *this;}
194
196
200 inline const Aws::String& GetUrl() const{ return m_url; }
201 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
202 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
203 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
204 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
205 inline ImportJobData& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
206 inline ImportJobData& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
207 inline ImportJobData& WithUrl(const char* value) { SetUrl(value); return *this;}
209
211
214 inline const Aws::Utils::DateTime& GetUrlExpiry() const{ return m_urlExpiry; }
215 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
216 inline void SetUrlExpiry(const Aws::Utils::DateTime& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = value; }
217 inline void SetUrlExpiry(Aws::Utils::DateTime&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::move(value); }
218 inline ImportJobData& WithUrlExpiry(const Aws::Utils::DateTime& value) { SetUrlExpiry(value); return *this;}
219 inline ImportJobData& WithUrlExpiry(Aws::Utils::DateTime&& value) { SetUrlExpiry(std::move(value)); return *this;}
221 private:
222
223 Aws::Utils::DateTime m_createdTime;
224 bool m_createdTimeHasBeenSet = false;
225
226 ExternalSourceConfiguration m_externalSourceConfiguration;
227 bool m_externalSourceConfigurationHasBeenSet = false;
228
229 Aws::String m_failedRecordReport;
230 bool m_failedRecordReportHasBeenSet = false;
231
232 Aws::String m_importJobId;
233 bool m_importJobIdHasBeenSet = false;
234
235 ImportJobType m_importJobType;
236 bool m_importJobTypeHasBeenSet = false;
237
238 Aws::String m_knowledgeBaseArn;
239 bool m_knowledgeBaseArnHasBeenSet = false;
240
241 Aws::String m_knowledgeBaseId;
242 bool m_knowledgeBaseIdHasBeenSet = false;
243
244 Aws::Utils::DateTime m_lastModifiedTime;
245 bool m_lastModifiedTimeHasBeenSet = false;
246
248 bool m_metadataHasBeenSet = false;
249
250 ImportJobStatus m_status;
251 bool m_statusHasBeenSet = false;
252
253 Aws::String m_uploadId;
254 bool m_uploadIdHasBeenSet = false;
255
256 Aws::String m_url;
257 bool m_urlHasBeenSet = false;
258
259 Aws::Utils::DateTime m_urlExpiry;
260 bool m_urlExpiryHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace ConnectWisdomService
265} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API ImportJobData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
ImportJobData & WithUrlExpiry(const Aws::Utils::DateTime &value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetStatus(const ImportJobStatus &value)
void SetExternalSourceConfiguration(ExternalSourceConfiguration &&value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
ImportJobData & WithExternalSourceConfiguration(ExternalSourceConfiguration &&value)
ImportJobData & WithImportJobType(const ImportJobType &value)
ImportJobData & AddMetadata(Aws::String &&key, const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ImportJobData & AddMetadata(Aws::String &&key, Aws::String &&value)
const ImportJobType & GetImportJobType() const
ImportJobData & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ImportJobData & WithLastModifiedTime(Aws::Utils::DateTime &&value)
ImportJobData & WithUploadId(const Aws::String &value)
ImportJobData & WithLastModifiedTime(const Aws::Utils::DateTime &value)
void SetUploadId(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API ImportJobData(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTime(Aws::Utils::DateTime &&value)
ImportJobData & WithStatus(ImportJobStatus &&value)
const Aws::String & GetFailedRecordReport() const
ImportJobData & WithKnowledgeBaseArn(Aws::String &&value)
ImportJobData & WithCreatedTime(Aws::Utils::DateTime &&value)
ImportJobData & WithImportJobId(Aws::String &&value)
ImportJobData & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ImportJobData & WithImportJobId(const char *value)
const Aws::String & GetKnowledgeBaseArn() const
void SetFailedRecordReport(const Aws::String &value)
ImportJobData & WithStatus(const ImportJobStatus &value)
ImportJobData & WithFailedRecordReport(const char *value)
void SetImportJobId(const Aws::String &value)
ImportJobData & WithKnowledgeBaseArn(const char *value)
ImportJobData & AddMetadata(const char *key, const char *value)
ImportJobData & WithFailedRecordReport(const Aws::String &value)
ImportJobData & WithImportJobId(const Aws::String &value)
ImportJobData & WithUrl(const Aws::String &value)
ImportJobData & WithUrl(const char *value)
ImportJobData & WithFailedRecordReport(Aws::String &&value)
ImportJobData & WithKnowledgeBaseArn(const Aws::String &value)
ImportJobData & AddMetadata(Aws::String &&key, const char *value)
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
ImportJobData & WithUrl(Aws::String &&value)
ImportJobData & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ImportJobData & WithExternalSourceConfiguration(const ExternalSourceConfiguration &value)
ImportJobData & WithCreatedTime(const Aws::Utils::DateTime &value)
void SetUrlExpiry(Aws::Utils::DateTime &&value)
ImportJobData & WithKnowledgeBaseId(Aws::String &&value)
ImportJobData & WithUrlExpiry(Aws::Utils::DateTime &&value)
void SetImportJobType(const ImportJobType &value)
ImportJobData & WithKnowledgeBaseId(const char *value)
void SetKnowledgeBaseId(const Aws::String &value)
const Aws::Utils::DateTime & GetUrlExpiry() const
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
AWS_CONNECTWISDOMSERVICE_API ImportJobData()
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const ImportJobStatus & GetStatus() const
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ImportJobData & WithUploadId(Aws::String &&value)
ImportJobData & WithImportJobType(ImportJobType &&value)
ImportJobData & WithUploadId(const char *value)
void SetUrlExpiry(const Aws::Utils::DateTime &value)
void SetKnowledgeBaseArn(const Aws::String &value)
ImportJobData & AddMetadata(const char *key, Aws::String &&value)
ImportJobData & AddMetadata(const Aws::String &key, const Aws::String &value)
void SetExternalSourceConfiguration(const ExternalSourceConfiguration &value)
ImportJobData & WithKnowledgeBaseId(const Aws::String &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