/** * 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 ReportTaskRunnerHeartbeat.

See Also:

* AWS * API Reference

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

Indicates whether the calling task runner should terminate.

*/ inline bool GetTerminate() const{ return m_terminate; } /** *

Indicates whether the calling task runner should terminate.

*/ inline void SetTerminate(bool value) { m_terminate = value; } /** *

Indicates whether the calling task runner should terminate.

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