/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SWF { namespace Model { /** *

Unit of work sent to an activity worker.

See Also:

AWS * API Reference

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

The opaque string used as a handle on the task. This token is used by workers * to communicate progress and response information back to the system about the * task.

*/ inline const Aws::String& GetTaskToken() const{ return m_taskToken; } /** *

The opaque string used as a handle on the task. This token is used by workers * to communicate progress and response information back to the system about the * task.

*/ inline void SetTaskToken(const Aws::String& value) { m_taskToken = value; } /** *

The opaque string used as a handle on the task. This token is used by workers * to communicate progress and response information back to the system about the * task.

*/ inline void SetTaskToken(Aws::String&& value) { m_taskToken = std::move(value); } /** *

The opaque string used as a handle on the task. This token is used by workers * to communicate progress and response information back to the system about the * task.

*/ inline void SetTaskToken(const char* value) { m_taskToken.assign(value); } /** *

The opaque string used as a handle on the task. This token is used by workers * to communicate progress and response information back to the system about the * task.

*/ inline PollForActivityTaskResult& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;} /** *

The opaque string used as a handle on the task. This token is used by workers * to communicate progress and response information back to the system about the * task.

*/ inline PollForActivityTaskResult& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;} /** *

The opaque string used as a handle on the task. This token is used by workers * to communicate progress and response information back to the system about the * task.

*/ inline PollForActivityTaskResult& WithTaskToken(const char* value) { SetTaskToken(value); return *this;} /** *

The unique ID of the task.

*/ inline const Aws::String& GetActivityId() const{ return m_activityId; } /** *

The unique ID of the task.

*/ inline void SetActivityId(const Aws::String& value) { m_activityId = value; } /** *

The unique ID of the task.

*/ inline void SetActivityId(Aws::String&& value) { m_activityId = std::move(value); } /** *

The unique ID of the task.

*/ inline void SetActivityId(const char* value) { m_activityId.assign(value); } /** *

The unique ID of the task.

*/ inline PollForActivityTaskResult& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;} /** *

The unique ID of the task.

*/ inline PollForActivityTaskResult& WithActivityId(Aws::String&& value) { SetActivityId(std::move(value)); return *this;} /** *

The unique ID of the task.

*/ inline PollForActivityTaskResult& WithActivityId(const char* value) { SetActivityId(value); return *this;} /** *

The ID of the ActivityTaskStarted event recorded in the * history.

*/ inline long long GetStartedEventId() const{ return m_startedEventId; } /** *

The ID of the ActivityTaskStarted event recorded in the * history.

*/ inline void SetStartedEventId(long long value) { m_startedEventId = value; } /** *

The ID of the ActivityTaskStarted event recorded in the * history.

*/ inline PollForActivityTaskResult& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;} /** *

The workflow execution that started this activity task.

*/ inline const WorkflowExecution& GetWorkflowExecution() const{ return m_workflowExecution; } /** *

The workflow execution that started this activity task.

*/ inline void SetWorkflowExecution(const WorkflowExecution& value) { m_workflowExecution = value; } /** *

The workflow execution that started this activity task.

*/ inline void SetWorkflowExecution(WorkflowExecution&& value) { m_workflowExecution = std::move(value); } /** *

The workflow execution that started this activity task.

*/ inline PollForActivityTaskResult& WithWorkflowExecution(const WorkflowExecution& value) { SetWorkflowExecution(value); return *this;} /** *

The workflow execution that started this activity task.

*/ inline PollForActivityTaskResult& WithWorkflowExecution(WorkflowExecution&& value) { SetWorkflowExecution(std::move(value)); return *this;} /** *

The type of this activity task.

*/ inline const ActivityType& GetActivityType() const{ return m_activityType; } /** *

The type of this activity task.

*/ inline void SetActivityType(const ActivityType& value) { m_activityType = value; } /** *

The type of this activity task.

*/ inline void SetActivityType(ActivityType&& value) { m_activityType = std::move(value); } /** *

The type of this activity task.

*/ inline PollForActivityTaskResult& WithActivityType(const ActivityType& value) { SetActivityType(value); return *this;} /** *

The type of this activity task.

*/ inline PollForActivityTaskResult& WithActivityType(ActivityType&& value) { SetActivityType(std::move(value)); return *this;} /** *

The inputs provided when the activity task was scheduled. The form of the * input is user defined and should be meaningful to the activity * implementation.

*/ inline const Aws::String& GetInput() const{ return m_input; } /** *

The inputs provided when the activity task was scheduled. The form of the * input is user defined and should be meaningful to the activity * implementation.

*/ inline void SetInput(const Aws::String& value) { m_input = value; } /** *

The inputs provided when the activity task was scheduled. The form of the * input is user defined and should be meaningful to the activity * implementation.

*/ inline void SetInput(Aws::String&& value) { m_input = std::move(value); } /** *

The inputs provided when the activity task was scheduled. The form of the * input is user defined and should be meaningful to the activity * implementation.

*/ inline void SetInput(const char* value) { m_input.assign(value); } /** *

The inputs provided when the activity task was scheduled. The form of the * input is user defined and should be meaningful to the activity * implementation.

*/ inline PollForActivityTaskResult& WithInput(const Aws::String& value) { SetInput(value); return *this;} /** *

The inputs provided when the activity task was scheduled. The form of the * input is user defined and should be meaningful to the activity * implementation.

*/ inline PollForActivityTaskResult& WithInput(Aws::String&& value) { SetInput(std::move(value)); return *this;} /** *

The inputs provided when the activity task was scheduled. The form of the * input is user defined and should be meaningful to the activity * implementation.

*/ inline PollForActivityTaskResult& WithInput(const char* value) { SetInput(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 PollForActivityTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PollForActivityTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PollForActivityTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_taskToken; Aws::String m_activityId; long long m_startedEventId; WorkflowExecution m_workflowExecution; ActivityType m_activityType; Aws::String m_input; Aws::String m_requestId; }; } // namespace Model } // namespace SWF } // namespace Aws