/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EntityResolution { namespace Model { class GetMatchingJobResult { public: AWS_ENTITYRESOLUTION_API GetMatchingJobResult(); AWS_ENTITYRESOLUTION_API GetMatchingJobResult(const Aws::AmazonWebServiceResult& result); AWS_ENTITYRESOLUTION_API GetMatchingJobResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The time at which the job has finished.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The time at which the job has finished.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTime = value; } /** *

The time at which the job has finished.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTime = std::move(value); } /** *

The time at which the job has finished.

*/ inline GetMatchingJobResult& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The time at which the job has finished.

*/ inline GetMatchingJobResult& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

An object containing an error message, if there was an error.

*/ inline const ErrorDetails& GetErrorDetails() const{ return m_errorDetails; } /** *

An object containing an error message, if there was an error.

*/ inline void SetErrorDetails(const ErrorDetails& value) { m_errorDetails = value; } /** *

An object containing an error message, if there was an error.

*/ inline void SetErrorDetails(ErrorDetails&& value) { m_errorDetails = std::move(value); } /** *

An object containing an error message, if there was an error.

*/ inline GetMatchingJobResult& WithErrorDetails(const ErrorDetails& value) { SetErrorDetails(value); return *this;} /** *

An object containing an error message, if there was an error.

*/ inline GetMatchingJobResult& WithErrorDetails(ErrorDetails&& value) { SetErrorDetails(std::move(value)); return *this;} /** *

The ID of the job.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The ID of the job.

*/ inline void SetJobId(const Aws::String& value) { m_jobId = value; } /** *

The ID of the job.

*/ inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); } /** *

The ID of the job.

*/ inline void SetJobId(const char* value) { m_jobId.assign(value); } /** *

The ID of the job.

*/ inline GetMatchingJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The ID of the job.

*/ inline GetMatchingJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The ID of the job.

*/ inline GetMatchingJobResult& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

Metrics associated with the execution, specifically total records processed, * unique IDs generated, and records the execution skipped.

*/ inline const JobMetrics& GetMetrics() const{ return m_metrics; } /** *

Metrics associated with the execution, specifically total records processed, * unique IDs generated, and records the execution skipped.

*/ inline void SetMetrics(const JobMetrics& value) { m_metrics = value; } /** *

Metrics associated with the execution, specifically total records processed, * unique IDs generated, and records the execution skipped.

*/ inline void SetMetrics(JobMetrics&& value) { m_metrics = std::move(value); } /** *

Metrics associated with the execution, specifically total records processed, * unique IDs generated, and records the execution skipped.

*/ inline GetMatchingJobResult& WithMetrics(const JobMetrics& value) { SetMetrics(value); return *this;} /** *

Metrics associated with the execution, specifically total records processed, * unique IDs generated, and records the execution skipped.

*/ inline GetMatchingJobResult& WithMetrics(JobMetrics&& value) { SetMetrics(std::move(value)); return *this;} /** *

The time at which the job was started.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time at which the job was started.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** *

The time at which the job was started.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** *

The time at which the job was started.

*/ inline GetMatchingJobResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time at which the job was started.

*/ inline GetMatchingJobResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The current status of the job. Either running, * succeeded, queued, or failed.

*/ inline const JobStatus& GetStatus() const{ return m_status; } /** *

The current status of the job. Either running, * succeeded, queued, or failed.

*/ inline void SetStatus(const JobStatus& value) { m_status = value; } /** *

The current status of the job. Either running, * succeeded, queued, or failed.

*/ inline void SetStatus(JobStatus&& value) { m_status = std::move(value); } /** *

The current status of the job. Either running, * succeeded, queued, or failed.

*/ inline GetMatchingJobResult& WithStatus(const JobStatus& value) { SetStatus(value); return *this;} /** *

The current status of the job. Either running, * succeeded, queued, or failed.

*/ inline GetMatchingJobResult& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetMatchingJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMatchingJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMatchingJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_endTime; ErrorDetails m_errorDetails; Aws::String m_jobId; JobMetrics m_metrics; Aws::Utils::DateTime m_startTime; JobStatus m_status; Aws::String m_requestId; }; } // namespace Model } // namespace EntityResolution } // namespace Aws