AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ApplicationIdT = Aws::String>
55 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
56 template<typename ApplicationIdT = Aws::String>
57 ExportJobResponse& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
59
61
65 inline int GetCompletedPieces() const { return m_completedPieces; }
66 inline bool CompletedPiecesHasBeenSet() const { return m_completedPiecesHasBeenSet; }
67 inline void SetCompletedPieces(int value) { m_completedPiecesHasBeenSet = true; m_completedPieces = value; }
68 inline ExportJobResponse& WithCompletedPieces(int value) { SetCompletedPieces(value); return *this;}
70
72
75 inline const Aws::String& GetCompletionDate() const { return m_completionDate; }
76 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
77 template<typename CompletionDateT = Aws::String>
78 void SetCompletionDate(CompletionDateT&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::forward<CompletionDateT>(value); }
79 template<typename CompletionDateT = Aws::String>
80 ExportJobResponse& WithCompletionDate(CompletionDateT&& value) { SetCompletionDate(std::forward<CompletionDateT>(value)); return *this;}
82
84
87 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
88 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
89 template<typename CreationDateT = Aws::String>
90 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
91 template<typename CreationDateT = Aws::String>
92 ExportJobResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
94
96
99 inline const ExportJobResource& GetDefinition() const { return m_definition; }
100 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
101 template<typename DefinitionT = ExportJobResource>
102 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
103 template<typename DefinitionT = ExportJobResource>
104 ExportJobResponse& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
106
108
112 inline int GetFailedPieces() const { return m_failedPieces; }
113 inline bool FailedPiecesHasBeenSet() const { return m_failedPiecesHasBeenSet; }
114 inline void SetFailedPieces(int value) { m_failedPiecesHasBeenSet = true; m_failedPieces = value; }
115 inline ExportJobResponse& WithFailedPieces(int value) { SetFailedPieces(value); return *this;}
117
119
123 inline const Aws::Vector<Aws::String>& GetFailures() const { return m_failures; }
124 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
125 template<typename FailuresT = Aws::Vector<Aws::String>>
126 void SetFailures(FailuresT&& value) { m_failuresHasBeenSet = true; m_failures = std::forward<FailuresT>(value); }
127 template<typename FailuresT = Aws::Vector<Aws::String>>
128 ExportJobResponse& WithFailures(FailuresT&& value) { SetFailures(std::forward<FailuresT>(value)); return *this;}
129 template<typename FailuresT = Aws::String>
130 ExportJobResponse& AddFailures(FailuresT&& value) { m_failuresHasBeenSet = true; m_failures.emplace_back(std::forward<FailuresT>(value)); return *this; }
132
134
137 inline const Aws::String& GetId() const { return m_id; }
138 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
139 template<typename IdT = Aws::String>
140 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
141 template<typename IdT = Aws::String>
142 ExportJobResponse& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
144
146
150 inline JobStatus GetJobStatus() const { return m_jobStatus; }
151 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
152 inline void SetJobStatus(JobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
153 inline ExportJobResponse& WithJobStatus(JobStatus value) { SetJobStatus(value); return *this;}
155
157
162 inline int GetTotalFailures() const { return m_totalFailures; }
163 inline bool TotalFailuresHasBeenSet() const { return m_totalFailuresHasBeenSet; }
164 inline void SetTotalFailures(int value) { m_totalFailuresHasBeenSet = true; m_totalFailures = value; }
165 inline ExportJobResponse& WithTotalFailures(int value) { SetTotalFailures(value); return *this;}
167
169
174 inline int GetTotalPieces() const { return m_totalPieces; }
175 inline bool TotalPiecesHasBeenSet() const { return m_totalPiecesHasBeenSet; }
176 inline void SetTotalPieces(int value) { m_totalPiecesHasBeenSet = true; m_totalPieces = value; }
177 inline ExportJobResponse& WithTotalPieces(int value) { SetTotalPieces(value); return *this;}
179
181
185 inline int GetTotalProcessed() const { return m_totalProcessed; }
186 inline bool TotalProcessedHasBeenSet() const { return m_totalProcessedHasBeenSet; }
187 inline void SetTotalProcessed(int value) { m_totalProcessedHasBeenSet = true; m_totalProcessed = value; }
188 inline ExportJobResponse& WithTotalProcessed(int value) { SetTotalProcessed(value); return *this;}
190
192
195 inline const Aws::String& GetType() const { return m_type; }
196 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
197 template<typename TypeT = Aws::String>
198 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
199 template<typename TypeT = Aws::String>
200 ExportJobResponse& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
202 private:
203
204 Aws::String m_applicationId;
205 bool m_applicationIdHasBeenSet = false;
206
207 int m_completedPieces{0};
208 bool m_completedPiecesHasBeenSet = false;
209
210 Aws::String m_completionDate;
211 bool m_completionDateHasBeenSet = false;
212
213 Aws::String m_creationDate;
214 bool m_creationDateHasBeenSet = false;
215
216 ExportJobResource m_definition;
217 bool m_definitionHasBeenSet = false;
218
219 int m_failedPieces{0};
220 bool m_failedPiecesHasBeenSet = false;
221
222 Aws::Vector<Aws::String> m_failures;
223 bool m_failuresHasBeenSet = false;
224
225 Aws::String m_id;
226 bool m_idHasBeenSet = false;
227
228 JobStatus m_jobStatus{JobStatus::NOT_SET};
229 bool m_jobStatusHasBeenSet = false;
230
231 int m_totalFailures{0};
232 bool m_totalFailuresHasBeenSet = false;
233
234 int m_totalPieces{0};
235 bool m_totalPiecesHasBeenSet = false;
236
237 int m_totalProcessed{0};
238 bool m_totalProcessedHasBeenSet = false;
239
240 Aws::String m_type;
241 bool m_typeHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace Pinpoint
246} // 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