AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
WorkflowExecutionInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/swf/SWF_EXPORTS.h>
11#include <aws/swf/model/CloseStatus.h>
12#include <aws/swf/model/ExecutionStatus.h>
13#include <aws/swf/model/WorkflowExecution.h>
14#include <aws/swf/model/WorkflowType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SWF {
26namespace Model {
27
35 public:
36 AWS_SWF_API WorkflowExecutionInfo() = default;
40
42
45 inline const WorkflowExecution& GetExecution() const { return m_execution; }
46 inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; }
47 template <typename ExecutionT = WorkflowExecution>
48 void SetExecution(ExecutionT&& value) {
49 m_executionHasBeenSet = true;
50 m_execution = std::forward<ExecutionT>(value);
51 }
52 template <typename ExecutionT = WorkflowExecution>
53 WorkflowExecutionInfo& WithExecution(ExecutionT&& value) {
54 SetExecution(std::forward<ExecutionT>(value));
55 return *this;
56 }
58
60
63 inline const WorkflowType& GetWorkflowType() const { return m_workflowType; }
64 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
65 template <typename WorkflowTypeT = WorkflowType>
66 void SetWorkflowType(WorkflowTypeT&& value) {
67 m_workflowTypeHasBeenSet = true;
68 m_workflowType = std::forward<WorkflowTypeT>(value);
69 }
70 template <typename WorkflowTypeT = WorkflowType>
71 WorkflowExecutionInfo& WithWorkflowType(WorkflowTypeT&& value) {
72 SetWorkflowType(std::forward<WorkflowTypeT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
82 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
83 template <typename StartTimestampT = Aws::Utils::DateTime>
84 void SetStartTimestamp(StartTimestampT&& value) {
85 m_startTimestampHasBeenSet = true;
86 m_startTimestamp = std::forward<StartTimestampT>(value);
87 }
88 template <typename StartTimestampT = Aws::Utils::DateTime>
89 WorkflowExecutionInfo& WithStartTimestamp(StartTimestampT&& value) {
90 SetStartTimestamp(std::forward<StartTimestampT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Utils::DateTime& GetCloseTimestamp() const { return m_closeTimestamp; }
101 inline bool CloseTimestampHasBeenSet() const { return m_closeTimestampHasBeenSet; }
102 template <typename CloseTimestampT = Aws::Utils::DateTime>
103 void SetCloseTimestamp(CloseTimestampT&& value) {
104 m_closeTimestampHasBeenSet = true;
105 m_closeTimestamp = std::forward<CloseTimestampT>(value);
106 }
107 template <typename CloseTimestampT = Aws::Utils::DateTime>
108 WorkflowExecutionInfo& WithCloseTimestamp(CloseTimestampT&& value) {
109 SetCloseTimestamp(std::forward<CloseTimestampT>(value));
110 return *this;
111 }
113
115
118 inline ExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
119 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
121 m_executionStatusHasBeenSet = true;
122 m_executionStatus = value;
123 }
125 SetExecutionStatus(value);
126 return *this;
127 }
129
131
144 inline CloseStatus GetCloseStatus() const { return m_closeStatus; }
145 inline bool CloseStatusHasBeenSet() const { return m_closeStatusHasBeenSet; }
146 inline void SetCloseStatus(CloseStatus value) {
147 m_closeStatusHasBeenSet = true;
148 m_closeStatus = value;
149 }
151 SetCloseStatus(value);
152 return *this;
153 }
155
157
161 inline const WorkflowExecution& GetParent() const { return m_parent; }
162 inline bool ParentHasBeenSet() const { return m_parentHasBeenSet; }
163 template <typename ParentT = WorkflowExecution>
164 void SetParent(ParentT&& value) {
165 m_parentHasBeenSet = true;
166 m_parent = std::forward<ParentT>(value);
167 }
168 template <typename ParentT = WorkflowExecution>
170 SetParent(std::forward<ParentT>(value));
171 return *this;
172 }
174
176
181 inline const Aws::Vector<Aws::String>& GetTagList() const { return m_tagList; }
182 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
183 template <typename TagListT = Aws::Vector<Aws::String>>
184 void SetTagList(TagListT&& value) {
185 m_tagListHasBeenSet = true;
186 m_tagList = std::forward<TagListT>(value);
187 }
188 template <typename TagListT = Aws::Vector<Aws::String>>
190 SetTagList(std::forward<TagListT>(value));
191 return *this;
192 }
193 template <typename TagListT = Aws::String>
195 m_tagListHasBeenSet = true;
196 m_tagList.emplace_back(std::forward<TagListT>(value));
197 return *this;
198 }
200
202
205 inline bool GetCancelRequested() const { return m_cancelRequested; }
206 inline bool CancelRequestedHasBeenSet() const { return m_cancelRequestedHasBeenSet; }
207 inline void SetCancelRequested(bool value) {
208 m_cancelRequestedHasBeenSet = true;
209 m_cancelRequested = value;
210 }
212 SetCancelRequested(value);
213 return *this;
214 }
216 private:
217 WorkflowExecution m_execution;
218
219 WorkflowType m_workflowType;
220
221 Aws::Utils::DateTime m_startTimestamp{};
222
223 Aws::Utils::DateTime m_closeTimestamp{};
224
225 ExecutionStatus m_executionStatus{ExecutionStatus::NOT_SET};
226
227 CloseStatus m_closeStatus{CloseStatus::NOT_SET};
228
229 WorkflowExecution m_parent;
230
231 Aws::Vector<Aws::String> m_tagList;
232
233 bool m_cancelRequested{false};
234 bool m_executionHasBeenSet = false;
235 bool m_workflowTypeHasBeenSet = false;
236 bool m_startTimestampHasBeenSet = false;
237 bool m_closeTimestampHasBeenSet = false;
238 bool m_executionStatusHasBeenSet = false;
239 bool m_closeStatusHasBeenSet = false;
240 bool m_parentHasBeenSet = false;
241 bool m_tagListHasBeenSet = false;
242 bool m_cancelRequestedHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace SWF
247} // namespace Aws
void SetCloseTimestamp(CloseTimestampT &&value)
WorkflowExecutionInfo & WithStartTimestamp(StartTimestampT &&value)
const WorkflowType & GetWorkflowType() const
AWS_SWF_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowExecutionInfo & WithCancelRequested(bool value)
void SetStartTimestamp(StartTimestampT &&value)
WorkflowExecutionInfo & WithExecutionStatus(ExecutionStatus value)
WorkflowExecutionInfo & WithCloseStatus(CloseStatus value)
AWS_SWF_API WorkflowExecutionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const WorkflowExecution & GetExecution() const
WorkflowExecutionInfo & WithCloseTimestamp(CloseTimestampT &&value)
WorkflowExecutionInfo & WithExecution(ExecutionT &&value)
AWS_SWF_API WorkflowExecutionInfo()=default
WorkflowExecutionInfo & WithWorkflowType(WorkflowTypeT &&value)
AWS_SWF_API WorkflowExecutionInfo(Aws::Utils::Json::JsonView jsonValue)
WorkflowExecutionInfo & AddTagList(TagListT &&value)
WorkflowExecutionInfo & WithParent(ParentT &&value)
WorkflowExecutionInfo & WithTagList(TagListT &&value)
const WorkflowExecution & GetParent() const
void SetExecutionStatus(ExecutionStatus value)
const Aws::Utils::DateTime & GetStartTimestamp() const
const Aws::Vector< Aws::String > & GetTagList() const
void SetWorkflowType(WorkflowTypeT &&value)
const Aws::Utils::DateTime & GetCloseTimestamp() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue