AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StartWorkflowExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/swf/SWFRequest.h>
10#include <aws/swf/SWF_EXPORTS.h>
11#include <aws/swf/model/ChildPolicy.h>
12#include <aws/swf/model/TaskList.h>
13#include <aws/swf/model/WorkflowType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SWF {
19namespace Model {
20
24 public:
25 AWS_SWF_API StartWorkflowExecutionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartWorkflowExecution"; }
32
33 AWS_SWF_API Aws::String SerializePayload() const override;
34
36
38
45 inline const Aws::String& GetDomain() const { return m_domain; }
46 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
47 template <typename DomainT = Aws::String>
48 void SetDomain(DomainT&& value) {
49 m_domainHasBeenSet = true;
50 m_domain = std::forward<DomainT>(value);
51 }
52 template <typename DomainT = Aws::String>
54 SetDomain(std::forward<DomainT>(value));
55 return *this;
56 }
58
60
71 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
72 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
73 template <typename WorkflowIdT = Aws::String>
74 void SetWorkflowId(WorkflowIdT&& value) {
75 m_workflowIdHasBeenSet = true;
76 m_workflowId = std::forward<WorkflowIdT>(value);
77 }
78 template <typename WorkflowIdT = Aws::String>
80 SetWorkflowId(std::forward<WorkflowIdT>(value));
81 return *this;
82 }
84
86
89 inline const WorkflowType& GetWorkflowType() const { return m_workflowType; }
90 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
91 template <typename WorkflowTypeT = WorkflowType>
92 void SetWorkflowType(WorkflowTypeT&& value) {
93 m_workflowTypeHasBeenSet = true;
94 m_workflowType = std::forward<WorkflowTypeT>(value);
95 }
96 template <typename WorkflowTypeT = WorkflowType>
98 SetWorkflowType(std::forward<WorkflowTypeT>(value));
99 return *this;
100 }
102
104
116 inline const TaskList& GetTaskList() const { return m_taskList; }
117 inline bool TaskListHasBeenSet() const { return m_taskListHasBeenSet; }
118 template <typename TaskListT = TaskList>
119 void SetTaskList(TaskListT&& value) {
120 m_taskListHasBeenSet = true;
121 m_taskList = std::forward<TaskListT>(value);
122 }
123 template <typename TaskListT = TaskList>
125 SetTaskList(std::forward<TaskListT>(value));
126 return *this;
127 }
129
131
141 inline const Aws::String& GetTaskPriority() const { return m_taskPriority; }
142 inline bool TaskPriorityHasBeenSet() const { return m_taskPriorityHasBeenSet; }
143 template <typename TaskPriorityT = Aws::String>
144 void SetTaskPriority(TaskPriorityT&& value) {
145 m_taskPriorityHasBeenSet = true;
146 m_taskPriority = std::forward<TaskPriorityT>(value);
147 }
148 template <typename TaskPriorityT = Aws::String>
150 SetTaskPriority(std::forward<TaskPriorityT>(value));
151 return *this;
152 }
154
156
162 inline const Aws::String& GetInput() const { return m_input; }
163 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
164 template <typename InputT = Aws::String>
165 void SetInput(InputT&& value) {
166 m_inputHasBeenSet = true;
167 m_input = std::forward<InputT>(value);
168 }
169 template <typename InputT = Aws::String>
171 SetInput(std::forward<InputT>(value));
172 return *this;
173 }
175
177
190 inline const Aws::String& GetExecutionStartToCloseTimeout() const { return m_executionStartToCloseTimeout; }
191 inline bool ExecutionStartToCloseTimeoutHasBeenSet() const { return m_executionStartToCloseTimeoutHasBeenSet; }
192 template <typename ExecutionStartToCloseTimeoutT = Aws::String>
193 void SetExecutionStartToCloseTimeout(ExecutionStartToCloseTimeoutT&& value) {
194 m_executionStartToCloseTimeoutHasBeenSet = true;
195 m_executionStartToCloseTimeout = std::forward<ExecutionStartToCloseTimeoutT>(value);
196 }
197 template <typename ExecutionStartToCloseTimeoutT = Aws::String>
198 StartWorkflowExecutionRequest& WithExecutionStartToCloseTimeout(ExecutionStartToCloseTimeoutT&& value) {
199 SetExecutionStartToCloseTimeout(std::forward<ExecutionStartToCloseTimeoutT>(value));
200 return *this;
201 }
203
205
211 inline const Aws::Vector<Aws::String>& GetTagList() const { return m_tagList; }
212 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
213 template <typename TagListT = Aws::Vector<Aws::String>>
214 void SetTagList(TagListT&& value) {
215 m_tagListHasBeenSet = true;
216 m_tagList = std::forward<TagListT>(value);
217 }
218 template <typename TagListT = Aws::Vector<Aws::String>>
220 SetTagList(std::forward<TagListT>(value));
221 return *this;
222 }
223 template <typename TagListT = Aws::String>
225 m_tagListHasBeenSet = true;
226 m_tagList.emplace_back(std::forward<TagListT>(value));
227 return *this;
228 }
230
232
244 inline const Aws::String& GetTaskStartToCloseTimeout() const { return m_taskStartToCloseTimeout; }
245 inline bool TaskStartToCloseTimeoutHasBeenSet() const { return m_taskStartToCloseTimeoutHasBeenSet; }
246 template <typename TaskStartToCloseTimeoutT = Aws::String>
247 void SetTaskStartToCloseTimeout(TaskStartToCloseTimeoutT&& value) {
248 m_taskStartToCloseTimeoutHasBeenSet = true;
249 m_taskStartToCloseTimeout = std::forward<TaskStartToCloseTimeoutT>(value);
250 }
251 template <typename TaskStartToCloseTimeoutT = Aws::String>
253 SetTaskStartToCloseTimeout(std::forward<TaskStartToCloseTimeoutT>(value));
254 return *this;
255 }
257
259
277 inline ChildPolicy GetChildPolicy() const { return m_childPolicy; }
278 inline bool ChildPolicyHasBeenSet() const { return m_childPolicyHasBeenSet; }
279 inline void SetChildPolicy(ChildPolicy value) {
280 m_childPolicyHasBeenSet = true;
281 m_childPolicy = value;
282 }
284 SetChildPolicy(value);
285 return *this;
286 }
288
290
299 inline const Aws::String& GetLambdaRole() const { return m_lambdaRole; }
300 inline bool LambdaRoleHasBeenSet() const { return m_lambdaRoleHasBeenSet; }
301 template <typename LambdaRoleT = Aws::String>
302 void SetLambdaRole(LambdaRoleT&& value) {
303 m_lambdaRoleHasBeenSet = true;
304 m_lambdaRole = std::forward<LambdaRoleT>(value);
305 }
306 template <typename LambdaRoleT = Aws::String>
308 SetLambdaRole(std::forward<LambdaRoleT>(value));
309 return *this;
310 }
312 private:
313 Aws::String m_domain;
314
315 Aws::String m_workflowId;
316
317 WorkflowType m_workflowType;
318
319 TaskList m_taskList;
320
321 Aws::String m_taskPriority;
322
323 Aws::String m_input;
324
325 Aws::String m_executionStartToCloseTimeout;
326
327 Aws::Vector<Aws::String> m_tagList;
328
329 Aws::String m_taskStartToCloseTimeout;
330
331 ChildPolicy m_childPolicy{ChildPolicy::NOT_SET};
332
333 Aws::String m_lambdaRole;
334 bool m_domainHasBeenSet = false;
335 bool m_workflowIdHasBeenSet = false;
336 bool m_workflowTypeHasBeenSet = false;
337 bool m_taskListHasBeenSet = false;
338 bool m_taskPriorityHasBeenSet = false;
339 bool m_inputHasBeenSet = false;
340 bool m_executionStartToCloseTimeoutHasBeenSet = false;
341 bool m_tagListHasBeenSet = false;
342 bool m_taskStartToCloseTimeoutHasBeenSet = false;
343 bool m_childPolicyHasBeenSet = false;
344 bool m_lambdaRoleHasBeenSet = false;
345};
346
347} // namespace Model
348} // namespace SWF
349} // namespace Aws
StartWorkflowExecutionRequest & WithTaskPriority(TaskPriorityT &&value)
StartWorkflowExecutionRequest & WithInput(InputT &&value)
virtual const char * GetServiceRequestName() const override
StartWorkflowExecutionRequest & WithChildPolicy(ChildPolicy value)
StartWorkflowExecutionRequest & WithTaskList(TaskListT &&value)
StartWorkflowExecutionRequest & WithDomain(DomainT &&value)
StartWorkflowExecutionRequest & AddTagList(TagListT &&value)
StartWorkflowExecutionRequest & WithWorkflowType(WorkflowTypeT &&value)
StartWorkflowExecutionRequest & WithTaskStartToCloseTimeout(TaskStartToCloseTimeoutT &&value)
StartWorkflowExecutionRequest & WithWorkflowId(WorkflowIdT &&value)
StartWorkflowExecutionRequest & WithLambdaRole(LambdaRoleT &&value)
AWS_SWF_API Aws::String SerializePayload() const override
StartWorkflowExecutionRequest & WithExecutionStartToCloseTimeout(ExecutionStartToCloseTimeoutT &&value)
StartWorkflowExecutionRequest & WithTagList(TagListT &&value)
void SetExecutionStartToCloseTimeout(ExecutionStartToCloseTimeoutT &&value)
void SetTaskStartToCloseTimeout(TaskStartToCloseTimeoutT &&value)
const Aws::Vector< Aws::String > & GetTagList() const
AWS_SWF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector