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

Contains the output of ReportTaskProgress.

See Also:

AWS * API Reference

*/ class ReportTaskProgressResult { public: AWS_DATAPIPELINE_API ReportTaskProgressResult(); AWS_DATAPIPELINE_API ReportTaskProgressResult(const Aws::AmazonWebServiceResult& result); AWS_DATAPIPELINE_API ReportTaskProgressResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

If true, the calling task runner should cancel processing of the task. The * task runner does not need to call SetTaskStatus for canceled tasks.

*/ inline bool GetCanceled() const{ return m_canceled; } /** *

If true, the calling task runner should cancel processing of the task. The * task runner does not need to call SetTaskStatus for canceled tasks.

*/ inline void SetCanceled(bool value) { m_canceled = value; } /** *

If true, the calling task runner should cancel processing of the task. The * task runner does not need to call SetTaskStatus for canceled tasks.

*/ inline ReportTaskProgressResult& WithCanceled(bool value) { SetCanceled(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 ReportTaskProgressResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ReportTaskProgressResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ReportTaskProgressResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_canceled; Aws::String m_requestId; }; } // namespace Model } // namespace DataPipeline } // namespace Aws