/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A structure that represents a decision task. Decision tasks are sent to
* deciders in order for them to make decisions.See Also:
AWS
* API Reference
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 PollForDecisionTaskResult& 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 PollForDecisionTaskResult& 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 PollForDecisionTaskResult& WithTaskToken(const char* value) { SetTaskToken(value); return *this;} /** *The ID of the DecisionTaskStarted
event recorded in the
* history.
The ID of the DecisionTaskStarted
event recorded in the
* history.
The ID of the DecisionTaskStarted
event recorded in the
* history.
The workflow execution for which this decision task was created.
*/ inline const WorkflowExecution& GetWorkflowExecution() const{ return m_workflowExecution; } /** *The workflow execution for which this decision task was created.
*/ inline void SetWorkflowExecution(const WorkflowExecution& value) { m_workflowExecution = value; } /** *The workflow execution for which this decision task was created.
*/ inline void SetWorkflowExecution(WorkflowExecution&& value) { m_workflowExecution = std::move(value); } /** *The workflow execution for which this decision task was created.
*/ inline PollForDecisionTaskResult& WithWorkflowExecution(const WorkflowExecution& value) { SetWorkflowExecution(value); return *this;} /** *The workflow execution for which this decision task was created.
*/ inline PollForDecisionTaskResult& WithWorkflowExecution(WorkflowExecution&& value) { SetWorkflowExecution(std::move(value)); return *this;} /** *The type of the workflow execution for which this decision task was * created.
*/ inline const WorkflowType& GetWorkflowType() const{ return m_workflowType; } /** *The type of the workflow execution for which this decision task was * created.
*/ inline void SetWorkflowType(const WorkflowType& value) { m_workflowType = value; } /** *The type of the workflow execution for which this decision task was * created.
*/ inline void SetWorkflowType(WorkflowType&& value) { m_workflowType = std::move(value); } /** *The type of the workflow execution for which this decision task was * created.
*/ inline PollForDecisionTaskResult& WithWorkflowType(const WorkflowType& value) { SetWorkflowType(value); return *this;} /** *The type of the workflow execution for which this decision task was * created.
*/ inline PollForDecisionTaskResult& WithWorkflowType(WorkflowType&& value) { SetWorkflowType(std::move(value)); return *this;} /** *A paginated list of history events of the workflow execution. The decider * uses this during the processing of the decision task.
*/ inline const Aws::VectorA paginated list of history events of the workflow execution. The decider * uses this during the processing of the decision task.
*/ inline void SetEvents(const Aws::VectorA paginated list of history events of the workflow execution. The decider * uses this during the processing of the decision task.
*/ inline void SetEvents(Aws::VectorA paginated list of history events of the workflow execution. The decider * uses this during the processing of the decision task.
*/ inline PollForDecisionTaskResult& WithEvents(const Aws::VectorA paginated list of history events of the workflow execution. The decider * uses this during the processing of the decision task.
*/ inline PollForDecisionTaskResult& WithEvents(Aws::VectorA paginated list of history events of the workflow execution. The decider * uses this during the processing of the decision task.
*/ inline PollForDecisionTaskResult& AddEvents(const HistoryEvent& value) { m_events.push_back(value); return *this; } /** *A paginated list of history events of the workflow execution. The decider * uses this during the processing of the decision task.
*/ inline PollForDecisionTaskResult& AddEvents(HistoryEvent&& value) { m_events.push_back(std::move(value)); return *this; } /** *If a NextPageToken
was returned by a previous call, there are
* more results available. To retrieve the next page of results, make the call
* again using the returned token in nextPageToken
. Keep all other
* arguments unchanged.
The configured maximumPageSize
* determines how many results can be returned in a single call.
If a NextPageToken
was returned by a previous call, there are
* more results available. To retrieve the next page of results, make the call
* again using the returned token in nextPageToken
. Keep all other
* arguments unchanged.
The configured maximumPageSize
* determines how many results can be returned in a single call.
If a NextPageToken
was returned by a previous call, there are
* more results available. To retrieve the next page of results, make the call
* again using the returned token in nextPageToken
. Keep all other
* arguments unchanged.
The configured maximumPageSize
* determines how many results can be returned in a single call.
If a NextPageToken
was returned by a previous call, there are
* more results available. To retrieve the next page of results, make the call
* again using the returned token in nextPageToken
. Keep all other
* arguments unchanged.
The configured maximumPageSize
* determines how many results can be returned in a single call.
If a NextPageToken
was returned by a previous call, there are
* more results available. To retrieve the next page of results, make the call
* again using the returned token in nextPageToken
. Keep all other
* arguments unchanged.
The configured maximumPageSize
* determines how many results can be returned in a single call.
If a NextPageToken
was returned by a previous call, there are
* more results available. To retrieve the next page of results, make the call
* again using the returned token in nextPageToken
. Keep all other
* arguments unchanged.
The configured maximumPageSize
* determines how many results can be returned in a single call.
If a NextPageToken
was returned by a previous call, there are
* more results available. To retrieve the next page of results, make the call
* again using the returned token in nextPageToken
. Keep all other
* arguments unchanged.
The configured maximumPageSize
* determines how many results can be returned in a single call.
The ID of the DecisionTaskStarted event of the previous decision task of this * workflow execution that was processed by the decider. This can be used to * determine the events in the history new since the last decision task received by * the decider.
*/ inline long long GetPreviousStartedEventId() const{ return m_previousStartedEventId; } /** *The ID of the DecisionTaskStarted event of the previous decision task of this * workflow execution that was processed by the decider. This can be used to * determine the events in the history new since the last decision task received by * the decider.
*/ inline void SetPreviousStartedEventId(long long value) { m_previousStartedEventId = value; } /** *The ID of the DecisionTaskStarted event of the previous decision task of this * workflow execution that was processed by the decider. This can be used to * determine the events in the history new since the last decision task received by * the decider.
*/ inline PollForDecisionTaskResult& WithPreviousStartedEventId(long long value) { SetPreviousStartedEventId(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 PollForDecisionTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PollForDecisionTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PollForDecisionTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_taskToken; long long m_startedEventId; WorkflowExecution m_workflowExecution; WorkflowType m_workflowType; Aws::Vector