AWS SDK for C++  0.14.3
AWS SDK for C++
PollForDecisionTaskResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/swf/SWF_EXPORTS.h>
22 
23 namespace Aws
24 {
25 template<typename RESULT_TYPE>
26 class AmazonWebServiceResult;
27 
28 namespace Utils
29 {
30 namespace Json
31 {
32  class JsonValue;
33 } // namespace Json
34 } // namespace Utils
35 namespace SWF
36 {
37 namespace Model
38 {
44  {
45  public:
49 
55  inline const Aws::String& GetTaskToken() const{ return m_taskToken; }
56 
62  inline void SetTaskToken(const Aws::String& value) { m_taskToken = value; }
63 
69  inline void SetTaskToken(Aws::String&& value) { m_taskToken = value; }
70 
76  inline void SetTaskToken(const char* value) { m_taskToken.assign(value); }
77 
83  inline PollForDecisionTaskResult& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
84 
90  inline PollForDecisionTaskResult& WithTaskToken(Aws::String&& value) { SetTaskToken(value); return *this;}
91 
97  inline PollForDecisionTaskResult& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
98 
103  inline long long GetStartedEventId() const{ return m_startedEventId; }
104 
109  inline void SetStartedEventId(long long value) { m_startedEventId = value; }
110 
115  inline PollForDecisionTaskResult& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;}
116 
120  inline const WorkflowExecution& GetWorkflowExecution() const{ return m_workflowExecution; }
121 
125  inline void SetWorkflowExecution(const WorkflowExecution& value) { m_workflowExecution = value; }
126 
130  inline void SetWorkflowExecution(WorkflowExecution&& value) { m_workflowExecution = value; }
131 
135  inline PollForDecisionTaskResult& WithWorkflowExecution(const WorkflowExecution& value) { SetWorkflowExecution(value); return *this;}
136 
140  inline PollForDecisionTaskResult& WithWorkflowExecution(WorkflowExecution&& value) { SetWorkflowExecution(value); return *this;}
141 
146  inline const WorkflowType& GetWorkflowType() const{ return m_workflowType; }
147 
152  inline void SetWorkflowType(const WorkflowType& value) { m_workflowType = value; }
153 
158  inline void SetWorkflowType(WorkflowType&& value) { m_workflowType = value; }
159 
164  inline PollForDecisionTaskResult& WithWorkflowType(const WorkflowType& value) { SetWorkflowType(value); return *this;}
165 
170  inline PollForDecisionTaskResult& WithWorkflowType(WorkflowType&& value) { SetWorkflowType(value); return *this;}
171 
176  inline const Aws::Vector<HistoryEvent>& GetEvents() const{ return m_events; }
177 
182  inline void SetEvents(const Aws::Vector<HistoryEvent>& value) { m_events = value; }
183 
188  inline void SetEvents(Aws::Vector<HistoryEvent>&& value) { m_events = value; }
189 
194  inline PollForDecisionTaskResult& WithEvents(const Aws::Vector<HistoryEvent>& value) { SetEvents(value); return *this;}
195 
200  inline PollForDecisionTaskResult& WithEvents(Aws::Vector<HistoryEvent>&& value) { SetEvents(value); return *this;}
201 
206  inline PollForDecisionTaskResult& AddEvents(const HistoryEvent& value) { m_events.push_back(value); return *this; }
207 
212  inline PollForDecisionTaskResult& AddEvents(HistoryEvent&& value) { m_events.push_back(value); return *this; }
213 
221  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
222 
230  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
231 
239  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = value; }
240 
248  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
249 
257  inline PollForDecisionTaskResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
258 
266  inline PollForDecisionTaskResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(value); return *this;}
267 
275  inline PollForDecisionTaskResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
276 
283  inline long long GetPreviousStartedEventId() const{ return m_previousStartedEventId; }
284 
291  inline void SetPreviousStartedEventId(long long value) { m_previousStartedEventId = value; }
292 
299  inline PollForDecisionTaskResult& WithPreviousStartedEventId(long long value) { SetPreviousStartedEventId(value); return *this;}
300 
301  private:
302  Aws::String m_taskToken;
303  long long m_startedEventId;
304  WorkflowExecution m_workflowExecution;
305  WorkflowType m_workflowType;
306  Aws::Vector<HistoryEvent> m_events;
307  Aws::String m_nextPageToken;
308  long long m_previousStartedEventId;
309  };
310 
311 } // namespace Model
312 } // namespace SWF
313 } // namespace Aws
const WorkflowExecution & GetWorkflowExecution() const
PollForDecisionTaskResult & WithWorkflowExecution(const WorkflowExecution &value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
PollForDecisionTaskResult & WithTaskToken(const char *value)
void SetWorkflowExecution(const WorkflowExecution &value)
PollForDecisionTaskResult & WithWorkflowType(const WorkflowType &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
PollForDecisionTaskResult & AddEvents(HistoryEvent &&value)
PollForDecisionTaskResult & WithPreviousStartedEventId(long long value)
PollForDecisionTaskResult & WithTaskToken(Aws::String &&value)
PollForDecisionTaskResult & WithStartedEventId(long long value)
PollForDecisionTaskResult & WithEvents(const Aws::Vector< HistoryEvent > &value)
PollForDecisionTaskResult & WithEvents(Aws::Vector< HistoryEvent > &&value)
PollForDecisionTaskResult & WithTaskToken(const Aws::String &value)
PollForDecisionTaskResult & WithWorkflowType(WorkflowType &&value)
PollForDecisionTaskResult & WithNextPageToken(const Aws::String &value)
PollForDecisionTaskResult & WithNextPageToken(Aws::String &&value)
PollForDecisionTaskResult & AddEvents(const HistoryEvent &value)
PollForDecisionTaskResult & WithNextPageToken(const char *value)
void SetWorkflowExecution(WorkflowExecution &&value)
PollForDecisionTaskResult & WithWorkflowExecution(WorkflowExecution &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetEvents(Aws::Vector< HistoryEvent > &&value)
const Aws::Vector< HistoryEvent > & GetEvents() const
JSON (JavaScript Object Notation).
void SetEvents(const Aws::Vector< HistoryEvent > &value)