AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WorkflowExecutionInfo.h
1
6#pragma once
7#include <aws/swf/SWF_EXPORTS.h>
8#include <aws/swf/model/WorkflowExecution.h>
9#include <aws/swf/model/WorkflowType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/swf/model/ExecutionStatus.h>
12#include <aws/swf/model/CloseStatus.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SWF
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_SWF_API WorkflowExecutionInfo() = default;
45
46
48
51 inline const WorkflowExecution& GetExecution() const { return m_execution; }
52 inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; }
53 template<typename ExecutionT = WorkflowExecution>
54 void SetExecution(ExecutionT&& value) { m_executionHasBeenSet = true; m_execution = std::forward<ExecutionT>(value); }
55 template<typename ExecutionT = WorkflowExecution>
56 WorkflowExecutionInfo& WithExecution(ExecutionT&& value) { SetExecution(std::forward<ExecutionT>(value)); return *this;}
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) { m_workflowTypeHasBeenSet = true; m_workflowType = std::forward<WorkflowTypeT>(value); }
67 template<typename WorkflowTypeT = WorkflowType>
68 WorkflowExecutionInfo& WithWorkflowType(WorkflowTypeT&& value) { SetWorkflowType(std::forward<WorkflowTypeT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
76 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
77 template<typename StartTimestampT = Aws::Utils::DateTime>
78 void SetStartTimestamp(StartTimestampT&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::forward<StartTimestampT>(value); }
79 template<typename StartTimestampT = Aws::Utils::DateTime>
80 WorkflowExecutionInfo& WithStartTimestamp(StartTimestampT&& value) { SetStartTimestamp(std::forward<StartTimestampT>(value)); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetCloseTimestamp() const { return m_closeTimestamp; }
89 inline bool CloseTimestampHasBeenSet() const { return m_closeTimestampHasBeenSet; }
90 template<typename CloseTimestampT = Aws::Utils::DateTime>
91 void SetCloseTimestamp(CloseTimestampT&& value) { m_closeTimestampHasBeenSet = true; m_closeTimestamp = std::forward<CloseTimestampT>(value); }
92 template<typename CloseTimestampT = Aws::Utils::DateTime>
93 WorkflowExecutionInfo& WithCloseTimestamp(CloseTimestampT&& value) { SetCloseTimestamp(std::forward<CloseTimestampT>(value)); return *this;}
95
97
100 inline ExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
101 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
102 inline void SetExecutionStatus(ExecutionStatus value) { m_executionStatusHasBeenSet = true; m_executionStatus = value; }
105
107
120 inline CloseStatus GetCloseStatus() const { return m_closeStatus; }
121 inline bool CloseStatusHasBeenSet() const { return m_closeStatusHasBeenSet; }
122 inline void SetCloseStatus(CloseStatus value) { m_closeStatusHasBeenSet = true; m_closeStatus = value; }
123 inline WorkflowExecutionInfo& WithCloseStatus(CloseStatus value) { SetCloseStatus(value); return *this;}
125
127
131 inline const WorkflowExecution& GetParent() const { return m_parent; }
132 inline bool ParentHasBeenSet() const { return m_parentHasBeenSet; }
133 template<typename ParentT = WorkflowExecution>
134 void SetParent(ParentT&& value) { m_parentHasBeenSet = true; m_parent = std::forward<ParentT>(value); }
135 template<typename ParentT = WorkflowExecution>
136 WorkflowExecutionInfo& WithParent(ParentT&& value) { SetParent(std::forward<ParentT>(value)); return *this;}
138
140
145 inline const Aws::Vector<Aws::String>& GetTagList() const { return m_tagList; }
146 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
147 template<typename TagListT = Aws::Vector<Aws::String>>
148 void SetTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList = std::forward<TagListT>(value); }
149 template<typename TagListT = Aws::Vector<Aws::String>>
150 WorkflowExecutionInfo& WithTagList(TagListT&& value) { SetTagList(std::forward<TagListT>(value)); return *this;}
151 template<typename TagListT = Aws::String>
152 WorkflowExecutionInfo& AddTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList.emplace_back(std::forward<TagListT>(value)); return *this; }
154
156
159 inline bool GetCancelRequested() const { return m_cancelRequested; }
160 inline bool CancelRequestedHasBeenSet() const { return m_cancelRequestedHasBeenSet; }
161 inline void SetCancelRequested(bool value) { m_cancelRequestedHasBeenSet = true; m_cancelRequested = value; }
162 inline WorkflowExecutionInfo& WithCancelRequested(bool value) { SetCancelRequested(value); return *this;}
164 private:
165
166 WorkflowExecution m_execution;
167 bool m_executionHasBeenSet = false;
168
169 WorkflowType m_workflowType;
170 bool m_workflowTypeHasBeenSet = false;
171
172 Aws::Utils::DateTime m_startTimestamp{};
173 bool m_startTimestampHasBeenSet = false;
174
175 Aws::Utils::DateTime m_closeTimestamp{};
176 bool m_closeTimestampHasBeenSet = false;
177
178 ExecutionStatus m_executionStatus{ExecutionStatus::NOT_SET};
179 bool m_executionStatusHasBeenSet = false;
180
181 CloseStatus m_closeStatus{CloseStatus::NOT_SET};
182 bool m_closeStatusHasBeenSet = false;
183
184 WorkflowExecution m_parent;
185 bool m_parentHasBeenSet = false;
186
187 Aws::Vector<Aws::String> m_tagList;
188 bool m_tagListHasBeenSet = false;
189
190 bool m_cancelRequested{false};
191 bool m_cancelRequestedHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace SWF
196} // 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