AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportJobSummary.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/qconnect/QConnect_EXPORTS.h>
11#include <aws/qconnect/model/ExternalSourceConfiguration.h>
12#include <aws/qconnect/model/ImportJobStatus.h>
13#include <aws/qconnect/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 QConnect {
25namespace Model {
26
33 public:
34 AWS_QCONNECT_API ImportJobSummary() = default;
37 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetImportJobId() const { return m_importJobId; }
44 inline bool ImportJobIdHasBeenSet() const { return m_importJobIdHasBeenSet; }
45 template <typename ImportJobIdT = Aws::String>
47 m_importJobIdHasBeenSet = true;
48 m_importJobId = std::forward<ImportJobIdT>(value);
49 }
50 template <typename ImportJobIdT = Aws::String>
52 SetImportJobId(std::forward<ImportJobIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
62 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
63 template <typename KnowledgeBaseIdT = Aws::String>
65 m_knowledgeBaseIdHasBeenSet = true;
66 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
67 }
68 template <typename KnowledgeBaseIdT = Aws::String>
70 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetUploadId() const { return m_uploadId; }
81 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
82 template <typename UploadIdT = Aws::String>
83 void SetUploadId(UploadIdT&& value) {
84 m_uploadIdHasBeenSet = true;
85 m_uploadId = std::forward<UploadIdT>(value);
86 }
87 template <typename UploadIdT = Aws::String>
89 SetUploadId(std::forward<UploadIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
99 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
100 template <typename KnowledgeBaseArnT = Aws::String>
102 m_knowledgeBaseArnHasBeenSet = true;
103 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
104 }
105 template <typename KnowledgeBaseArnT = Aws::String>
107 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
108 return *this;
109 }
111
113
116 inline ImportJobType GetImportJobType() const { return m_importJobType; }
117 inline bool ImportJobTypeHasBeenSet() const { return m_importJobTypeHasBeenSet; }
118 inline void SetImportJobType(ImportJobType value) {
119 m_importJobTypeHasBeenSet = true;
120 m_importJobType = value;
121 }
123 SetImportJobType(value);
124 return *this;
125 }
127
129
132 inline ImportJobStatus GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(ImportJobStatus value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
149 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
150 template <typename CreatedTimeT = Aws::Utils::DateTime>
152 m_createdTimeHasBeenSet = true;
153 m_createdTime = std::forward<CreatedTimeT>(value);
154 }
155 template <typename CreatedTimeT = Aws::Utils::DateTime>
157 SetCreatedTime(std::forward<CreatedTimeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
167 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
168 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
170 m_lastModifiedTimeHasBeenSet = true;
171 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
172 }
173 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
175 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
185 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
186 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
187 void SetMetadata(MetadataT&& value) {
188 m_metadataHasBeenSet = true;
189 m_metadata = std::forward<MetadataT>(value);
190 }
191 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
193 SetMetadata(std::forward<MetadataT>(value));
194 return *this;
195 }
196 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
198 m_metadataHasBeenSet = true;
199 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
200 return *this;
201 }
203
205
209 inline const ExternalSourceConfiguration& GetExternalSourceConfiguration() const { return m_externalSourceConfiguration; }
210 inline bool ExternalSourceConfigurationHasBeenSet() const { return m_externalSourceConfigurationHasBeenSet; }
211 template <typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
213 m_externalSourceConfigurationHasBeenSet = true;
214 m_externalSourceConfiguration = std::forward<ExternalSourceConfigurationT>(value);
215 }
216 template <typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
218 SetExternalSourceConfiguration(std::forward<ExternalSourceConfigurationT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_importJobId;
224
225 Aws::String m_knowledgeBaseId;
226
227 Aws::String m_uploadId;
228
229 Aws::String m_knowledgeBaseArn;
230
231 ImportJobType m_importJobType{ImportJobType::NOT_SET};
232
234
235 Aws::Utils::DateTime m_createdTime{};
236
237 Aws::Utils::DateTime m_lastModifiedTime{};
238
240
241 ExternalSourceConfiguration m_externalSourceConfiguration;
242 bool m_importJobIdHasBeenSet = false;
243 bool m_knowledgeBaseIdHasBeenSet = false;
244 bool m_uploadIdHasBeenSet = false;
245 bool m_knowledgeBaseArnHasBeenSet = false;
246 bool m_importJobTypeHasBeenSet = false;
247 bool m_statusHasBeenSet = false;
248 bool m_createdTimeHasBeenSet = false;
249 bool m_lastModifiedTimeHasBeenSet = false;
250 bool m_metadataHasBeenSet = false;
251 bool m_externalSourceConfigurationHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace QConnect
256} // namespace Aws
ImportJobSummary & WithCreatedTime(CreatedTimeT &&value)
ImportJobSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetStatus(ImportJobStatus value)
const Aws::Utils::DateTime & GetCreatedTime() const
ImportJobSummary & WithStatus(ImportJobStatus value)
const Aws::String & GetKnowledgeBaseArn() const
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
void SetImportJobId(ImportJobIdT &&value)
ImportJobSummary & WithImportJobId(ImportJobIdT &&value)
AWS_QCONNECT_API ImportJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
ImportJobSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AWS_QCONNECT_API ImportJobSummary()=default
ImportJobSummary & WithImportJobType(ImportJobType value)
ImportJobSummary & WithExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
const Aws::String & GetKnowledgeBaseId() const
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ImportJobSummary & WithMetadata(MetadataT &&value)
ImportJobSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
ImportJobSummary & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
const Aws::String & GetUploadId() const
void SetCreatedTime(CreatedTimeT &&value)
ImportJobSummary & WithUploadId(UploadIdT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetImportJobId() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetImportJobType(ImportJobType value)
AWS_QCONNECT_API ImportJobSummary(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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