1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 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 14 namespace Aws 15 { 16 namespace Utils 17 { 18 namespace Json 19 { 20 class JsonValue; 21 class JsonView; 22 } // namespace Json 23 } // namespace Utils 24 namespace Pinpoint 25 { 26 namespace Model 27 { 28 29 /** 30 * <p>Provides information about the status and settings of a job that exports 31 * endpoint definitions to a file. The file can be added directly to an Amazon 32 * Simple Storage Service (Amazon S3) bucket by using the Amazon Pinpoint API or 33 * downloaded directly to a computer by using the Amazon Pinpoint 34 * console.</p><p><h3>See Also:</h3> <a 35 * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ExportJobResponse">AWS 36 * API Reference</a></p> 37 */ 38 class AWS_PINPOINT_API ExportJobResponse 39 { 40 public: 41 ExportJobResponse(); 42 ExportJobResponse(Aws::Utils::Json::JsonView jsonValue); 43 ExportJobResponse& operator=(Aws::Utils::Json::JsonView jsonValue); 44 Aws::Utils::Json::JsonValue Jsonize() const; 45 46 47 /** 48 * <p>The unique identifier for the application that's associated with the export 49 * job.</p> 50 */ GetApplicationId()51 inline const Aws::String& GetApplicationId() const{ return m_applicationId; } 52 53 /** 54 * <p>The unique identifier for the application that's associated with the export 55 * job.</p> 56 */ ApplicationIdHasBeenSet()57 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } 58 59 /** 60 * <p>The unique identifier for the application that's associated with the export 61 * job.</p> 62 */ SetApplicationId(const Aws::String & value)63 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } 64 65 /** 66 * <p>The unique identifier for the application that's associated with the export 67 * job.</p> 68 */ SetApplicationId(Aws::String && value)69 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } 70 71 /** 72 * <p>The unique identifier for the application that's associated with the export 73 * job.</p> 74 */ SetApplicationId(const char * value)75 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } 76 77 /** 78 * <p>The unique identifier for the application that's associated with the export 79 * job.</p> 80 */ WithApplicationId(const Aws::String & value)81 inline ExportJobResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} 82 83 /** 84 * <p>The unique identifier for the application that's associated with the export 85 * job.</p> 86 */ WithApplicationId(Aws::String && value)87 inline ExportJobResponse& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} 88 89 /** 90 * <p>The unique identifier for the application that's associated with the export 91 * job.</p> 92 */ WithApplicationId(const char * value)93 inline ExportJobResponse& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} 94 95 96 /** 97 * <p>The number of pieces that were processed successfully (completed) by the 98 * export job, as of the time of the request.</p> 99 */ GetCompletedPieces()100 inline int GetCompletedPieces() const{ return m_completedPieces; } 101 102 /** 103 * <p>The number of pieces that were processed successfully (completed) by the 104 * export job, as of the time of the request.</p> 105 */ CompletedPiecesHasBeenSet()106 inline bool CompletedPiecesHasBeenSet() const { return m_completedPiecesHasBeenSet; } 107 108 /** 109 * <p>The number of pieces that were processed successfully (completed) by the 110 * export job, as of the time of the request.</p> 111 */ SetCompletedPieces(int value)112 inline void SetCompletedPieces(int value) { m_completedPiecesHasBeenSet = true; m_completedPieces = value; } 113 114 /** 115 * <p>The number of pieces that were processed successfully (completed) by the 116 * export job, as of the time of the request.</p> 117 */ WithCompletedPieces(int value)118 inline ExportJobResponse& WithCompletedPieces(int value) { SetCompletedPieces(value); return *this;} 119 120 121 /** 122 * <p>The date, in ISO 8601 format, when the export job was completed.</p> 123 */ GetCompletionDate()124 inline const Aws::String& GetCompletionDate() const{ return m_completionDate; } 125 126 /** 127 * <p>The date, in ISO 8601 format, when the export job was completed.</p> 128 */ CompletionDateHasBeenSet()129 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; } 130 131 /** 132 * <p>The date, in ISO 8601 format, when the export job was completed.</p> 133 */ SetCompletionDate(const Aws::String & value)134 inline void SetCompletionDate(const Aws::String& value) { m_completionDateHasBeenSet = true; m_completionDate = value; } 135 136 /** 137 * <p>The date, in ISO 8601 format, when the export job was completed.</p> 138 */ SetCompletionDate(Aws::String && value)139 inline void SetCompletionDate(Aws::String&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::move(value); } 140 141 /** 142 * <p>The date, in ISO 8601 format, when the export job was completed.</p> 143 */ SetCompletionDate(const char * value)144 inline void SetCompletionDate(const char* value) { m_completionDateHasBeenSet = true; m_completionDate.assign(value); } 145 146 /** 147 * <p>The date, in ISO 8601 format, when the export job was completed.</p> 148 */ WithCompletionDate(const Aws::String & value)149 inline ExportJobResponse& WithCompletionDate(const Aws::String& value) { SetCompletionDate(value); return *this;} 150 151 /** 152 * <p>The date, in ISO 8601 format, when the export job was completed.</p> 153 */ WithCompletionDate(Aws::String && value)154 inline ExportJobResponse& WithCompletionDate(Aws::String&& value) { SetCompletionDate(std::move(value)); return *this;} 155 156 /** 157 * <p>The date, in ISO 8601 format, when the export job was completed.</p> 158 */ WithCompletionDate(const char * value)159 inline ExportJobResponse& WithCompletionDate(const char* value) { SetCompletionDate(value); return *this;} 160 161 162 /** 163 * <p>The date, in ISO 8601 format, when the export job was created.</p> 164 */ GetCreationDate()165 inline const Aws::String& GetCreationDate() const{ return m_creationDate; } 166 167 /** 168 * <p>The date, in ISO 8601 format, when the export job was created.</p> 169 */ CreationDateHasBeenSet()170 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } 171 172 /** 173 * <p>The date, in ISO 8601 format, when the export job was created.</p> 174 */ SetCreationDate(const Aws::String & value)175 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } 176 177 /** 178 * <p>The date, in ISO 8601 format, when the export job was created.</p> 179 */ SetCreationDate(Aws::String && value)180 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } 181 182 /** 183 * <p>The date, in ISO 8601 format, when the export job was created.</p> 184 */ SetCreationDate(const char * value)185 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); } 186 187 /** 188 * <p>The date, in ISO 8601 format, when the export job was created.</p> 189 */ WithCreationDate(const Aws::String & value)190 inline ExportJobResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;} 191 192 /** 193 * <p>The date, in ISO 8601 format, when the export job was created.</p> 194 */ WithCreationDate(Aws::String && value)195 inline ExportJobResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;} 196 197 /** 198 * <p>The date, in ISO 8601 format, when the export job was created.</p> 199 */ WithCreationDate(const char * value)200 inline ExportJobResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;} 201 202 203 /** 204 * <p>The resource settings that apply to the export job.</p> 205 */ GetDefinition()206 inline const ExportJobResource& GetDefinition() const{ return m_definition; } 207 208 /** 209 * <p>The resource settings that apply to the export job.</p> 210 */ DefinitionHasBeenSet()211 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; } 212 213 /** 214 * <p>The resource settings that apply to the export job.</p> 215 */ SetDefinition(const ExportJobResource & value)216 inline void SetDefinition(const ExportJobResource& value) { m_definitionHasBeenSet = true; m_definition = value; } 217 218 /** 219 * <p>The resource settings that apply to the export job.</p> 220 */ SetDefinition(ExportJobResource && value)221 inline void SetDefinition(ExportJobResource&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); } 222 223 /** 224 * <p>The resource settings that apply to the export job.</p> 225 */ WithDefinition(const ExportJobResource & value)226 inline ExportJobResponse& WithDefinition(const ExportJobResource& value) { SetDefinition(value); return *this;} 227 228 /** 229 * <p>The resource settings that apply to the export job.</p> 230 */ WithDefinition(ExportJobResource && value)231 inline ExportJobResponse& WithDefinition(ExportJobResource&& value) { SetDefinition(std::move(value)); return *this;} 232 233 234 /** 235 * <p>The number of pieces that weren't processed successfully (failed) by the 236 * export job, as of the time of the request.</p> 237 */ GetFailedPieces()238 inline int GetFailedPieces() const{ return m_failedPieces; } 239 240 /** 241 * <p>The number of pieces that weren't processed successfully (failed) by the 242 * export job, as of the time of the request.</p> 243 */ FailedPiecesHasBeenSet()244 inline bool FailedPiecesHasBeenSet() const { return m_failedPiecesHasBeenSet; } 245 246 /** 247 * <p>The number of pieces that weren't processed successfully (failed) by the 248 * export job, as of the time of the request.</p> 249 */ SetFailedPieces(int value)250 inline void SetFailedPieces(int value) { m_failedPiecesHasBeenSet = true; m_failedPieces = value; } 251 252 /** 253 * <p>The number of pieces that weren't processed successfully (failed) by the 254 * export job, as of the time of the request.</p> 255 */ WithFailedPieces(int value)256 inline ExportJobResponse& WithFailedPieces(int value) { SetFailedPieces(value); return *this;} 257 258 259 /** 260 * <p>An array of entries, one for each of the first 100 entries that weren't 261 * processed successfully (failed) by the export job, if any.</p> 262 */ GetFailures()263 inline const Aws::Vector<Aws::String>& GetFailures() const{ return m_failures; } 264 265 /** 266 * <p>An array of entries, one for each of the first 100 entries that weren't 267 * processed successfully (failed) by the export job, if any.</p> 268 */ FailuresHasBeenSet()269 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; } 270 271 /** 272 * <p>An array of entries, one for each of the first 100 entries that weren't 273 * processed successfully (failed) by the export job, if any.</p> 274 */ SetFailures(const Aws::Vector<Aws::String> & value)275 inline void SetFailures(const Aws::Vector<Aws::String>& value) { m_failuresHasBeenSet = true; m_failures = value; } 276 277 /** 278 * <p>An array of entries, one for each of the first 100 entries that weren't 279 * processed successfully (failed) by the export job, if any.</p> 280 */ SetFailures(Aws::Vector<Aws::String> && value)281 inline void SetFailures(Aws::Vector<Aws::String>&& value) { m_failuresHasBeenSet = true; m_failures = std::move(value); } 282 283 /** 284 * <p>An array of entries, one for each of the first 100 entries that weren't 285 * processed successfully (failed) by the export job, if any.</p> 286 */ WithFailures(const Aws::Vector<Aws::String> & value)287 inline ExportJobResponse& WithFailures(const Aws::Vector<Aws::String>& value) { SetFailures(value); return *this;} 288 289 /** 290 * <p>An array of entries, one for each of the first 100 entries that weren't 291 * processed successfully (failed) by the export job, if any.</p> 292 */ WithFailures(Aws::Vector<Aws::String> && value)293 inline ExportJobResponse& WithFailures(Aws::Vector<Aws::String>&& value) { SetFailures(std::move(value)); return *this;} 294 295 /** 296 * <p>An array of entries, one for each of the first 100 entries that weren't 297 * processed successfully (failed) by the export job, if any.</p> 298 */ AddFailures(const Aws::String & value)299 inline ExportJobResponse& AddFailures(const Aws::String& value) { m_failuresHasBeenSet = true; m_failures.push_back(value); return *this; } 300 301 /** 302 * <p>An array of entries, one for each of the first 100 entries that weren't 303 * processed successfully (failed) by the export job, if any.</p> 304 */ AddFailures(Aws::String && value)305 inline ExportJobResponse& AddFailures(Aws::String&& value) { m_failuresHasBeenSet = true; m_failures.push_back(std::move(value)); return *this; } 306 307 /** 308 * <p>An array of entries, one for each of the first 100 entries that weren't 309 * processed successfully (failed) by the export job, if any.</p> 310 */ AddFailures(const char * value)311 inline ExportJobResponse& AddFailures(const char* value) { m_failuresHasBeenSet = true; m_failures.push_back(value); return *this; } 312 313 314 /** 315 * <p>The unique identifier for the export job.</p> 316 */ GetId()317 inline const Aws::String& GetId() const{ return m_id; } 318 319 /** 320 * <p>The unique identifier for the export job.</p> 321 */ IdHasBeenSet()322 inline bool IdHasBeenSet() const { return m_idHasBeenSet; } 323 324 /** 325 * <p>The unique identifier for the export job.</p> 326 */ SetId(const Aws::String & value)327 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } 328 329 /** 330 * <p>The unique identifier for the export job.</p> 331 */ SetId(Aws::String && value)332 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } 333 334 /** 335 * <p>The unique identifier for the export job.</p> 336 */ SetId(const char * value)337 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } 338 339 /** 340 * <p>The unique identifier for the export job.</p> 341 */ WithId(const Aws::String & value)342 inline ExportJobResponse& WithId(const Aws::String& value) { SetId(value); return *this;} 343 344 /** 345 * <p>The unique identifier for the export job.</p> 346 */ WithId(Aws::String && value)347 inline ExportJobResponse& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} 348 349 /** 350 * <p>The unique identifier for the export job.</p> 351 */ WithId(const char * value)352 inline ExportJobResponse& WithId(const char* value) { SetId(value); return *this;} 353 354 355 /** 356 * <p>The status of the export job. The job status is FAILED if Amazon Pinpoint 357 * wasn't able to process one or more pieces in the job.</p> 358 */ GetJobStatus()359 inline const JobStatus& GetJobStatus() const{ return m_jobStatus; } 360 361 /** 362 * <p>The status of the export job. The job status is FAILED if Amazon Pinpoint 363 * wasn't able to process one or more pieces in the job.</p> 364 */ JobStatusHasBeenSet()365 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; } 366 367 /** 368 * <p>The status of the export job. The job status is FAILED if Amazon Pinpoint 369 * wasn't able to process one or more pieces in the job.</p> 370 */ SetJobStatus(const JobStatus & value)371 inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; } 372 373 /** 374 * <p>The status of the export job. The job status is FAILED if Amazon Pinpoint 375 * wasn't able to process one or more pieces in the job.</p> 376 */ SetJobStatus(JobStatus && value)377 inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); } 378 379 /** 380 * <p>The status of the export job. The job status is FAILED if Amazon Pinpoint 381 * wasn't able to process one or more pieces in the job.</p> 382 */ WithJobStatus(const JobStatus & value)383 inline ExportJobResponse& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;} 384 385 /** 386 * <p>The status of the export job. The job status is FAILED if Amazon Pinpoint 387 * wasn't able to process one or more pieces in the job.</p> 388 */ WithJobStatus(JobStatus && value)389 inline ExportJobResponse& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;} 390 391 392 /** 393 * <p>The total number of endpoint definitions that weren't processed successfully 394 * (failed) by the export job, typically because an error, such as a syntax error, 395 * occurred.</p> 396 */ GetTotalFailures()397 inline int GetTotalFailures() const{ return m_totalFailures; } 398 399 /** 400 * <p>The total number of endpoint definitions that weren't processed successfully 401 * (failed) by the export job, typically because an error, such as a syntax error, 402 * occurred.</p> 403 */ TotalFailuresHasBeenSet()404 inline bool TotalFailuresHasBeenSet() const { return m_totalFailuresHasBeenSet; } 405 406 /** 407 * <p>The total number of endpoint definitions that weren't processed successfully 408 * (failed) by the export job, typically because an error, such as a syntax error, 409 * occurred.</p> 410 */ SetTotalFailures(int value)411 inline void SetTotalFailures(int value) { m_totalFailuresHasBeenSet = true; m_totalFailures = value; } 412 413 /** 414 * <p>The total number of endpoint definitions that weren't processed successfully 415 * (failed) by the export job, typically because an error, such as a syntax error, 416 * occurred.</p> 417 */ WithTotalFailures(int value)418 inline ExportJobResponse& WithTotalFailures(int value) { SetTotalFailures(value); return *this;} 419 420 421 /** 422 * <p>The total number of pieces that must be processed to complete the export job. 423 * Each piece consists of an approximately equal portion of the endpoint 424 * definitions that are part of the export job.</p> 425 */ GetTotalPieces()426 inline int GetTotalPieces() const{ return m_totalPieces; } 427 428 /** 429 * <p>The total number of pieces that must be processed to complete the export job. 430 * Each piece consists of an approximately equal portion of the endpoint 431 * definitions that are part of the export job.</p> 432 */ TotalPiecesHasBeenSet()433 inline bool TotalPiecesHasBeenSet() const { return m_totalPiecesHasBeenSet; } 434 435 /** 436 * <p>The total number of pieces that must be processed to complete the export job. 437 * Each piece consists of an approximately equal portion of the endpoint 438 * definitions that are part of the export job.</p> 439 */ SetTotalPieces(int value)440 inline void SetTotalPieces(int value) { m_totalPiecesHasBeenSet = true; m_totalPieces = value; } 441 442 /** 443 * <p>The total number of pieces that must be processed to complete the export job. 444 * Each piece consists of an approximately equal portion of the endpoint 445 * definitions that are part of the export job.</p> 446 */ WithTotalPieces(int value)447 inline ExportJobResponse& WithTotalPieces(int value) { SetTotalPieces(value); return *this;} 448 449 450 /** 451 * <p>The total number of endpoint definitions that were processed by the export 452 * job.</p> 453 */ GetTotalProcessed()454 inline int GetTotalProcessed() const{ return m_totalProcessed; } 455 456 /** 457 * <p>The total number of endpoint definitions that were processed by the export 458 * job.</p> 459 */ TotalProcessedHasBeenSet()460 inline bool TotalProcessedHasBeenSet() const { return m_totalProcessedHasBeenSet; } 461 462 /** 463 * <p>The total number of endpoint definitions that were processed by the export 464 * job.</p> 465 */ SetTotalProcessed(int value)466 inline void SetTotalProcessed(int value) { m_totalProcessedHasBeenSet = true; m_totalProcessed = value; } 467 468 /** 469 * <p>The total number of endpoint definitions that were processed by the export 470 * job.</p> 471 */ WithTotalProcessed(int value)472 inline ExportJobResponse& WithTotalProcessed(int value) { SetTotalProcessed(value); return *this;} 473 474 475 /** 476 * <p>The job type. This value is EXPORT for export jobs.</p> 477 */ GetType()478 inline const Aws::String& GetType() const{ return m_type; } 479 480 /** 481 * <p>The job type. This value is EXPORT for export jobs.</p> 482 */ TypeHasBeenSet()483 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } 484 485 /** 486 * <p>The job type. This value is EXPORT for export jobs.</p> 487 */ SetType(const Aws::String & value)488 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } 489 490 /** 491 * <p>The job type. This value is EXPORT for export jobs.</p> 492 */ SetType(Aws::String && value)493 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } 494 495 /** 496 * <p>The job type. This value is EXPORT for export jobs.</p> 497 */ SetType(const char * value)498 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } 499 500 /** 501 * <p>The job type. This value is EXPORT for export jobs.</p> 502 */ WithType(const Aws::String & value)503 inline ExportJobResponse& WithType(const Aws::String& value) { SetType(value); return *this;} 504 505 /** 506 * <p>The job type. This value is EXPORT for export jobs.</p> 507 */ WithType(Aws::String && value)508 inline ExportJobResponse& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} 509 510 /** 511 * <p>The job type. This value is EXPORT for export jobs.</p> 512 */ WithType(const char * value)513 inline ExportJobResponse& WithType(const char* value) { SetType(value); return *this;} 514 515 private: 516 517 Aws::String m_applicationId; 518 bool m_applicationIdHasBeenSet; 519 520 int m_completedPieces; 521 bool m_completedPiecesHasBeenSet; 522 523 Aws::String m_completionDate; 524 bool m_completionDateHasBeenSet; 525 526 Aws::String m_creationDate; 527 bool m_creationDateHasBeenSet; 528 529 ExportJobResource m_definition; 530 bool m_definitionHasBeenSet; 531 532 int m_failedPieces; 533 bool m_failedPiecesHasBeenSet; 534 535 Aws::Vector<Aws::String> m_failures; 536 bool m_failuresHasBeenSet; 537 538 Aws::String m_id; 539 bool m_idHasBeenSet; 540 541 JobStatus m_jobStatus; 542 bool m_jobStatusHasBeenSet; 543 544 int m_totalFailures; 545 bool m_totalFailuresHasBeenSet; 546 547 int m_totalPieces; 548 bool m_totalPiecesHasBeenSet; 549 550 int m_totalProcessed; 551 bool m_totalProcessedHasBeenSet; 552 553 Aws::String m_type; 554 bool m_typeHasBeenSet; 555 }; 556 557 } // namespace Model 558 } // namespace Pinpoint 559 } // namespace Aws 560