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>
22namespace MailManager {
43 template <
typename JobIdT = Aws::String>
45 m_jobIdHasBeenSet =
true;
46 m_jobId = std::forward<JobIdT>(value);
48 template <
typename JobIdT = Aws::String>
50 SetJobId(std::forward<JobIdT>(value));
61 template <
typename NameT = Aws::String>
63 m_nameHasBeenSet =
true;
64 m_name = std::forward<NameT>(value);
66 template <
typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
80 m_statusHasBeenSet =
true;
95 template <
typename PreSignedUrlT = Aws::String>
97 m_preSignedUrlHasBeenSet =
true;
98 m_preSignedUrl = std::forward<PreSignedUrlT>(value);
100 template <
typename PreSignedUrlT = Aws::String>
115 m_importedItemsCountHasBeenSet =
true;
116 m_importedItemsCount = value;
132 m_failedItemsCountHasBeenSet =
true;
133 m_failedItemsCount = value;
147 template <
typename ImportDataFormatT = ImportDataFormat>
149 m_importDataFormatHasBeenSet =
true;
150 m_importDataFormat = std::forward<ImportDataFormatT>(value);
152 template <
typename ImportDataFormatT = ImportDataFormat>
165 template <
typename AddressListIdT = Aws::String>
167 m_addressListIdHasBeenSet =
true;
168 m_addressListId = std::forward<AddressListIdT>(value);
170 template <
typename AddressListIdT = Aws::String>
183 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
185 m_createdTimestampHasBeenSet =
true;
186 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
188 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
201 template <
typename StartTimestampT = Aws::Utils::DateTime>
203 m_startTimestampHasBeenSet =
true;
204 m_startTimestamp = std::forward<StartTimestampT>(value);
206 template <
typename StartTimestampT = Aws::Utils::DateTime>
219 template <
typename CompletedTimestampT = Aws::Utils::DateTime>
221 m_completedTimestampHasBeenSet =
true;
222 m_completedTimestamp = std::forward<CompletedTimestampT>(value);
224 template <
typename CompletedTimestampT = Aws::Utils::DateTime>
237 template <
typename ErrorT = Aws::String>
239 m_errorHasBeenSet =
true;
240 m_error = std::forward<ErrorT>(value);
242 template <
typename ErrorT = Aws::String>
244 SetError(std::forward<ErrorT>(value));
257 int m_importedItemsCount{0};
259 int m_failedItemsCount{0};
261 ImportDataFormat m_importDataFormat;
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;
void SetName(NameT &&value)
bool FailedItemsCountHasBeenSet() const
bool AddressListIdHasBeenSet() const
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(ImportJobStatus value)
int GetFailedItemsCount() const
ImportJob & WithAddressListId(AddressListIdT &&value)
void SetError(ErrorT &&value)
bool CompletedTimestampHasBeenSet() const
AWS_MAILMANAGER_API ImportJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImportDataFormat(ImportDataFormatT &&value)
const Aws::Utils::DateTime & GetStartTimestamp() const
void SetAddressListId(AddressListIdT &&value)
bool CreatedTimestampHasBeenSet() const
ImportJob & WithImportedItemsCount(int value)
const Aws::String & GetName() const
ImportJob & WithPreSignedUrl(PreSignedUrlT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
const ImportDataFormat & GetImportDataFormat() const
ImportJob & WithCompletedTimestamp(CompletedTimestampT &&value)
int GetImportedItemsCount() const
void SetCompletedTimestamp(CompletedTimestampT &&value)
bool JobIdHasBeenSet() const
bool StatusHasBeenSet() const
void SetPreSignedUrl(PreSignedUrlT &&value)
bool ImportDataFormatHasBeenSet() const
const Aws::String & GetPreSignedUrl() const
ImportJob & WithName(NameT &&value)
void SetFailedItemsCount(int value)
void SetStartTimestamp(StartTimestampT &&value)
AWS_MAILMANAGER_API ImportJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressListId() const
bool NameHasBeenSet() const
const Aws::Utils::DateTime & GetCompletedTimestamp() const
ImportJob & WithError(ErrorT &&value)
const Aws::String & GetJobId() const
bool ImportedItemsCountHasBeenSet() const
ImportJob & WithStatus(ImportJobStatus value)
const Aws::String & GetError() const
void SetImportedItemsCount(int value)
ImportJob & WithJobId(JobIdT &&value)
ImportJobStatus GetStatus() const
void SetJobId(JobIdT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
ImportJob & WithCreatedTimestamp(CreatedTimestampT &&value)
ImportJob & WithStartTimestamp(StartTimestampT &&value)
bool ErrorHasBeenSet() const
bool StartTimestampHasBeenSet() const
bool PreSignedUrlHasBeenSet() const
AWS_MAILMANAGER_API ImportJob()=default
ImportJob & WithFailedItemsCount(int value)
ImportJob & WithImportDataFormat(ImportDataFormatT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue