AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExportJobResponse.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/ExportJobResource.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
39 {
40 public:
41 AWS_PINPOINT_API ExportJobResponse();
42 AWS_PINPOINT_API ExportJobResponse(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
53 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
54 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
55 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
56 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
57 inline ExportJobResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
58 inline ExportJobResponse& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
59 inline ExportJobResponse& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
61
63
67 inline int GetCompletedPieces() const{ return m_completedPieces; }
68 inline bool CompletedPiecesHasBeenSet() const { return m_completedPiecesHasBeenSet; }
69 inline void SetCompletedPieces(int value) { m_completedPiecesHasBeenSet = true; m_completedPieces = value; }
70 inline ExportJobResponse& WithCompletedPieces(int value) { SetCompletedPieces(value); return *this;}
72
74
77 inline const Aws::String& GetCompletionDate() const{ return m_completionDate; }
78 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
79 inline void SetCompletionDate(const Aws::String& value) { m_completionDateHasBeenSet = true; m_completionDate = value; }
80 inline void SetCompletionDate(Aws::String&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::move(value); }
81 inline void SetCompletionDate(const char* value) { m_completionDateHasBeenSet = true; m_completionDate.assign(value); }
82 inline ExportJobResponse& WithCompletionDate(const Aws::String& value) { SetCompletionDate(value); return *this;}
83 inline ExportJobResponse& WithCompletionDate(Aws::String&& value) { SetCompletionDate(std::move(value)); return *this;}
84 inline ExportJobResponse& WithCompletionDate(const char* value) { SetCompletionDate(value); return *this;}
86
88
91 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
92 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
93 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
94 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
95 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
96 inline ExportJobResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
97 inline ExportJobResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
98 inline ExportJobResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
100
102
105 inline const ExportJobResource& GetDefinition() const{ return m_definition; }
106 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
107 inline void SetDefinition(const ExportJobResource& value) { m_definitionHasBeenSet = true; m_definition = value; }
108 inline void SetDefinition(ExportJobResource&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
109 inline ExportJobResponse& WithDefinition(const ExportJobResource& value) { SetDefinition(value); return *this;}
110 inline ExportJobResponse& WithDefinition(ExportJobResource&& value) { SetDefinition(std::move(value)); return *this;}
112
114
118 inline int GetFailedPieces() const{ return m_failedPieces; }
119 inline bool FailedPiecesHasBeenSet() const { return m_failedPiecesHasBeenSet; }
120 inline void SetFailedPieces(int value) { m_failedPiecesHasBeenSet = true; m_failedPieces = value; }
121 inline ExportJobResponse& WithFailedPieces(int value) { SetFailedPieces(value); return *this;}
123
125
129 inline const Aws::Vector<Aws::String>& GetFailures() const{ return m_failures; }
130 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
131 inline void SetFailures(const Aws::Vector<Aws::String>& value) { m_failuresHasBeenSet = true; m_failures = value; }
132 inline void SetFailures(Aws::Vector<Aws::String>&& value) { m_failuresHasBeenSet = true; m_failures = std::move(value); }
133 inline ExportJobResponse& WithFailures(const Aws::Vector<Aws::String>& value) { SetFailures(value); return *this;}
134 inline ExportJobResponse& WithFailures(Aws::Vector<Aws::String>&& value) { SetFailures(std::move(value)); return *this;}
135 inline ExportJobResponse& AddFailures(const Aws::String& value) { m_failuresHasBeenSet = true; m_failures.push_back(value); return *this; }
136 inline ExportJobResponse& AddFailures(Aws::String&& value) { m_failuresHasBeenSet = true; m_failures.push_back(std::move(value)); return *this; }
137 inline ExportJobResponse& AddFailures(const char* value) { m_failuresHasBeenSet = true; m_failures.push_back(value); return *this; }
139
141
144 inline const Aws::String& GetId() const{ return m_id; }
145 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
146 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
147 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
148 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
149 inline ExportJobResponse& WithId(const Aws::String& value) { SetId(value); return *this;}
150 inline ExportJobResponse& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
151 inline ExportJobResponse& WithId(const char* value) { SetId(value); return *this;}
153
155
159 inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
160 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
161 inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
162 inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
163 inline ExportJobResponse& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
164 inline ExportJobResponse& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
166
168
173 inline int GetTotalFailures() const{ return m_totalFailures; }
174 inline bool TotalFailuresHasBeenSet() const { return m_totalFailuresHasBeenSet; }
175 inline void SetTotalFailures(int value) { m_totalFailuresHasBeenSet = true; m_totalFailures = value; }
176 inline ExportJobResponse& WithTotalFailures(int value) { SetTotalFailures(value); return *this;}
178
180
185 inline int GetTotalPieces() const{ return m_totalPieces; }
186 inline bool TotalPiecesHasBeenSet() const { return m_totalPiecesHasBeenSet; }
187 inline void SetTotalPieces(int value) { m_totalPiecesHasBeenSet = true; m_totalPieces = value; }
188 inline ExportJobResponse& WithTotalPieces(int value) { SetTotalPieces(value); return *this;}
190
192
196 inline int GetTotalProcessed() const{ return m_totalProcessed; }
197 inline bool TotalProcessedHasBeenSet() const { return m_totalProcessedHasBeenSet; }
198 inline void SetTotalProcessed(int value) { m_totalProcessedHasBeenSet = true; m_totalProcessed = value; }
199 inline ExportJobResponse& WithTotalProcessed(int value) { SetTotalProcessed(value); return *this;}
201
203
206 inline const Aws::String& GetType() const{ return m_type; }
207 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
208 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
209 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
210 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
211 inline ExportJobResponse& WithType(const Aws::String& value) { SetType(value); return *this;}
212 inline ExportJobResponse& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
213 inline ExportJobResponse& WithType(const char* value) { SetType(value); return *this;}
215 private:
216
217 Aws::String m_applicationId;
218 bool m_applicationIdHasBeenSet = false;
219
220 int m_completedPieces;
221 bool m_completedPiecesHasBeenSet = false;
222
223 Aws::String m_completionDate;
224 bool m_completionDateHasBeenSet = false;
225
226 Aws::String m_creationDate;
227 bool m_creationDateHasBeenSet = false;
228
229 ExportJobResource m_definition;
230 bool m_definitionHasBeenSet = false;
231
232 int m_failedPieces;
233 bool m_failedPiecesHasBeenSet = false;
234
235 Aws::Vector<Aws::String> m_failures;
236 bool m_failuresHasBeenSet = false;
237
238 Aws::String m_id;
239 bool m_idHasBeenSet = false;
240
241 JobStatus m_jobStatus;
242 bool m_jobStatusHasBeenSet = false;
243
244 int m_totalFailures;
245 bool m_totalFailuresHasBeenSet = false;
246
247 int m_totalPieces;
248 bool m_totalPiecesHasBeenSet = false;
249
250 int m_totalProcessed;
251 bool m_totalProcessedHasBeenSet = false;
252
253 Aws::String m_type;
254 bool m_typeHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace Pinpoint
259} // namespace Aws
const Aws::String & GetCreationDate() const
ExportJobResponse & WithJobStatus(const JobStatus &value)
void SetCompletionDate(const Aws::String &value)
ExportJobResponse & WithCompletionDate(Aws::String &&value)
const Aws::String & GetCompletionDate() const
void SetType(const Aws::String &value)
ExportJobResponse & WithId(const Aws::String &value)
void SetCompletionDate(Aws::String &&value)
void SetJobStatus(const JobStatus &value)
ExportJobResponse & AddFailures(const char *value)
ExportJobResponse & WithTotalFailures(int value)
ExportJobResponse & WithTotalProcessed(int value)
ExportJobResponse & WithCreationDate(const Aws::String &value)
ExportJobResponse & WithCompletionDate(const Aws::String &value)
void SetCreationDate(const Aws::String &value)
void SetFailures(const Aws::Vector< Aws::String > &value)
void SetDefinition(const ExportJobResource &value)
AWS_PINPOINT_API ExportJobResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
ExportJobResponse & WithFailures(const Aws::Vector< Aws::String > &value)
ExportJobResponse & WithCreationDate(Aws::String &&value)
ExportJobResponse & WithApplicationId(const Aws::String &value)
void SetCreationDate(Aws::String &&value)
ExportJobResponse & WithCompletionDate(const char *value)
ExportJobResponse & WithType(const Aws::String &value)
ExportJobResponse & WithApplicationId(Aws::String &&value)
ExportJobResponse & WithId(const char *value)
ExportJobResponse & WithApplicationId(const char *value)
void SetFailures(Aws::Vector< Aws::String > &&value)
ExportJobResponse & AddFailures(Aws::String &&value)
ExportJobResponse & WithType(const char *value)
ExportJobResponse & WithDefinition(ExportJobResource &&value)
const ExportJobResource & GetDefinition() const
ExportJobResponse & AddFailures(const Aws::String &value)
void SetId(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
ExportJobResponse & WithFailedPieces(int value)
ExportJobResponse & WithType(Aws::String &&value)
ExportJobResponse & WithId(Aws::String &&value)
void SetApplicationId(const Aws::String &value)
ExportJobResponse & WithDefinition(const ExportJobResource &value)
ExportJobResponse & WithTotalPieces(int value)
AWS_PINPOINT_API ExportJobResponse(Aws::Utils::Json::JsonView jsonValue)
void SetApplicationId(Aws::String &&value)
ExportJobResponse & WithCompletedPieces(int value)
ExportJobResponse & WithJobStatus(JobStatus &&value)
ExportJobResponse & WithCreationDate(const char *value)
void SetDefinition(ExportJobResource &&value)
const Aws::String & GetApplicationId() const
const Aws::Vector< Aws::String > & GetFailures() const
ExportJobResponse & WithFailures(Aws::Vector< Aws::String > &&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