AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportJobResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/ImportJobResource.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/pinpoint/model/JobStatus.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 Pinpoint
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_PINPOINT_API ImportJobResponse();
41 AWS_PINPOINT_API ImportJobResponse(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
52 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
53 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
54 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
55 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
56 inline ImportJobResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
57 inline ImportJobResponse& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
58 inline ImportJobResponse& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
60
62
66 inline int GetCompletedPieces() const{ return m_completedPieces; }
67 inline bool CompletedPiecesHasBeenSet() const { return m_completedPiecesHasBeenSet; }
68 inline void SetCompletedPieces(int value) { m_completedPiecesHasBeenSet = true; m_completedPieces = value; }
69 inline ImportJobResponse& WithCompletedPieces(int value) { SetCompletedPieces(value); return *this;}
71
73
76 inline const Aws::String& GetCompletionDate() const{ return m_completionDate; }
77 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
78 inline void SetCompletionDate(const Aws::String& value) { m_completionDateHasBeenSet = true; m_completionDate = value; }
79 inline void SetCompletionDate(Aws::String&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::move(value); }
80 inline void SetCompletionDate(const char* value) { m_completionDateHasBeenSet = true; m_completionDate.assign(value); }
81 inline ImportJobResponse& WithCompletionDate(const Aws::String& value) { SetCompletionDate(value); return *this;}
82 inline ImportJobResponse& WithCompletionDate(Aws::String&& value) { SetCompletionDate(std::move(value)); return *this;}
83 inline ImportJobResponse& WithCompletionDate(const char* value) { SetCompletionDate(value); return *this;}
85
87
90 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
91 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
92 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
93 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
94 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
95 inline ImportJobResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
96 inline ImportJobResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
97 inline ImportJobResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
99
101
104 inline const ImportJobResource& GetDefinition() const{ return m_definition; }
105 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
106 inline void SetDefinition(const ImportJobResource& value) { m_definitionHasBeenSet = true; m_definition = value; }
107 inline void SetDefinition(ImportJobResource&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
108 inline ImportJobResponse& WithDefinition(const ImportJobResource& value) { SetDefinition(value); return *this;}
109 inline ImportJobResponse& WithDefinition(ImportJobResource&& value) { SetDefinition(std::move(value)); return *this;}
111
113
117 inline int GetFailedPieces() const{ return m_failedPieces; }
118 inline bool FailedPiecesHasBeenSet() const { return m_failedPiecesHasBeenSet; }
119 inline void SetFailedPieces(int value) { m_failedPiecesHasBeenSet = true; m_failedPieces = value; }
120 inline ImportJobResponse& WithFailedPieces(int value) { SetFailedPieces(value); return *this;}
122
124
128 inline const Aws::Vector<Aws::String>& GetFailures() const{ return m_failures; }
129 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
130 inline void SetFailures(const Aws::Vector<Aws::String>& value) { m_failuresHasBeenSet = true; m_failures = value; }
131 inline void SetFailures(Aws::Vector<Aws::String>&& value) { m_failuresHasBeenSet = true; m_failures = std::move(value); }
132 inline ImportJobResponse& WithFailures(const Aws::Vector<Aws::String>& value) { SetFailures(value); return *this;}
133 inline ImportJobResponse& WithFailures(Aws::Vector<Aws::String>&& value) { SetFailures(std::move(value)); return *this;}
134 inline ImportJobResponse& AddFailures(const Aws::String& value) { m_failuresHasBeenSet = true; m_failures.push_back(value); return *this; }
135 inline ImportJobResponse& AddFailures(Aws::String&& value) { m_failuresHasBeenSet = true; m_failures.push_back(std::move(value)); return *this; }
136 inline ImportJobResponse& AddFailures(const char* value) { m_failuresHasBeenSet = true; m_failures.push_back(value); return *this; }
138
140
143 inline const Aws::String& GetId() const{ return m_id; }
144 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
145 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
146 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
147 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
148 inline ImportJobResponse& WithId(const Aws::String& value) { SetId(value); return *this;}
149 inline ImportJobResponse& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
150 inline ImportJobResponse& WithId(const char* value) { SetId(value); return *this;}
152
154
158 inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
159 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
160 inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
161 inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
162 inline ImportJobResponse& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
163 inline ImportJobResponse& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
165
167
172 inline int GetTotalFailures() const{ return m_totalFailures; }
173 inline bool TotalFailuresHasBeenSet() const { return m_totalFailuresHasBeenSet; }
174 inline void SetTotalFailures(int value) { m_totalFailuresHasBeenSet = true; m_totalFailures = value; }
175 inline ImportJobResponse& WithTotalFailures(int value) { SetTotalFailures(value); return *this;}
177
179
184 inline int GetTotalPieces() const{ return m_totalPieces; }
185 inline bool TotalPiecesHasBeenSet() const { return m_totalPiecesHasBeenSet; }
186 inline void SetTotalPieces(int value) { m_totalPiecesHasBeenSet = true; m_totalPieces = value; }
187 inline ImportJobResponse& WithTotalPieces(int value) { SetTotalPieces(value); return *this;}
189
191
195 inline int GetTotalProcessed() const{ return m_totalProcessed; }
196 inline bool TotalProcessedHasBeenSet() const { return m_totalProcessedHasBeenSet; }
197 inline void SetTotalProcessed(int value) { m_totalProcessedHasBeenSet = true; m_totalProcessed = value; }
198 inline ImportJobResponse& WithTotalProcessed(int value) { SetTotalProcessed(value); return *this;}
200
202
205 inline const Aws::String& GetType() const{ return m_type; }
206 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
207 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
208 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
209 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
210 inline ImportJobResponse& WithType(const Aws::String& value) { SetType(value); return *this;}
211 inline ImportJobResponse& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
212 inline ImportJobResponse& WithType(const char* value) { SetType(value); return *this;}
214 private:
215
216 Aws::String m_applicationId;
217 bool m_applicationIdHasBeenSet = false;
218
219 int m_completedPieces;
220 bool m_completedPiecesHasBeenSet = false;
221
222 Aws::String m_completionDate;
223 bool m_completionDateHasBeenSet = false;
224
225 Aws::String m_creationDate;
226 bool m_creationDateHasBeenSet = false;
227
228 ImportJobResource m_definition;
229 bool m_definitionHasBeenSet = false;
230
231 int m_failedPieces;
232 bool m_failedPiecesHasBeenSet = false;
233
234 Aws::Vector<Aws::String> m_failures;
235 bool m_failuresHasBeenSet = false;
236
237 Aws::String m_id;
238 bool m_idHasBeenSet = false;
239
240 JobStatus m_jobStatus;
241 bool m_jobStatusHasBeenSet = false;
242
243 int m_totalFailures;
244 bool m_totalFailuresHasBeenSet = false;
245
246 int m_totalPieces;
247 bool m_totalPiecesHasBeenSet = false;
248
249 int m_totalProcessed;
250 bool m_totalProcessedHasBeenSet = false;
251
252 Aws::String m_type;
253 bool m_typeHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace Pinpoint
258} // namespace Aws
ImportJobResponse & AddFailures(const Aws::String &value)
void SetType(const Aws::String &value)
void SetCompletionDate(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
ImportJobResponse & WithApplicationId(const Aws::String &value)
void SetDefinition(const ImportJobResource &value)
ImportJobResponse & WithJobStatus(const JobStatus &value)
void SetCreationDate(Aws::String &&value)
void SetFailures(Aws::Vector< Aws::String > &&value)
void SetApplicationId(const Aws::String &value)
ImportJobResponse & WithType(Aws::String &&value)
const Aws::Vector< Aws::String > & GetFailures() const
ImportJobResponse & WithId(Aws::String &&value)
const ImportJobResource & GetDefinition() const
ImportJobResponse & WithDefinition(const ImportJobResource &value)
AWS_PINPOINT_API ImportJobResponse(Aws::Utils::Json::JsonView jsonValue)
ImportJobResponse & WithApplicationId(Aws::String &&value)
const Aws::String & GetApplicationId() const
ImportJobResponse & WithDefinition(ImportJobResource &&value)
ImportJobResponse & WithCompletionDate(const Aws::String &value)
ImportJobResponse & AddFailures(Aws::String &&value)
ImportJobResponse & AddFailures(const char *value)
void SetCompletionDate(Aws::String &&value)
ImportJobResponse & WithCompletionDate(Aws::String &&value)
void SetId(const Aws::String &value)
void SetCreationDate(const Aws::String &value)
ImportJobResponse & WithType(const Aws::String &value)
ImportJobResponse & WithCompletedPieces(int value)
ImportJobResponse & WithType(const char *value)
ImportJobResponse & WithTotalPieces(int value)
ImportJobResponse & WithId(const Aws::String &value)
ImportJobResponse & WithFailures(const Aws::Vector< Aws::String > &value)
void SetApplicationId(Aws::String &&value)
ImportJobResponse & WithCreationDate(Aws::String &&value)
ImportJobResponse & WithJobStatus(JobStatus &&value)
ImportJobResponse & WithTotalProcessed(int value)
void SetDefinition(ImportJobResource &&value)
ImportJobResponse & WithFailures(Aws::Vector< Aws::String > &&value)
ImportJobResponse & WithApplicationId(const char *value)
void SetJobStatus(const JobStatus &value)
ImportJobResponse & WithTotalFailures(int value)
ImportJobResponse & WithCreationDate(const Aws::String &value)
void SetFailures(const Aws::Vector< Aws::String > &value)
const Aws::String & GetCreationDate() const
ImportJobResponse & WithId(const char *value)
ImportJobResponse & WithCompletionDate(const char *value)
ImportJobResponse & WithFailedPieces(int value)
ImportJobResponse & WithCreationDate(const char *value)
AWS_PINPOINT_API ImportJobResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCompletionDate() 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