AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
43
44
46
51 inline const Aws::String& GetTaskToken() const{ return m_taskToken; }
52 inline void SetTaskToken(const Aws::String& value) { m_taskToken = value; }
53 inline void SetTaskToken(Aws::String&& value) { m_taskToken = std::move(value); }
54 inline void SetTaskToken(const char* value) { m_taskToken.assign(value); }
55 inline PollForDecisionTaskResult& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
56 inline PollForDecisionTaskResult& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;}
57 inline PollForDecisionTaskResult& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
59
61
65 inline long long GetStartedEventId() const{ return m_startedEventId; }
66 inline void SetStartedEventId(long long value) { m_startedEventId = value; }
67 inline PollForDecisionTaskResult& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;}
69
71
74 inline const WorkflowExecution& GetWorkflowExecution() const{ return m_workflowExecution; }
75 inline void SetWorkflowExecution(const WorkflowExecution& value) { m_workflowExecution = value; }
76 inline void SetWorkflowExecution(WorkflowExecution&& value) { m_workflowExecution = std::move(value); }
80
82
86 inline const WorkflowType& GetWorkflowType() const{ return m_workflowType; }
87 inline void SetWorkflowType(const WorkflowType& value) { m_workflowType = value; }
88 inline void SetWorkflowType(WorkflowType&& value) { m_workflowType = std::move(value); }
89 inline PollForDecisionTaskResult& WithWorkflowType(const WorkflowType& value) { SetWorkflowType(value); return *this;}
90 inline PollForDecisionTaskResult& WithWorkflowType(WorkflowType&& value) { SetWorkflowType(std::move(value)); return *this;}
92
94
98 inline const Aws::Vector<HistoryEvent>& GetEvents() const{ return m_events; }
99 inline void SetEvents(const Aws::Vector<HistoryEvent>& value) { m_events = value; }
100 inline void SetEvents(Aws::Vector<HistoryEvent>&& value) { m_events = std::move(value); }
101 inline PollForDecisionTaskResult& WithEvents(const Aws::Vector<HistoryEvent>& value) { SetEvents(value); return *this;}
102 inline PollForDecisionTaskResult& WithEvents(Aws::Vector<HistoryEvent>&& value) { SetEvents(std::move(value)); return *this;}
103 inline PollForDecisionTaskResult& AddEvents(const HistoryEvent& value) { m_events.push_back(value); return *this; }
104 inline PollForDecisionTaskResult& AddEvents(HistoryEvent&& value) { m_events.push_back(std::move(value)); return *this; }
106
108
115 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
116 inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
117 inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
118 inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
119 inline PollForDecisionTaskResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
120 inline PollForDecisionTaskResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
121 inline PollForDecisionTaskResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
123
125
131 inline long long GetPreviousStartedEventId() const{ return m_previousStartedEventId; }
132 inline void SetPreviousStartedEventId(long long value) { m_previousStartedEventId = value; }
135
137
138 inline const Aws::String& GetRequestId() const{ return m_requestId; }
139 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
140 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
141 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
142 inline PollForDecisionTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
143 inline PollForDecisionTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
144 inline PollForDecisionTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
146 private:
147
148 Aws::String m_taskToken;
149
150 long long m_startedEventId;
151
152 WorkflowExecution m_workflowExecution;
153
154 WorkflowType m_workflowType;
155
157
158 Aws::String m_nextPageToken;
159
160 long long m_previousStartedEventId;
161
162 Aws::String m_requestId;
163 };
164
165} // namespace Model
166} // namespace SWF
167} // namespace Aws
PollForDecisionTaskResult & WithNextPageToken(const Aws::String &value)
PollForDecisionTaskResult & WithEvents(Aws::Vector< HistoryEvent > &&value)
PollForDecisionTaskResult & WithStartedEventId(long long value)
PollForDecisionTaskResult & WithPreviousStartedEventId(long long value)
PollForDecisionTaskResult & WithTaskToken(const char *value)
void SetWorkflowExecution(const WorkflowExecution &value)
PollForDecisionTaskResult & WithNextPageToken(Aws::String &&value)
const Aws::Vector< HistoryEvent > & GetEvents() const
void SetWorkflowExecution(WorkflowExecution &&value)
void SetEvents(Aws::Vector< HistoryEvent > &&value)
PollForDecisionTaskResult & WithWorkflowType(const WorkflowType &value)
AWS_SWF_API PollForDecisionTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PollForDecisionTaskResult & WithTaskToken(Aws::String &&value)
PollForDecisionTaskResult & AddEvents(const HistoryEvent &value)
PollForDecisionTaskResult & WithNextPageToken(const char *value)
PollForDecisionTaskResult & WithWorkflowType(WorkflowType &&value)
AWS_SWF_API PollForDecisionTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PollForDecisionTaskResult & WithEvents(const Aws::Vector< HistoryEvent > &value)
const WorkflowExecution & GetWorkflowExecution() const
PollForDecisionTaskResult & WithRequestId(Aws::String &&value)
PollForDecisionTaskResult & WithWorkflowExecution(const WorkflowExecution &value)
PollForDecisionTaskResult & WithRequestId(const Aws::String &value)
PollForDecisionTaskResult & WithWorkflowExecution(WorkflowExecution &&value)
PollForDecisionTaskResult & AddEvents(HistoryEvent &&value)
PollForDecisionTaskResult & WithRequestId(const char *value)
PollForDecisionTaskResult & WithTaskToken(const Aws::String &value)
void SetEvents(const Aws::Vector< HistoryEvent > &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