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>
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>
66 inline void SetCompletedPieces(
int value) { m_completedPiecesHasBeenSet =
true; m_completedPieces = value; }
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>
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>
100 template<
typename DefinitionT = ImportJobResource>
101 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet =
true; m_definition = std::forward<DefinitionT>(value); }
102 template<
typename DefinitionT = ImportJobResource>
113 inline void SetFailedPieces(
int value) { m_failedPiecesHasBeenSet =
true; m_failedPieces = value; }
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>>
128 template<
typename FailuresT = Aws::String>
129 ImportJobResponse&
AddFailures(FailuresT&& value) { m_failuresHasBeenSet =
true; m_failures.emplace_back(std::forward<FailuresT>(value));
return *
this; }
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>
163 inline void SetTotalFailures(
int value) { m_totalFailuresHasBeenSet =
true; m_totalFailures = value; }
175 inline void SetTotalPieces(
int value) { m_totalPiecesHasBeenSet =
true; m_totalPieces = value; }
186 inline void SetTotalProcessed(
int value) { m_totalProcessedHasBeenSet =
true; m_totalProcessed = value; }
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>
204 bool m_applicationIdHasBeenSet =
false;
206 int m_completedPieces{0};
207 bool m_completedPiecesHasBeenSet =
false;
210 bool m_completionDateHasBeenSet =
false;
213 bool m_creationDateHasBeenSet =
false;
215 ImportJobResource m_definition;
216 bool m_definitionHasBeenSet =
false;
218 int m_failedPieces{0};
219 bool m_failedPiecesHasBeenSet =
false;
222 bool m_failuresHasBeenSet =
false;
225 bool m_idHasBeenSet =
false;
228 bool m_jobStatusHasBeenSet =
false;
230 int m_totalFailures{0};
231 bool m_totalFailuresHasBeenSet =
false;
233 int m_totalPieces{0};
234 bool m_totalPiecesHasBeenSet =
false;
236 int m_totalProcessed{0};
237 bool m_totalProcessedHasBeenSet =
false;
240 bool m_typeHasBeenSet =
false;
bool TypeHasBeenSet() const
void SetDefinition(DefinitionT &&value)
void SetType(TypeT &&value)
bool IdHasBeenSet() const
const Aws::String & GetId() const
bool DefinitionHasBeenSet() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetType() const
bool ApplicationIdHasBeenSet() const
int GetCompletedPieces() const
ImportJobResponse & WithFailures(FailuresT &&value)
int GetTotalFailures() const
const Aws::Vector< Aws::String > & GetFailures() const
ImportJobResponse & WithJobStatus(JobStatus value)
int GetTotalProcessed() const
const ImportJobResource & GetDefinition() const
int GetTotalPieces() const
AWS_PINPOINT_API ImportJobResponse(Aws::Utils::Json::JsonView jsonValue)
bool TotalProcessedHasBeenSet() const
void SetCompletedPieces(int value)
ImportJobResponse & WithCompletionDate(CompletionDateT &&value)
bool FailedPiecesHasBeenSet() const
ImportJobResponse & WithId(IdT &&value)
const Aws::String & GetApplicationId() const
bool TotalPiecesHasBeenSet() const
bool CompletionDateHasBeenSet() const
ImportJobResponse & AddFailures(FailuresT &&value)
void SetTotalPieces(int value)
void SetCompletionDate(CompletionDateT &&value)
JobStatus GetJobStatus() const
AWS_PINPOINT_API ImportJobResponse()=default
void SetTotalProcessed(int value)
int GetFailedPieces() const
ImportJobResponse & WithCompletedPieces(int value)
bool TotalFailuresHasBeenSet() const
ImportJobResponse & WithTotalPieces(int value)
ImportJobResponse & WithType(TypeT &&value)
void SetJobStatus(JobStatus value)
void SetCreationDate(CreationDateT &&value)
bool CompletedPiecesHasBeenSet() const
ImportJobResponse & WithTotalProcessed(int value)
void SetFailedPieces(int value)
bool FailuresHasBeenSet() const
ImportJobResponse & WithDefinition(DefinitionT &&value)
ImportJobResponse & WithTotalFailures(int value)
bool JobStatusHasBeenSet() const
void SetTotalFailures(int value)
const Aws::String & GetCreationDate() const
void SetFailures(FailuresT &&value)
ImportJobResponse & WithFailedPieces(int value)
AWS_PINPOINT_API ImportJobResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CreationDateHasBeenSet() const
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