AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PollForDecisionTaskResult.h
1
6#pragma once
7#include <aws/swf/SWF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/swf/model/WorkflowExecution.h>
10#include <aws/swf/model/WorkflowType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/swf/model/HistoryEvent.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SWF
28{
29namespace Model
30{
38 {
39 public:
40 AWS_SWF_API PollForDecisionTaskResult() = default;
43
44
46
51 inline const Aws::String& GetTaskToken() const { return m_taskToken; }
52 template<typename TaskTokenT = Aws::String>
53 void SetTaskToken(TaskTokenT&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::forward<TaskTokenT>(value); }
54 template<typename TaskTokenT = Aws::String>
55 PollForDecisionTaskResult& WithTaskToken(TaskTokenT&& value) { SetTaskToken(std::forward<TaskTokenT>(value)); return *this;}
57
59
63 inline long long GetStartedEventId() const { return m_startedEventId; }
64 inline void SetStartedEventId(long long value) { m_startedEventIdHasBeenSet = true; m_startedEventId = value; }
65 inline PollForDecisionTaskResult& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;}
67
69
72 inline const WorkflowExecution& GetWorkflowExecution() const { return m_workflowExecution; }
73 template<typename WorkflowExecutionT = WorkflowExecution>
74 void SetWorkflowExecution(WorkflowExecutionT&& value) { m_workflowExecutionHasBeenSet = true; m_workflowExecution = std::forward<WorkflowExecutionT>(value); }
75 template<typename WorkflowExecutionT = WorkflowExecution>
76 PollForDecisionTaskResult& WithWorkflowExecution(WorkflowExecutionT&& value) { SetWorkflowExecution(std::forward<WorkflowExecutionT>(value)); return *this;}
78
80
84 inline const WorkflowType& GetWorkflowType() const { return m_workflowType; }
85 template<typename WorkflowTypeT = WorkflowType>
86 void SetWorkflowType(WorkflowTypeT&& value) { m_workflowTypeHasBeenSet = true; m_workflowType = std::forward<WorkflowTypeT>(value); }
87 template<typename WorkflowTypeT = WorkflowType>
88 PollForDecisionTaskResult& WithWorkflowType(WorkflowTypeT&& value) { SetWorkflowType(std::forward<WorkflowTypeT>(value)); return *this;}
90
92
96 inline const Aws::Vector<HistoryEvent>& GetEvents() const { return m_events; }
97 template<typename EventsT = Aws::Vector<HistoryEvent>>
98 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
99 template<typename EventsT = Aws::Vector<HistoryEvent>>
100 PollForDecisionTaskResult& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
101 template<typename EventsT = HistoryEvent>
102 PollForDecisionTaskResult& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
104
106
113 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
114 template<typename NextPageTokenT = Aws::String>
115 void SetNextPageToken(NextPageTokenT&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::forward<NextPageTokenT>(value); }
116 template<typename NextPageTokenT = Aws::String>
117 PollForDecisionTaskResult& WithNextPageToken(NextPageTokenT&& value) { SetNextPageToken(std::forward<NextPageTokenT>(value)); return *this;}
119
121
127 inline long long GetPreviousStartedEventId() const { return m_previousStartedEventId; }
128 inline void SetPreviousStartedEventId(long long value) { m_previousStartedEventIdHasBeenSet = true; m_previousStartedEventId = value; }
131
133
134 inline const Aws::String& GetRequestId() const { return m_requestId; }
135 template<typename RequestIdT = Aws::String>
136 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
137 template<typename RequestIdT = Aws::String>
138 PollForDecisionTaskResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
140 private:
141
142 Aws::String m_taskToken;
143 bool m_taskTokenHasBeenSet = false;
144
145 long long m_startedEventId{0};
146 bool m_startedEventIdHasBeenSet = false;
147
148 WorkflowExecution m_workflowExecution;
149 bool m_workflowExecutionHasBeenSet = false;
150
151 WorkflowType m_workflowType;
152 bool m_workflowTypeHasBeenSet = false;
153
155 bool m_eventsHasBeenSet = false;
156
157 Aws::String m_nextPageToken;
158 bool m_nextPageTokenHasBeenSet = false;
159
160 long long m_previousStartedEventId{0};
161 bool m_previousStartedEventIdHasBeenSet = false;
162
163 Aws::String m_requestId;
164 bool m_requestIdHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace SWF
169} // namespace Aws
PollForDecisionTaskResult & WithWorkflowType(WorkflowTypeT &&value)
PollForDecisionTaskResult & AddEvents(EventsT &&value)
PollForDecisionTaskResult & WithNextPageToken(NextPageTokenT &&value)
PollForDecisionTaskResult & WithEvents(EventsT &&value)
PollForDecisionTaskResult & WithStartedEventId(long long value)
PollForDecisionTaskResult & WithWorkflowExecution(WorkflowExecutionT &&value)
PollForDecisionTaskResult & WithPreviousStartedEventId(long long value)
const Aws::Vector< HistoryEvent > & GetEvents() const
PollForDecisionTaskResult & WithTaskToken(TaskTokenT &&value)
AWS_SWF_API PollForDecisionTaskResult()=default
AWS_SWF_API PollForDecisionTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PollForDecisionTaskResult & WithRequestId(RequestIdT &&value)
AWS_SWF_API PollForDecisionTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const WorkflowExecution & GetWorkflowExecution() const
void SetWorkflowExecution(WorkflowExecutionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue