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

Describes the total number of tasks that the specified job has started, the * number of tasks that succeeded, and the number of tasks that * failed.

See Also:

AWS * API Reference

*/ class JobProgressSummary { public: AWS_S3CONTROL_API JobProgressSummary(); AWS_S3CONTROL_API JobProgressSummary(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API JobProgressSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

*/ inline long long GetTotalNumberOfTasks() const{ return m_totalNumberOfTasks; } /** *

*/ inline bool TotalNumberOfTasksHasBeenSet() const { return m_totalNumberOfTasksHasBeenSet; } /** *

*/ inline void SetTotalNumberOfTasks(long long value) { m_totalNumberOfTasksHasBeenSet = true; m_totalNumberOfTasks = value; } /** *

*/ inline JobProgressSummary& WithTotalNumberOfTasks(long long value) { SetTotalNumberOfTasks(value); return *this;} /** *

*/ inline long long GetNumberOfTasksSucceeded() const{ return m_numberOfTasksSucceeded; } /** *

*/ inline bool NumberOfTasksSucceededHasBeenSet() const { return m_numberOfTasksSucceededHasBeenSet; } /** *

*/ inline void SetNumberOfTasksSucceeded(long long value) { m_numberOfTasksSucceededHasBeenSet = true; m_numberOfTasksSucceeded = value; } /** *

*/ inline JobProgressSummary& WithNumberOfTasksSucceeded(long long value) { SetNumberOfTasksSucceeded(value); return *this;} /** *

*/ inline long long GetNumberOfTasksFailed() const{ return m_numberOfTasksFailed; } /** *

*/ inline bool NumberOfTasksFailedHasBeenSet() const { return m_numberOfTasksFailedHasBeenSet; } /** *

*/ inline void SetNumberOfTasksFailed(long long value) { m_numberOfTasksFailedHasBeenSet = true; m_numberOfTasksFailed = value; } /** *

*/ inline JobProgressSummary& WithNumberOfTasksFailed(long long value) { SetNumberOfTasksFailed(value); return *this;} /** *

The JobTimers attribute of a job's progress summary.

*/ inline const JobTimers& GetTimers() const{ return m_timers; } /** *

The JobTimers attribute of a job's progress summary.

*/ inline bool TimersHasBeenSet() const { return m_timersHasBeenSet; } /** *

The JobTimers attribute of a job's progress summary.

*/ inline void SetTimers(const JobTimers& value) { m_timersHasBeenSet = true; m_timers = value; } /** *

The JobTimers attribute of a job's progress summary.

*/ inline void SetTimers(JobTimers&& value) { m_timersHasBeenSet = true; m_timers = std::move(value); } /** *

The JobTimers attribute of a job's progress summary.

*/ inline JobProgressSummary& WithTimers(const JobTimers& value) { SetTimers(value); return *this;} /** *

The JobTimers attribute of a job's progress summary.

*/ inline JobProgressSummary& WithTimers(JobTimers&& value) { SetTimers(std::move(value)); return *this;} private: long long m_totalNumberOfTasks; bool m_totalNumberOfTasksHasBeenSet = false; long long m_numberOfTasksSucceeded; bool m_numberOfTasksSucceededHasBeenSet = false; long long m_numberOfTasksFailed; bool m_numberOfTasksFailedHasBeenSet = false; JobTimers m_timers; bool m_timersHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws