7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/model/ImportJobStatus.h>
10#include <aws/mailmanager/model/ImportDataFormat.h>
11#include <aws/core/utils/DateTime.h>
49 template<
typename JobIdT = Aws::String>
50 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet =
true; m_jobId = std::forward<JobIdT>(value); }
51 template<
typename JobIdT = Aws::String>
61 template<
typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
63 template<
typename NameT = Aws::String>
83 template<
typename PreSignedUrlT = Aws::String>
84 void SetPreSignedUrl(PreSignedUrlT&& value) { m_preSignedUrlHasBeenSet =
true; m_preSignedUrl = std::forward<PreSignedUrlT>(value); }
85 template<
typename PreSignedUrlT = Aws::String>
96 inline void SetImportedItemsCount(
int value) { m_importedItemsCountHasBeenSet =
true; m_importedItemsCount = value; }
107 inline void SetFailedItemsCount(
int value) { m_failedItemsCountHasBeenSet =
true; m_failedItemsCount = value; }
117 template<
typename ImportDataFormatT = ImportDataFormat>
118 void SetImportDataFormat(ImportDataFormatT&& value) { m_importDataFormatHasBeenSet =
true; m_importDataFormat = std::forward<ImportDataFormatT>(value); }
119 template<
typename ImportDataFormatT = ImportDataFormat>
129 template<
typename AddressListIdT = Aws::String>
130 void SetAddressListId(AddressListIdT&& value) { m_addressListIdHasBeenSet =
true; m_addressListId = std::forward<AddressListIdT>(value); }
131 template<
typename AddressListIdT = Aws::String>
141 template<
typename CreatedTimestampT = Aws::Utils::DateTime>
142 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet =
true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
143 template<
typename CreatedTimestampT = Aws::Utils::DateTime>
153 template<
typename StartTimestampT = Aws::Utils::DateTime>
154 void SetStartTimestamp(StartTimestampT&& value) { m_startTimestampHasBeenSet =
true; m_startTimestamp = std::forward<StartTimestampT>(value); }
155 template<
typename StartTimestampT = Aws::Utils::DateTime>
165 template<
typename CompletedTimestampT = Aws::Utils::DateTime>
166 void SetCompletedTimestamp(CompletedTimestampT&& value) { m_completedTimestampHasBeenSet =
true; m_completedTimestamp = std::forward<CompletedTimestampT>(value); }
167 template<
typename CompletedTimestampT = Aws::Utils::DateTime>
177 template<
typename ErrorT = Aws::String>
178 void SetError(ErrorT&& value) { m_errorHasBeenSet =
true; m_error = std::forward<ErrorT>(value); }
179 template<
typename ErrorT = Aws::String>
185 bool m_jobIdHasBeenSet =
false;
188 bool m_nameHasBeenSet =
false;
191 bool m_statusHasBeenSet =
false;
194 bool m_preSignedUrlHasBeenSet =
false;
196 int m_importedItemsCount{0};
197 bool m_importedItemsCountHasBeenSet =
false;
199 int m_failedItemsCount{0};
200 bool m_failedItemsCountHasBeenSet =
false;
202 ImportDataFormat m_importDataFormat;
203 bool m_importDataFormatHasBeenSet =
false;
206 bool m_addressListIdHasBeenSet =
false;
209 bool m_createdTimestampHasBeenSet =
false;
212 bool m_startTimestampHasBeenSet =
false;
215 bool m_completedTimestampHasBeenSet =
false;
218 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