/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 PollForTask.

See Also:

AWS * API Reference

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

The information needed to complete the task that is being assigned to the * task runner. One of the fields returned in this object is taskId, * which contains an identifier for the task being assigned. The calling task * runner uses taskId in subsequent calls to ReportTaskProgress * and SetTaskStatus.

*/ inline const TaskObject& GetTaskObject() const{ return m_taskObject; } /** *

The information needed to complete the task that is being assigned to the * task runner. One of the fields returned in this object is taskId, * which contains an identifier for the task being assigned. The calling task * runner uses taskId in subsequent calls to ReportTaskProgress * and SetTaskStatus.

*/ inline void SetTaskObject(const TaskObject& value) { m_taskObject = value; } /** *

The information needed to complete the task that is being assigned to the * task runner. One of the fields returned in this object is taskId, * which contains an identifier for the task being assigned. The calling task * runner uses taskId in subsequent calls to ReportTaskProgress * and SetTaskStatus.

*/ inline void SetTaskObject(TaskObject&& value) { m_taskObject = std::move(value); } /** *

The information needed to complete the task that is being assigned to the * task runner. One of the fields returned in this object is taskId, * which contains an identifier for the task being assigned. The calling task * runner uses taskId in subsequent calls to ReportTaskProgress * and SetTaskStatus.

*/ inline PollForTaskResult& WithTaskObject(const TaskObject& value) { SetTaskObject(value); return *this;} /** *

The information needed to complete the task that is being assigned to the * task runner. One of the fields returned in this object is taskId, * which contains an identifier for the task being assigned. The calling task * runner uses taskId in subsequent calls to ReportTaskProgress * and SetTaskStatus.

*/ inline PollForTaskResult& WithTaskObject(TaskObject&& value) { SetTaskObject(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 PollForTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PollForTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PollForTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: TaskObject m_taskObject; Aws::String m_requestId; }; } // namespace Model } // namespace DataPipeline } // namespace Aws