AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ImportJob.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/ImportDataFormat.h>
11#include <aws/mailmanager/model/ImportJobStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MailManager {
23namespace Model {
24
30class ImportJob {
31 public:
32 AWS_MAILMANAGER_API ImportJob() = default;
33 AWS_MAILMANAGER_API ImportJob(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MAILMANAGER_API ImportJob& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetJobId() const { return m_jobId; }
42 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
43 template <typename JobIdT = Aws::String>
44 void SetJobId(JobIdT&& value) {
45 m_jobIdHasBeenSet = true;
46 m_jobId = std::forward<JobIdT>(value);
47 }
48 template <typename JobIdT = Aws::String>
49 ImportJob& WithJobId(JobIdT&& value) {
50 SetJobId(std::forward<JobIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 ImportJob& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline ImportJobStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(ImportJobStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetPreSignedUrl() const { return m_preSignedUrl; }
94 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
95 template <typename PreSignedUrlT = Aws::String>
96 void SetPreSignedUrl(PreSignedUrlT&& value) {
97 m_preSignedUrlHasBeenSet = true;
98 m_preSignedUrl = std::forward<PreSignedUrlT>(value);
99 }
100 template <typename PreSignedUrlT = Aws::String>
101 ImportJob& WithPreSignedUrl(PreSignedUrlT&& value) {
102 SetPreSignedUrl(std::forward<PreSignedUrlT>(value));
103 return *this;
104 }
106
108
112 inline int GetImportedItemsCount() const { return m_importedItemsCount; }
113 inline bool ImportedItemsCountHasBeenSet() const { return m_importedItemsCountHasBeenSet; }
114 inline void SetImportedItemsCount(int value) {
115 m_importedItemsCountHasBeenSet = true;
116 m_importedItemsCount = value;
117 }
120 return *this;
121 }
123
125
129 inline int GetFailedItemsCount() const { return m_failedItemsCount; }
130 inline bool FailedItemsCountHasBeenSet() const { return m_failedItemsCountHasBeenSet; }
131 inline void SetFailedItemsCount(int value) {
132 m_failedItemsCountHasBeenSet = true;
133 m_failedItemsCount = value;
134 }
135 inline ImportJob& WithFailedItemsCount(int value) {
136 SetFailedItemsCount(value);
137 return *this;
138 }
140
142
145 inline const ImportDataFormat& GetImportDataFormat() const { return m_importDataFormat; }
146 inline bool ImportDataFormatHasBeenSet() const { return m_importDataFormatHasBeenSet; }
147 template <typename ImportDataFormatT = ImportDataFormat>
148 void SetImportDataFormat(ImportDataFormatT&& value) {
149 m_importDataFormatHasBeenSet = true;
150 m_importDataFormat = std::forward<ImportDataFormatT>(value);
151 }
152 template <typename ImportDataFormatT = ImportDataFormat>
153 ImportJob& WithImportDataFormat(ImportDataFormatT&& value) {
154 SetImportDataFormat(std::forward<ImportDataFormatT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetAddressListId() const { return m_addressListId; }
164 inline bool AddressListIdHasBeenSet() const { return m_addressListIdHasBeenSet; }
165 template <typename AddressListIdT = Aws::String>
166 void SetAddressListId(AddressListIdT&& value) {
167 m_addressListIdHasBeenSet = true;
168 m_addressListId = std::forward<AddressListIdT>(value);
169 }
170 template <typename AddressListIdT = Aws::String>
171 ImportJob& WithAddressListId(AddressListIdT&& value) {
172 SetAddressListId(std::forward<AddressListIdT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
182 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
183 template <typename CreatedTimestampT = Aws::Utils::DateTime>
184 void SetCreatedTimestamp(CreatedTimestampT&& value) {
185 m_createdTimestampHasBeenSet = true;
186 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
187 }
188 template <typename CreatedTimestampT = Aws::Utils::DateTime>
189 ImportJob& WithCreatedTimestamp(CreatedTimestampT&& value) {
190 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
200 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
201 template <typename StartTimestampT = Aws::Utils::DateTime>
202 void SetStartTimestamp(StartTimestampT&& value) {
203 m_startTimestampHasBeenSet = true;
204 m_startTimestamp = std::forward<StartTimestampT>(value);
205 }
206 template <typename StartTimestampT = Aws::Utils::DateTime>
207 ImportJob& WithStartTimestamp(StartTimestampT&& value) {
208 SetStartTimestamp(std::forward<StartTimestampT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const { return m_completedTimestamp; }
218 inline bool CompletedTimestampHasBeenSet() const { return m_completedTimestampHasBeenSet; }
219 template <typename CompletedTimestampT = Aws::Utils::DateTime>
220 void SetCompletedTimestamp(CompletedTimestampT&& value) {
221 m_completedTimestampHasBeenSet = true;
222 m_completedTimestamp = std::forward<CompletedTimestampT>(value);
223 }
224 template <typename CompletedTimestampT = Aws::Utils::DateTime>
225 ImportJob& WithCompletedTimestamp(CompletedTimestampT&& value) {
226 SetCompletedTimestamp(std::forward<CompletedTimestampT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::String& GetError() const { return m_error; }
236 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
237 template <typename ErrorT = Aws::String>
238 void SetError(ErrorT&& value) {
239 m_errorHasBeenSet = true;
240 m_error = std::forward<ErrorT>(value);
241 }
242 template <typename ErrorT = Aws::String>
243 ImportJob& WithError(ErrorT&& value) {
244 SetError(std::forward<ErrorT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_jobId;
250
251 Aws::String m_name;
252
254
255 Aws::String m_preSignedUrl;
256
257 int m_importedItemsCount{0};
258
259 int m_failedItemsCount{0};
260
261 ImportDataFormat m_importDataFormat;
262
263 Aws::String m_addressListId;
264
265 Aws::Utils::DateTime m_createdTimestamp{};
266
267 Aws::Utils::DateTime m_startTimestamp{};
268
269 Aws::Utils::DateTime m_completedTimestamp{};
270
271 Aws::String m_error;
272 bool m_jobIdHasBeenSet = false;
273 bool m_nameHasBeenSet = false;
274 bool m_statusHasBeenSet = false;
275 bool m_preSignedUrlHasBeenSet = false;
276 bool m_importedItemsCountHasBeenSet = false;
277 bool m_failedItemsCountHasBeenSet = false;
278 bool m_importDataFormatHasBeenSet = false;
279 bool m_addressListIdHasBeenSet = false;
280 bool m_createdTimestampHasBeenSet = false;
281 bool m_startTimestampHasBeenSet = false;
282 bool m_completedTimestampHasBeenSet = false;
283 bool m_errorHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace MailManager
288} // namespace Aws
void SetName(NameT &&value)
Definition ImportJob.h:62
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(ImportJobStatus value)
Definition ImportJob.h:79
ImportJob & WithAddressListId(AddressListIdT &&value)
Definition ImportJob.h:171
void SetError(ErrorT &&value)
Definition ImportJob.h:238
AWS_MAILMANAGER_API ImportJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImportDataFormat(ImportDataFormatT &&value)
Definition ImportJob.h:148
const Aws::Utils::DateTime & GetStartTimestamp() const
Definition ImportJob.h:199
void SetAddressListId(AddressListIdT &&value)
Definition ImportJob.h:166
ImportJob & WithImportedItemsCount(int value)
Definition ImportJob.h:118
const Aws::String & GetName() const
Definition ImportJob.h:59
ImportJob & WithPreSignedUrl(PreSignedUrlT &&value)
Definition ImportJob.h:101
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition ImportJob.h:181
const ImportDataFormat & GetImportDataFormat() const
Definition ImportJob.h:145
ImportJob & WithCompletedTimestamp(CompletedTimestampT &&value)
Definition ImportJob.h:225
void SetCompletedTimestamp(CompletedTimestampT &&value)
Definition ImportJob.h:220
void SetPreSignedUrl(PreSignedUrlT &&value)
Definition ImportJob.h:96
const Aws::String & GetPreSignedUrl() const
Definition ImportJob.h:93
ImportJob & WithName(NameT &&value)
Definition ImportJob.h:67
void SetStartTimestamp(StartTimestampT &&value)
Definition ImportJob.h:202
AWS_MAILMANAGER_API ImportJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressListId() const
Definition ImportJob.h:163
const Aws::Utils::DateTime & GetCompletedTimestamp() const
Definition ImportJob.h:217
ImportJob & WithError(ErrorT &&value)
Definition ImportJob.h:243
const Aws::String & GetJobId() const
Definition ImportJob.h:41
ImportJob & WithStatus(ImportJobStatus value)
Definition ImportJob.h:83
const Aws::String & GetError() const
Definition ImportJob.h:235
void SetImportedItemsCount(int value)
Definition ImportJob.h:114
ImportJob & WithJobId(JobIdT &&value)
Definition ImportJob.h:49
ImportJobStatus GetStatus() const
Definition ImportJob.h:77
void SetJobId(JobIdT &&value)
Definition ImportJob.h:44
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition ImportJob.h:184
ImportJob & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition ImportJob.h:189
ImportJob & WithStartTimestamp(StartTimestampT &&value)
Definition ImportJob.h:207
AWS_MAILMANAGER_API ImportJob()=default
ImportJob & WithFailedItemsCount(int value)
Definition ImportJob.h:135
ImportJob & WithImportDataFormat(ImportDataFormatT &&value)
Definition ImportJob.h:153
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue