AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartWorkflowExecutionRequest.h
1
6#pragma once
7#include <aws/swf/SWF_EXPORTS.h>
8#include <aws/swf/SWFRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/swf/model/WorkflowType.h>
11#include <aws/swf/model/TaskList.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/swf/model/ChildPolicy.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SWF
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SWF_API StartWorkflowExecutionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartWorkflowExecution"; }
35
36 AWS_SWF_API Aws::String SerializePayload() const override;
37
39
40
42
49 inline const Aws::String& GetDomain() const { return m_domain; }
50 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
51 template<typename DomainT = Aws::String>
52 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
53 template<typename DomainT = Aws::String>
54 StartWorkflowExecutionRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
56
58
69 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
70 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
71 template<typename WorkflowIdT = Aws::String>
72 void SetWorkflowId(WorkflowIdT&& value) { m_workflowIdHasBeenSet = true; m_workflowId = std::forward<WorkflowIdT>(value); }
73 template<typename WorkflowIdT = Aws::String>
74 StartWorkflowExecutionRequest& WithWorkflowId(WorkflowIdT&& value) { SetWorkflowId(std::forward<WorkflowIdT>(value)); return *this;}
76
78
81 inline const WorkflowType& GetWorkflowType() const { return m_workflowType; }
82 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
83 template<typename WorkflowTypeT = WorkflowType>
84 void SetWorkflowType(WorkflowTypeT&& value) { m_workflowTypeHasBeenSet = true; m_workflowType = std::forward<WorkflowTypeT>(value); }
85 template<typename WorkflowTypeT = WorkflowType>
86 StartWorkflowExecutionRequest& WithWorkflowType(WorkflowTypeT&& value) { SetWorkflowType(std::forward<WorkflowTypeT>(value)); return *this;}
88
90
102 inline const TaskList& GetTaskList() const { return m_taskList; }
103 inline bool TaskListHasBeenSet() const { return m_taskListHasBeenSet; }
104 template<typename TaskListT = TaskList>
105 void SetTaskList(TaskListT&& value) { m_taskListHasBeenSet = true; m_taskList = std::forward<TaskListT>(value); }
106 template<typename TaskListT = TaskList>
107 StartWorkflowExecutionRequest& WithTaskList(TaskListT&& value) { SetTaskList(std::forward<TaskListT>(value)); return *this;}
109
111
121 inline const Aws::String& GetTaskPriority() const { return m_taskPriority; }
122 inline bool TaskPriorityHasBeenSet() const { return m_taskPriorityHasBeenSet; }
123 template<typename TaskPriorityT = Aws::String>
124 void SetTaskPriority(TaskPriorityT&& value) { m_taskPriorityHasBeenSet = true; m_taskPriority = std::forward<TaskPriorityT>(value); }
125 template<typename TaskPriorityT = Aws::String>
126 StartWorkflowExecutionRequest& WithTaskPriority(TaskPriorityT&& value) { SetTaskPriority(std::forward<TaskPriorityT>(value)); return *this;}
128
130
136 inline const Aws::String& GetInput() const { return m_input; }
137 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
138 template<typename InputT = Aws::String>
139 void SetInput(InputT&& value) { m_inputHasBeenSet = true; m_input = std::forward<InputT>(value); }
140 template<typename InputT = Aws::String>
141 StartWorkflowExecutionRequest& WithInput(InputT&& value) { SetInput(std::forward<InputT>(value)); return *this;}
143
145
158 inline const Aws::String& GetExecutionStartToCloseTimeout() const { return m_executionStartToCloseTimeout; }
159 inline bool ExecutionStartToCloseTimeoutHasBeenSet() const { return m_executionStartToCloseTimeoutHasBeenSet; }
160 template<typename ExecutionStartToCloseTimeoutT = Aws::String>
161 void SetExecutionStartToCloseTimeout(ExecutionStartToCloseTimeoutT&& value) { m_executionStartToCloseTimeoutHasBeenSet = true; m_executionStartToCloseTimeout = std::forward<ExecutionStartToCloseTimeoutT>(value); }
162 template<typename ExecutionStartToCloseTimeoutT = Aws::String>
163 StartWorkflowExecutionRequest& WithExecutionStartToCloseTimeout(ExecutionStartToCloseTimeoutT&& value) { SetExecutionStartToCloseTimeout(std::forward<ExecutionStartToCloseTimeoutT>(value)); return *this;}
165
167
173 inline const Aws::Vector<Aws::String>& GetTagList() const { return m_tagList; }
174 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
175 template<typename TagListT = Aws::Vector<Aws::String>>
176 void SetTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList = std::forward<TagListT>(value); }
177 template<typename TagListT = Aws::Vector<Aws::String>>
178 StartWorkflowExecutionRequest& WithTagList(TagListT&& value) { SetTagList(std::forward<TagListT>(value)); return *this;}
179 template<typename TagListT = Aws::String>
180 StartWorkflowExecutionRequest& AddTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList.emplace_back(std::forward<TagListT>(value)); return *this; }
182
184
196 inline const Aws::String& GetTaskStartToCloseTimeout() const { return m_taskStartToCloseTimeout; }
197 inline bool TaskStartToCloseTimeoutHasBeenSet() const { return m_taskStartToCloseTimeoutHasBeenSet; }
198 template<typename TaskStartToCloseTimeoutT = Aws::String>
199 void SetTaskStartToCloseTimeout(TaskStartToCloseTimeoutT&& value) { m_taskStartToCloseTimeoutHasBeenSet = true; m_taskStartToCloseTimeout = std::forward<TaskStartToCloseTimeoutT>(value); }
200 template<typename TaskStartToCloseTimeoutT = Aws::String>
201 StartWorkflowExecutionRequest& WithTaskStartToCloseTimeout(TaskStartToCloseTimeoutT&& value) { SetTaskStartToCloseTimeout(std::forward<TaskStartToCloseTimeoutT>(value)); return *this;}
203
205
223 inline ChildPolicy GetChildPolicy() const { return m_childPolicy; }
224 inline bool ChildPolicyHasBeenSet() const { return m_childPolicyHasBeenSet; }
225 inline void SetChildPolicy(ChildPolicy value) { m_childPolicyHasBeenSet = true; m_childPolicy = value; }
228
230
239 inline const Aws::String& GetLambdaRole() const { return m_lambdaRole; }
240 inline bool LambdaRoleHasBeenSet() const { return m_lambdaRoleHasBeenSet; }
241 template<typename LambdaRoleT = Aws::String>
242 void SetLambdaRole(LambdaRoleT&& value) { m_lambdaRoleHasBeenSet = true; m_lambdaRole = std::forward<LambdaRoleT>(value); }
243 template<typename LambdaRoleT = Aws::String>
244 StartWorkflowExecutionRequest& WithLambdaRole(LambdaRoleT&& value) { SetLambdaRole(std::forward<LambdaRoleT>(value)); return *this;}
246 private:
247
248 Aws::String m_domain;
249 bool m_domainHasBeenSet = false;
250
251 Aws::String m_workflowId;
252 bool m_workflowIdHasBeenSet = false;
253
254 WorkflowType m_workflowType;
255 bool m_workflowTypeHasBeenSet = false;
256
257 TaskList m_taskList;
258 bool m_taskListHasBeenSet = false;
259
260 Aws::String m_taskPriority;
261 bool m_taskPriorityHasBeenSet = false;
262
263 Aws::String m_input;
264 bool m_inputHasBeenSet = false;
265
266 Aws::String m_executionStartToCloseTimeout;
267 bool m_executionStartToCloseTimeoutHasBeenSet = false;
268
269 Aws::Vector<Aws::String> m_tagList;
270 bool m_tagListHasBeenSet = false;
271
272 Aws::String m_taskStartToCloseTimeout;
273 bool m_taskStartToCloseTimeoutHasBeenSet = false;
274
275 ChildPolicy m_childPolicy{ChildPolicy::NOT_SET};
276 bool m_childPolicyHasBeenSet = false;
277
278 Aws::String m_lambdaRole;
279 bool m_lambdaRoleHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace SWF
284} // 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