AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
ImportJobResponse.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/ImportJobResource.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
34 public:
35 AWS_PINPOINT_API ImportJobResponse() = default;
36 AWS_PINPOINT_API ImportJobResponse(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
46 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
47 template <typename ApplicationIdT = Aws::String>
48 void SetApplicationId(ApplicationIdT&& value) {
49 m_applicationIdHasBeenSet = true;
50 m_applicationId = std::forward<ApplicationIdT>(value);
51 }
52 template <typename ApplicationIdT = Aws::String>
53 ImportJobResponse& WithApplicationId(ApplicationIdT&& value) {
54 SetApplicationId(std::forward<ApplicationIdT>(value));
55 return *this;
56 }
58
60
64 inline int GetCompletedPieces() const { return m_completedPieces; }
65 inline bool CompletedPiecesHasBeenSet() const { return m_completedPiecesHasBeenSet; }
66 inline void SetCompletedPieces(int value) {
67 m_completedPiecesHasBeenSet = true;
68 m_completedPieces = value;
69 }
71 SetCompletedPieces(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetCompletionDate() const { return m_completionDate; }
81 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
82 template <typename CompletionDateT = Aws::String>
83 void SetCompletionDate(CompletionDateT&& value) {
84 m_completionDateHasBeenSet = true;
85 m_completionDate = std::forward<CompletionDateT>(value);
86 }
87 template <typename CompletionDateT = Aws::String>
88 ImportJobResponse& WithCompletionDate(CompletionDateT&& value) {
89 SetCompletionDate(std::forward<CompletionDateT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
99 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
100 template <typename CreationDateT = Aws::String>
101 void SetCreationDate(CreationDateT&& value) {
102 m_creationDateHasBeenSet = true;
103 m_creationDate = std::forward<CreationDateT>(value);
104 }
105 template <typename CreationDateT = Aws::String>
106 ImportJobResponse& WithCreationDate(CreationDateT&& value) {
107 SetCreationDate(std::forward<CreationDateT>(value));
108 return *this;
109 }
111
113
116 inline const ImportJobResource& GetDefinition() const { return m_definition; }
117 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
118 template <typename DefinitionT = ImportJobResource>
119 void SetDefinition(DefinitionT&& value) {
120 m_definitionHasBeenSet = true;
121 m_definition = std::forward<DefinitionT>(value);
122 }
123 template <typename DefinitionT = ImportJobResource>
124 ImportJobResponse& WithDefinition(DefinitionT&& value) {
125 SetDefinition(std::forward<DefinitionT>(value));
126 return *this;
127 }
129
131
135 inline int GetFailedPieces() const { return m_failedPieces; }
136 inline bool FailedPiecesHasBeenSet() const { return m_failedPiecesHasBeenSet; }
137 inline void SetFailedPieces(int value) {
138 m_failedPiecesHasBeenSet = true;
139 m_failedPieces = value;
140 }
142 SetFailedPieces(value);
143 return *this;
144 }
146
148
152 inline const Aws::Vector<Aws::String>& GetFailures() const { return m_failures; }
153 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
154 template <typename FailuresT = Aws::Vector<Aws::String>>
155 void SetFailures(FailuresT&& value) {
156 m_failuresHasBeenSet = true;
157 m_failures = std::forward<FailuresT>(value);
158 }
159 template <typename FailuresT = Aws::Vector<Aws::String>>
160 ImportJobResponse& WithFailures(FailuresT&& value) {
161 SetFailures(std::forward<FailuresT>(value));
162 return *this;
163 }
164 template <typename FailuresT = Aws::String>
165 ImportJobResponse& AddFailures(FailuresT&& value) {
166 m_failuresHasBeenSet = true;
167 m_failures.emplace_back(std::forward<FailuresT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetId() const { return m_id; }
177 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
178 template <typename IdT = Aws::String>
179 void SetId(IdT&& value) {
180 m_idHasBeenSet = true;
181 m_id = std::forward<IdT>(value);
182 }
183 template <typename IdT = Aws::String>
184 ImportJobResponse& WithId(IdT&& value) {
185 SetId(std::forward<IdT>(value));
186 return *this;
187 }
189
191
195 inline JobStatus GetJobStatus() const { return m_jobStatus; }
196 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
197 inline void SetJobStatus(JobStatus value) {
198 m_jobStatusHasBeenSet = true;
199 m_jobStatus = value;
200 }
202 SetJobStatus(value);
203 return *this;
204 }
206
208
213 inline int GetTotalFailures() const { return m_totalFailures; }
214 inline bool TotalFailuresHasBeenSet() const { return m_totalFailuresHasBeenSet; }
215 inline void SetTotalFailures(int value) {
216 m_totalFailuresHasBeenSet = true;
217 m_totalFailures = value;
218 }
220 SetTotalFailures(value);
221 return *this;
222 }
224
226
231 inline int GetTotalPieces() const { return m_totalPieces; }
232 inline bool TotalPiecesHasBeenSet() const { return m_totalPiecesHasBeenSet; }
233 inline void SetTotalPieces(int value) {
234 m_totalPiecesHasBeenSet = true;
235 m_totalPieces = value;
236 }
238 SetTotalPieces(value);
239 return *this;
240 }
242
244
248 inline int GetTotalProcessed() const { return m_totalProcessed; }
249 inline bool TotalProcessedHasBeenSet() const { return m_totalProcessedHasBeenSet; }
250 inline void SetTotalProcessed(int value) {
251 m_totalProcessedHasBeenSet = true;
252 m_totalProcessed = value;
253 }
255 SetTotalProcessed(value);
256 return *this;
257 }
259
261
264 inline const Aws::String& GetType() const { return m_type; }
265 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
266 template <typename TypeT = Aws::String>
267 void SetType(TypeT&& value) {
268 m_typeHasBeenSet = true;
269 m_type = std::forward<TypeT>(value);
270 }
271 template <typename TypeT = Aws::String>
272 ImportJobResponse& WithType(TypeT&& value) {
273 SetType(std::forward<TypeT>(value));
274 return *this;
275 }
277 private:
278 Aws::String m_applicationId;
279 bool m_applicationIdHasBeenSet = false;
280
281 int m_completedPieces{0};
282 bool m_completedPiecesHasBeenSet = false;
283
284 Aws::String m_completionDate;
285 bool m_completionDateHasBeenSet = false;
286
287 Aws::String m_creationDate;
288 bool m_creationDateHasBeenSet = false;
289
290 ImportJobResource m_definition;
291 bool m_definitionHasBeenSet = false;
292
293 int m_failedPieces{0};
294 bool m_failedPiecesHasBeenSet = false;
295
296 Aws::Vector<Aws::String> m_failures;
297 bool m_failuresHasBeenSet = false;
298
299 Aws::String m_id;
300 bool m_idHasBeenSet = false;
301
302 JobStatus m_jobStatus{JobStatus::NOT_SET};
303 bool m_jobStatusHasBeenSet = false;
304
305 int m_totalFailures{0};
306 bool m_totalFailuresHasBeenSet = false;
307
308 int m_totalPieces{0};
309 bool m_totalPiecesHasBeenSet = false;
310
311 int m_totalProcessed{0};
312 bool m_totalProcessedHasBeenSet = false;
313
314 Aws::String m_type;
315 bool m_typeHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace Pinpoint
320} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
ImportJobResponse & WithFailures(FailuresT &&value)
const Aws::Vector< Aws::String > & GetFailures() const
ImportJobResponse & WithJobStatus(JobStatus value)
const ImportJobResource & GetDefinition() const
AWS_PINPOINT_API ImportJobResponse(Aws::Utils::Json::JsonView jsonValue)
ImportJobResponse & WithCompletionDate(CompletionDateT &&value)
ImportJobResponse & WithId(IdT &&value)
const Aws::String & GetApplicationId() const
ImportJobResponse & AddFailures(FailuresT &&value)
void SetCompletionDate(CompletionDateT &&value)
AWS_PINPOINT_API ImportJobResponse()=default
ImportJobResponse & WithCompletedPieces(int value)
ImportJobResponse & WithTotalPieces(int value)
ImportJobResponse & WithType(TypeT &&value)
void SetCreationDate(CreationDateT &&value)
ImportJobResponse & WithTotalProcessed(int value)
ImportJobResponse & WithDefinition(DefinitionT &&value)
ImportJobResponse & WithTotalFailures(int value)
const Aws::String & GetCreationDate() const
ImportJobResponse & WithFailedPieces(int value)
AWS_PINPOINT_API ImportJobResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetApplicationId(ApplicationIdT &&value)
ImportJobResponse & WithCreationDate(CreationDateT &&value)
const Aws::String & GetCompletionDate() const
ImportJobResponse & WithApplicationId(ApplicationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue