AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ApplicationIdT = Aws::String>
54 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
55 template<typename ApplicationIdT = Aws::String>
56 ImportJobResponse& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
58
60
64 inline int GetCompletedPieces() const { return m_completedPieces; }
65 inline bool CompletedPiecesHasBeenSet() const { return m_completedPiecesHasBeenSet; }
66 inline void SetCompletedPieces(int value) { m_completedPiecesHasBeenSet = true; m_completedPieces = value; }
67 inline ImportJobResponse& WithCompletedPieces(int value) { SetCompletedPieces(value); return *this;}
69
71
74 inline const Aws::String& GetCompletionDate() const { return m_completionDate; }
75 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
76 template<typename CompletionDateT = Aws::String>
77 void SetCompletionDate(CompletionDateT&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::forward<CompletionDateT>(value); }
78 template<typename CompletionDateT = Aws::String>
79 ImportJobResponse& WithCompletionDate(CompletionDateT&& value) { SetCompletionDate(std::forward<CompletionDateT>(value)); return *this;}
81
83
86 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
87 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
88 template<typename CreationDateT = Aws::String>
89 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
90 template<typename CreationDateT = Aws::String>
91 ImportJobResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
93
95
98 inline const ImportJobResource& GetDefinition() const { return m_definition; }
99 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
100 template<typename DefinitionT = ImportJobResource>
101 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
102 template<typename DefinitionT = ImportJobResource>
103 ImportJobResponse& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
105
107
111 inline int GetFailedPieces() const { return m_failedPieces; }
112 inline bool FailedPiecesHasBeenSet() const { return m_failedPiecesHasBeenSet; }
113 inline void SetFailedPieces(int value) { m_failedPiecesHasBeenSet = true; m_failedPieces = value; }
114 inline ImportJobResponse& WithFailedPieces(int value) { SetFailedPieces(value); return *this;}
116
118
122 inline const Aws::Vector<Aws::String>& GetFailures() const { return m_failures; }
123 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
124 template<typename FailuresT = Aws::Vector<Aws::String>>
125 void SetFailures(FailuresT&& value) { m_failuresHasBeenSet = true; m_failures = std::forward<FailuresT>(value); }
126 template<typename FailuresT = Aws::Vector<Aws::String>>
127 ImportJobResponse& WithFailures(FailuresT&& value) { SetFailures(std::forward<FailuresT>(value)); return *this;}
128 template<typename FailuresT = Aws::String>
129 ImportJobResponse& AddFailures(FailuresT&& value) { m_failuresHasBeenSet = true; m_failures.emplace_back(std::forward<FailuresT>(value)); return *this; }
131
133
136 inline const Aws::String& GetId() const { return m_id; }
137 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
138 template<typename IdT = Aws::String>
139 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
140 template<typename IdT = Aws::String>
141 ImportJobResponse& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
143
145
149 inline JobStatus GetJobStatus() const { return m_jobStatus; }
150 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
151 inline void SetJobStatus(JobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
152 inline ImportJobResponse& WithJobStatus(JobStatus value) { SetJobStatus(value); return *this;}
154
156
161 inline int GetTotalFailures() const { return m_totalFailures; }
162 inline bool TotalFailuresHasBeenSet() const { return m_totalFailuresHasBeenSet; }
163 inline void SetTotalFailures(int value) { m_totalFailuresHasBeenSet = true; m_totalFailures = value; }
164 inline ImportJobResponse& WithTotalFailures(int value) { SetTotalFailures(value); return *this;}
166
168
173 inline int GetTotalPieces() const { return m_totalPieces; }
174 inline bool TotalPiecesHasBeenSet() const { return m_totalPiecesHasBeenSet; }
175 inline void SetTotalPieces(int value) { m_totalPiecesHasBeenSet = true; m_totalPieces = value; }
176 inline ImportJobResponse& WithTotalPieces(int value) { SetTotalPieces(value); return *this;}
178
180
184 inline int GetTotalProcessed() const { return m_totalProcessed; }
185 inline bool TotalProcessedHasBeenSet() const { return m_totalProcessedHasBeenSet; }
186 inline void SetTotalProcessed(int value) { m_totalProcessedHasBeenSet = true; m_totalProcessed = value; }
187 inline ImportJobResponse& WithTotalProcessed(int value) { SetTotalProcessed(value); return *this;}
189
191
194 inline const Aws::String& GetType() const { return m_type; }
195 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
196 template<typename TypeT = Aws::String>
197 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
198 template<typename TypeT = Aws::String>
199 ImportJobResponse& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
201 private:
202
203 Aws::String m_applicationId;
204 bool m_applicationIdHasBeenSet = false;
205
206 int m_completedPieces{0};
207 bool m_completedPiecesHasBeenSet = false;
208
209 Aws::String m_completionDate;
210 bool m_completionDateHasBeenSet = false;
211
212 Aws::String m_creationDate;
213 bool m_creationDateHasBeenSet = false;
214
215 ImportJobResource m_definition;
216 bool m_definitionHasBeenSet = false;
217
218 int m_failedPieces{0};
219 bool m_failedPiecesHasBeenSet = false;
220
221 Aws::Vector<Aws::String> m_failures;
222 bool m_failuresHasBeenSet = false;
223
224 Aws::String m_id;
225 bool m_idHasBeenSet = false;
226
227 JobStatus m_jobStatus{JobStatus::NOT_SET};
228 bool m_jobStatusHasBeenSet = false;
229
230 int m_totalFailures{0};
231 bool m_totalFailuresHasBeenSet = false;
232
233 int m_totalPieces{0};
234 bool m_totalPiecesHasBeenSet = false;
235
236 int m_totalProcessed{0};
237 bool m_totalProcessedHasBeenSet = false;
238
239 Aws::String m_type;
240 bool m_typeHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace Pinpoint
245} // 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