AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ExportJobResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/ExportJobResource.h>
11#include <aws/pinpoint/model/JobStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint {
23namespace Model {
24
35 public:
36 AWS_PINPOINT_API ExportJobResponse() = default;
37 AWS_PINPOINT_API ExportJobResponse(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
47 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
48 template <typename ApplicationIdT = Aws::String>
49 void SetApplicationId(ApplicationIdT&& value) {
50 m_applicationIdHasBeenSet = true;
51 m_applicationId = std::forward<ApplicationIdT>(value);
52 }
53 template <typename ApplicationIdT = Aws::String>
54 ExportJobResponse& WithApplicationId(ApplicationIdT&& value) {
55 SetApplicationId(std::forward<ApplicationIdT>(value));
56 return *this;
57 }
59
61
65 inline int GetCompletedPieces() const { return m_completedPieces; }
66 inline bool CompletedPiecesHasBeenSet() const { return m_completedPiecesHasBeenSet; }
67 inline void SetCompletedPieces(int value) {
68 m_completedPiecesHasBeenSet = true;
69 m_completedPieces = value;
70 }
72 SetCompletedPieces(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetCompletionDate() const { return m_completionDate; }
82 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
83 template <typename CompletionDateT = Aws::String>
84 void SetCompletionDate(CompletionDateT&& value) {
85 m_completionDateHasBeenSet = true;
86 m_completionDate = std::forward<CompletionDateT>(value);
87 }
88 template <typename CompletionDateT = Aws::String>
89 ExportJobResponse& WithCompletionDate(CompletionDateT&& value) {
90 SetCompletionDate(std::forward<CompletionDateT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
100 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
101 template <typename CreationDateT = Aws::String>
102 void SetCreationDate(CreationDateT&& value) {
103 m_creationDateHasBeenSet = true;
104 m_creationDate = std::forward<CreationDateT>(value);
105 }
106 template <typename CreationDateT = Aws::String>
107 ExportJobResponse& WithCreationDate(CreationDateT&& value) {
108 SetCreationDate(std::forward<CreationDateT>(value));
109 return *this;
110 }
112
114
117 inline const ExportJobResource& GetDefinition() const { return m_definition; }
118 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
119 template <typename DefinitionT = ExportJobResource>
120 void SetDefinition(DefinitionT&& value) {
121 m_definitionHasBeenSet = true;
122 m_definition = std::forward<DefinitionT>(value);
123 }
124 template <typename DefinitionT = ExportJobResource>
125 ExportJobResponse& WithDefinition(DefinitionT&& value) {
126 SetDefinition(std::forward<DefinitionT>(value));
127 return *this;
128 }
130
132
136 inline int GetFailedPieces() const { return m_failedPieces; }
137 inline bool FailedPiecesHasBeenSet() const { return m_failedPiecesHasBeenSet; }
138 inline void SetFailedPieces(int value) {
139 m_failedPiecesHasBeenSet = true;
140 m_failedPieces = value;
141 }
143 SetFailedPieces(value);
144 return *this;
145 }
147
149
153 inline const Aws::Vector<Aws::String>& GetFailures() const { return m_failures; }
154 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
155 template <typename FailuresT = Aws::Vector<Aws::String>>
156 void SetFailures(FailuresT&& value) {
157 m_failuresHasBeenSet = true;
158 m_failures = std::forward<FailuresT>(value);
159 }
160 template <typename FailuresT = Aws::Vector<Aws::String>>
161 ExportJobResponse& WithFailures(FailuresT&& value) {
162 SetFailures(std::forward<FailuresT>(value));
163 return *this;
164 }
165 template <typename FailuresT = Aws::String>
166 ExportJobResponse& AddFailures(FailuresT&& value) {
167 m_failuresHasBeenSet = true;
168 m_failures.emplace_back(std::forward<FailuresT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetId() const { return m_id; }
178 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
179 template <typename IdT = Aws::String>
180 void SetId(IdT&& value) {
181 m_idHasBeenSet = true;
182 m_id = std::forward<IdT>(value);
183 }
184 template <typename IdT = Aws::String>
185 ExportJobResponse& WithId(IdT&& value) {
186 SetId(std::forward<IdT>(value));
187 return *this;
188 }
190
192
196 inline JobStatus GetJobStatus() const { return m_jobStatus; }
197 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
198 inline void SetJobStatus(JobStatus value) {
199 m_jobStatusHasBeenSet = true;
200 m_jobStatus = value;
201 }
203 SetJobStatus(value);
204 return *this;
205 }
207
209
214 inline int GetTotalFailures() const { return m_totalFailures; }
215 inline bool TotalFailuresHasBeenSet() const { return m_totalFailuresHasBeenSet; }
216 inline void SetTotalFailures(int value) {
217 m_totalFailuresHasBeenSet = true;
218 m_totalFailures = value;
219 }
221 SetTotalFailures(value);
222 return *this;
223 }
225
227
232 inline int GetTotalPieces() const { return m_totalPieces; }
233 inline bool TotalPiecesHasBeenSet() const { return m_totalPiecesHasBeenSet; }
234 inline void SetTotalPieces(int value) {
235 m_totalPiecesHasBeenSet = true;
236 m_totalPieces = value;
237 }
239 SetTotalPieces(value);
240 return *this;
241 }
243
245
249 inline int GetTotalProcessed() const { return m_totalProcessed; }
250 inline bool TotalProcessedHasBeenSet() const { return m_totalProcessedHasBeenSet; }
251 inline void SetTotalProcessed(int value) {
252 m_totalProcessedHasBeenSet = true;
253 m_totalProcessed = value;
254 }
256 SetTotalProcessed(value);
257 return *this;
258 }
260
262
265 inline const Aws::String& GetType() const { return m_type; }
266 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
267 template <typename TypeT = Aws::String>
268 void SetType(TypeT&& value) {
269 m_typeHasBeenSet = true;
270 m_type = std::forward<TypeT>(value);
271 }
272 template <typename TypeT = Aws::String>
273 ExportJobResponse& WithType(TypeT&& value) {
274 SetType(std::forward<TypeT>(value));
275 return *this;
276 }
278 private:
279 Aws::String m_applicationId;
280
281 int m_completedPieces{0};
282
283 Aws::String m_completionDate;
284
285 Aws::String m_creationDate;
286
287 ExportJobResource m_definition;
288
289 int m_failedPieces{0};
290
291 Aws::Vector<Aws::String> m_failures;
292
293 Aws::String m_id;
294
295 JobStatus m_jobStatus{JobStatus::NOT_SET};
296
297 int m_totalFailures{0};
298
299 int m_totalPieces{0};
300
301 int m_totalProcessed{0};
302
303 Aws::String m_type;
304 bool m_applicationIdHasBeenSet = false;
305 bool m_completedPiecesHasBeenSet = false;
306 bool m_completionDateHasBeenSet = false;
307 bool m_creationDateHasBeenSet = false;
308 bool m_definitionHasBeenSet = false;
309 bool m_failedPiecesHasBeenSet = false;
310 bool m_failuresHasBeenSet = false;
311 bool m_idHasBeenSet = false;
312 bool m_jobStatusHasBeenSet = false;
313 bool m_totalFailuresHasBeenSet = false;
314 bool m_totalPiecesHasBeenSet = false;
315 bool m_totalProcessedHasBeenSet = false;
316 bool m_typeHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace Pinpoint
321} // namespace Aws
ExportJobResponse & WithDefinition(DefinitionT &&value)
const Aws::String & GetCreationDate() const
const Aws::String & GetCompletionDate() const
ExportJobResponse & WithTotalFailures(int value)
ExportJobResponse & WithCompletionDate(CompletionDateT &&value)
ExportJobResponse & WithTotalProcessed(int value)
ExportJobResponse & AddFailures(FailuresT &&value)
AWS_PINPOINT_API ExportJobResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetApplicationId(ApplicationIdT &&value)
ExportJobResponse & WithFailures(FailuresT &&value)
void SetCompletionDate(CompletionDateT &&value)
ExportJobResponse & WithId(IdT &&value)
const ExportJobResource & GetDefinition() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
ExportJobResponse & WithFailedPieces(int value)
ExportJobResponse & WithType(TypeT &&value)
ExportJobResponse & WithJobStatus(JobStatus value)
ExportJobResponse & WithTotalPieces(int value)
void SetCreationDate(CreationDateT &&value)
AWS_PINPOINT_API ExportJobResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API ExportJobResponse()=default
ExportJobResponse & WithCompletedPieces(int value)
ExportJobResponse & WithCreationDate(CreationDateT &&value)
const Aws::String & GetApplicationId() const
ExportJobResponse & WithApplicationId(ApplicationIdT &&value)
const Aws::Vector< Aws::String > & GetFailures() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue