AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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/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 ImportJobSummary() = default;
35 AWS_CONNECTWISDOMSERVICE_API ImportJobSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTWISDOMSERVICE_API ImportJobSummary& 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 ImportJobSummary& WithCreatedTime(CreatedTimeT&& value) {
52 SetCreatedTime(std::forward<CreatedTimeT>(value));
53 return *this;
54 }
56
58
62 inline const ExternalSourceConfiguration& GetExternalSourceConfiguration() const { return m_externalSourceConfiguration; }
63 inline bool ExternalSourceConfigurationHasBeenSet() const { return m_externalSourceConfigurationHasBeenSet; }
64 template <typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
65 void SetExternalSourceConfiguration(ExternalSourceConfigurationT&& value) {
66 m_externalSourceConfigurationHasBeenSet = true;
67 m_externalSourceConfiguration = std::forward<ExternalSourceConfigurationT>(value);
68 }
69 template <typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
70 ImportJobSummary& WithExternalSourceConfiguration(ExternalSourceConfigurationT&& value) {
71 SetExternalSourceConfiguration(std::forward<ExternalSourceConfigurationT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetImportJobId() const { return m_importJobId; }
81 inline bool ImportJobIdHasBeenSet() const { return m_importJobIdHasBeenSet; }
82 template <typename ImportJobIdT = Aws::String>
83 void SetImportJobId(ImportJobIdT&& value) {
84 m_importJobIdHasBeenSet = true;
85 m_importJobId = std::forward<ImportJobIdT>(value);
86 }
87 template <typename ImportJobIdT = Aws::String>
88 ImportJobSummary& WithImportJobId(ImportJobIdT&& value) {
89 SetImportJobId(std::forward<ImportJobIdT>(value));
90 return *this;
91 }
93
95
98 inline ImportJobType GetImportJobType() const { return m_importJobType; }
99 inline bool ImportJobTypeHasBeenSet() const { return m_importJobTypeHasBeenSet; }
100 inline void SetImportJobType(ImportJobType value) {
101 m_importJobTypeHasBeenSet = true;
102 m_importJobType = value;
103 }
105 SetImportJobType(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
115 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
116 template <typename KnowledgeBaseArnT = Aws::String>
117 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
118 m_knowledgeBaseArnHasBeenSet = true;
119 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
120 }
121 template <typename KnowledgeBaseArnT = Aws::String>
122 ImportJobSummary& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
123 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
134 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
135 template <typename KnowledgeBaseIdT = Aws::String>
136 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
137 m_knowledgeBaseIdHasBeenSet = true;
138 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
139 }
140 template <typename KnowledgeBaseIdT = Aws::String>
141 ImportJobSummary& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
142 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
152 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
153 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
154 void SetLastModifiedTime(LastModifiedTimeT&& value) {
155 m_lastModifiedTimeHasBeenSet = true;
156 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
157 }
158 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
159 ImportJobSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
160 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
170 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
171 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
172 void SetMetadata(MetadataT&& value) {
173 m_metadataHasBeenSet = true;
174 m_metadata = std::forward<MetadataT>(value);
175 }
176 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
177 ImportJobSummary& WithMetadata(MetadataT&& value) {
178 SetMetadata(std::forward<MetadataT>(value));
179 return *this;
180 }
181 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
182 ImportJobSummary& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
183 m_metadataHasBeenSet = true;
184 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
185 return *this;
186 }
188
190
193 inline ImportJobStatus GetStatus() const { return m_status; }
194 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
195 inline void SetStatus(ImportJobStatus value) {
196 m_statusHasBeenSet = true;
197 m_status = value;
198 }
200 SetStatus(value);
201 return *this;
202 }
204
206
210 inline const Aws::String& GetUploadId() const { return m_uploadId; }
211 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
212 template <typename UploadIdT = Aws::String>
213 void SetUploadId(UploadIdT&& value) {
214 m_uploadIdHasBeenSet = true;
215 m_uploadId = std::forward<UploadIdT>(value);
216 }
217 template <typename UploadIdT = Aws::String>
218 ImportJobSummary& WithUploadId(UploadIdT&& value) {
219 SetUploadId(std::forward<UploadIdT>(value));
220 return *this;
221 }
223 private:
224 Aws::Utils::DateTime m_createdTime{};
225
226 ExternalSourceConfiguration m_externalSourceConfiguration;
227
228 Aws::String m_importJobId;
229
230 ImportJobType m_importJobType{ImportJobType::NOT_SET};
231
232 Aws::String m_knowledgeBaseArn;
233
234 Aws::String m_knowledgeBaseId;
235
236 Aws::Utils::DateTime m_lastModifiedTime{};
237
239
241
242 Aws::String m_uploadId;
243 bool m_createdTimeHasBeenSet = false;
244 bool m_externalSourceConfigurationHasBeenSet = false;
245 bool m_importJobIdHasBeenSet = false;
246 bool m_importJobTypeHasBeenSet = false;
247 bool m_knowledgeBaseArnHasBeenSet = false;
248 bool m_knowledgeBaseIdHasBeenSet = false;
249 bool m_lastModifiedTimeHasBeenSet = false;
250 bool m_metadataHasBeenSet = false;
251 bool m_statusHasBeenSet = false;
252 bool m_uploadIdHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace ConnectWisdomService
257} // namespace Aws
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
ImportJobSummary & WithUploadId(UploadIdT &&value)
AWS_CONNECTWISDOMSERVICE_API ImportJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ImportJobSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
ImportJobSummary & WithExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
ImportJobSummary & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ImportJobSummary & WithImportJobId(ImportJobIdT &&value)
AWS_CONNECTWISDOMSERVICE_API ImportJobSummary()=default
ImportJobSummary & WithStatus(ImportJobStatus value)
ImportJobSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
ImportJobSummary & WithCreatedTime(CreatedTimeT &&value)
AWS_CONNECTWISDOMSERVICE_API ImportJobSummary(Aws::Utils::Json::JsonView jsonValue)
ImportJobSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
ImportJobSummary & WithImportJobType(ImportJobType value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ImportJobSummary & WithMetadata(MetadataT &&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