AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImportJob.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MailManager
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MAILMANAGER_API ImportJob() = default;
38 AWS_MAILMANAGER_API ImportJob(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API ImportJob& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetJobId() const { return m_jobId; }
48 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
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>
52 ImportJob& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 ImportJob& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline ImportJobStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(ImportJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
74 inline ImportJob& WithStatus(ImportJobStatus value) { SetStatus(value); return *this;}
76
78
81 inline const Aws::String& GetPreSignedUrl() const { return m_preSignedUrl; }
82 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
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>
86 ImportJob& WithPreSignedUrl(PreSignedUrlT&& value) { SetPreSignedUrl(std::forward<PreSignedUrlT>(value)); return *this;}
88
90
94 inline int GetImportedItemsCount() const { return m_importedItemsCount; }
95 inline bool ImportedItemsCountHasBeenSet() const { return m_importedItemsCountHasBeenSet; }
96 inline void SetImportedItemsCount(int value) { m_importedItemsCountHasBeenSet = true; m_importedItemsCount = value; }
97 inline ImportJob& WithImportedItemsCount(int value) { SetImportedItemsCount(value); return *this;}
99
101
105 inline int GetFailedItemsCount() const { return m_failedItemsCount; }
106 inline bool FailedItemsCountHasBeenSet() const { return m_failedItemsCountHasBeenSet; }
107 inline void SetFailedItemsCount(int value) { m_failedItemsCountHasBeenSet = true; m_failedItemsCount = value; }
108 inline ImportJob& WithFailedItemsCount(int value) { SetFailedItemsCount(value); return *this;}
110
112
115 inline const ImportDataFormat& GetImportDataFormat() const { return m_importDataFormat; }
116 inline bool ImportDataFormatHasBeenSet() const { return m_importDataFormatHasBeenSet; }
117 template<typename ImportDataFormatT = ImportDataFormat>
118 void SetImportDataFormat(ImportDataFormatT&& value) { m_importDataFormatHasBeenSet = true; m_importDataFormat = std::forward<ImportDataFormatT>(value); }
119 template<typename ImportDataFormatT = ImportDataFormat>
120 ImportJob& WithImportDataFormat(ImportDataFormatT&& value) { SetImportDataFormat(std::forward<ImportDataFormatT>(value)); return *this;}
122
124
127 inline const Aws::String& GetAddressListId() const { return m_addressListId; }
128 inline bool AddressListIdHasBeenSet() const { return m_addressListIdHasBeenSet; }
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>
132 ImportJob& WithAddressListId(AddressListIdT&& value) { SetAddressListId(std::forward<AddressListIdT>(value)); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
140 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
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>
144 ImportJob& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
152 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
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>
156 ImportJob& WithStartTimestamp(StartTimestampT&& value) { SetStartTimestamp(std::forward<StartTimestampT>(value)); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const { return m_completedTimestamp; }
164 inline bool CompletedTimestampHasBeenSet() const { return m_completedTimestampHasBeenSet; }
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>
168 ImportJob& WithCompletedTimestamp(CompletedTimestampT&& value) { SetCompletedTimestamp(std::forward<CompletedTimestampT>(value)); return *this;}
170
172
175 inline const Aws::String& GetError() const { return m_error; }
176 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
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>
180 ImportJob& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
182 private:
183
184 Aws::String m_jobId;
185 bool m_jobIdHasBeenSet = false;
186
187 Aws::String m_name;
188 bool m_nameHasBeenSet = false;
189
191 bool m_statusHasBeenSet = false;
192
193 Aws::String m_preSignedUrl;
194 bool m_preSignedUrlHasBeenSet = false;
195
196 int m_importedItemsCount{0};
197 bool m_importedItemsCountHasBeenSet = false;
198
199 int m_failedItemsCount{0};
200 bool m_failedItemsCountHasBeenSet = false;
201
202 ImportDataFormat m_importDataFormat;
203 bool m_importDataFormatHasBeenSet = false;
204
205 Aws::String m_addressListId;
206 bool m_addressListIdHasBeenSet = false;
207
208 Aws::Utils::DateTime m_createdTimestamp{};
209 bool m_createdTimestampHasBeenSet = false;
210
211 Aws::Utils::DateTime m_startTimestamp{};
212 bool m_startTimestampHasBeenSet = false;
213
214 Aws::Utils::DateTime m_completedTimestamp{};
215 bool m_completedTimestampHasBeenSet = false;
216
217 Aws::String m_error;
218 bool m_errorHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace MailManager
223} // 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:73
ImportJob & WithAddressListId(AddressListIdT &&value)
Definition ImportJob.h:132
void SetError(ErrorT &&value)
Definition ImportJob.h:178
AWS_MAILMANAGER_API ImportJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImportDataFormat(ImportDataFormatT &&value)
Definition ImportJob.h:118
const Aws::Utils::DateTime & GetStartTimestamp() const
Definition ImportJob.h:151
void SetAddressListId(AddressListIdT &&value)
Definition ImportJob.h:130
ImportJob & WithImportedItemsCount(int value)
Definition ImportJob.h:97
const Aws::String & GetName() const
Definition ImportJob.h:59
ImportJob & WithPreSignedUrl(PreSignedUrlT &&value)
Definition ImportJob.h:86
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition ImportJob.h:139
const ImportDataFormat & GetImportDataFormat() const
Definition ImportJob.h:115
ImportJob & WithCompletedTimestamp(CompletedTimestampT &&value)
Definition ImportJob.h:168
void SetCompletedTimestamp(CompletedTimestampT &&value)
Definition ImportJob.h:166
void SetPreSignedUrl(PreSignedUrlT &&value)
Definition ImportJob.h:84
const Aws::String & GetPreSignedUrl() const
Definition ImportJob.h:81
ImportJob & WithName(NameT &&value)
Definition ImportJob.h:64
void SetStartTimestamp(StartTimestampT &&value)
Definition ImportJob.h:154
AWS_MAILMANAGER_API ImportJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressListId() const
Definition ImportJob.h:127
const Aws::Utils::DateTime & GetCompletedTimestamp() const
Definition ImportJob.h:163
ImportJob & WithError(ErrorT &&value)
Definition ImportJob.h:180
const Aws::String & GetJobId() const
Definition ImportJob.h:47
bool ImportedItemsCountHasBeenSet() const
Definition ImportJob.h:95
ImportJob & WithStatus(ImportJobStatus value)
Definition ImportJob.h:74
const Aws::String & GetError() const
Definition ImportJob.h:175
void SetImportedItemsCount(int value)
Definition ImportJob.h:96
ImportJob & WithJobId(JobIdT &&value)
Definition ImportJob.h:52
ImportJobStatus GetStatus() const
Definition ImportJob.h:71
void SetJobId(JobIdT &&value)
Definition ImportJob.h:50
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition ImportJob.h:142
ImportJob & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition ImportJob.h:144
ImportJob & WithStartTimestamp(StartTimestampT &&value)
Definition ImportJob.h:156
AWS_MAILMANAGER_API ImportJob()=default
ImportJob & WithFailedItemsCount(int value)
Definition ImportJob.h:108
ImportJob & WithImportDataFormat(ImportDataFormatT &&value)
Definition ImportJob.h:120
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue