/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

A summary of the import job.

See Also:

AWS * API Reference

*/ class ImportJobSummary { public: AWS_SESV2_API ImportJobSummary(); AWS_SESV2_API ImportJobSummary(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API ImportJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetJobId() const{ return m_jobId; } inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } inline ImportJobSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} inline ImportJobSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} inline ImportJobSummary& WithJobId(const char* value) { SetJobId(value); return *this;} inline const ImportDestination& GetImportDestination() const{ return m_importDestination; } inline bool ImportDestinationHasBeenSet() const { return m_importDestinationHasBeenSet; } inline void SetImportDestination(const ImportDestination& value) { m_importDestinationHasBeenSet = true; m_importDestination = value; } inline void SetImportDestination(ImportDestination&& value) { m_importDestinationHasBeenSet = true; m_importDestination = std::move(value); } inline ImportJobSummary& WithImportDestination(const ImportDestination& value) { SetImportDestination(value); return *this;} inline ImportJobSummary& WithImportDestination(ImportDestination&& value) { SetImportDestination(std::move(value)); return *this;} inline const JobStatus& GetJobStatus() const{ return m_jobStatus; } inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; } inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; } inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); } inline ImportJobSummary& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;} inline ImportJobSummary& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;} /** *

The date and time when the import job was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The date and time when the import job was created.

*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *

The date and time when the import job was created.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *

The date and time when the import job was created.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *

The date and time when the import job was created.

*/ inline ImportJobSummary& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The date and time when the import job was created.

*/ inline ImportJobSummary& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

The current number of records processed.

*/ inline int GetProcessedRecordsCount() const{ return m_processedRecordsCount; } /** *

The current number of records processed.

*/ inline bool ProcessedRecordsCountHasBeenSet() const { return m_processedRecordsCountHasBeenSet; } /** *

The current number of records processed.

*/ inline void SetProcessedRecordsCount(int value) { m_processedRecordsCountHasBeenSet = true; m_processedRecordsCount = value; } /** *

The current number of records processed.

*/ inline ImportJobSummary& WithProcessedRecordsCount(int value) { SetProcessedRecordsCount(value); return *this;} /** *

The number of records that failed processing because of invalid input or * other reasons.

*/ inline int GetFailedRecordsCount() const{ return m_failedRecordsCount; } /** *

The number of records that failed processing because of invalid input or * other reasons.

*/ inline bool FailedRecordsCountHasBeenSet() const { return m_failedRecordsCountHasBeenSet; } /** *

The number of records that failed processing because of invalid input or * other reasons.

*/ inline void SetFailedRecordsCount(int value) { m_failedRecordsCountHasBeenSet = true; m_failedRecordsCount = value; } /** *

The number of records that failed processing because of invalid input or * other reasons.

*/ inline ImportJobSummary& WithFailedRecordsCount(int value) { SetFailedRecordsCount(value); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; ImportDestination m_importDestination; bool m_importDestinationHasBeenSet = false; JobStatus m_jobStatus; bool m_jobStatusHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; int m_processedRecordsCount; bool m_processedRecordsCountHasBeenSet = false; int m_failedRecordsCount; bool m_failedRecordsCountHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws