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

An object containing the JobId, Status, * StartTime, and EndTime of a job.

See * Also:

AWS * API Reference

*/ class JobSummary { public: AWS_ENTITYRESOLUTION_API JobSummary(); AWS_ENTITYRESOLUTION_API JobSummary(Aws::Utils::Json::JsonView jsonValue); AWS_ENTITYRESOLUTION_API JobSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The time at which the job has finished.

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

The time at which the job has finished.

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

The time at which the job has finished.

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

The time at which the job has finished.

*/ inline JobSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(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 bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The ID of the job.

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

The ID of the job.

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

The ID of the job.

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

The ID of the job.

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

The ID of the job.

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

The ID of the job.

*/ inline JobSummary& WithJobId(const char* value) { SetJobId(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 bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The time at which the job was started.

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

The time at which the job was started.

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

The time at which the job was started.

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

The time at which the job was started.

*/ inline JobSummary& 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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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

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

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

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

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

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

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

*/ inline JobSummary& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; JobStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EntityResolution } // namespace Aws