AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
45
46
48
51 inline const WorkflowExecution& GetExecution() const{ return m_execution; }
52 inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; }
53 inline void SetExecution(const WorkflowExecution& value) { m_executionHasBeenSet = true; m_execution = value; }
54 inline void SetExecution(WorkflowExecution&& value) { m_executionHasBeenSet = true; m_execution = std::move(value); }
55 inline WorkflowExecutionInfo& WithExecution(const WorkflowExecution& value) { SetExecution(value); return *this;}
56 inline WorkflowExecutionInfo& WithExecution(WorkflowExecution&& value) { SetExecution(std::move(value)); return *this;}
58
60
63 inline const WorkflowType& GetWorkflowType() const{ return m_workflowType; }
64 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
65 inline void SetWorkflowType(const WorkflowType& value) { m_workflowTypeHasBeenSet = true; m_workflowType = value; }
66 inline void SetWorkflowType(WorkflowType&& value) { m_workflowTypeHasBeenSet = true; m_workflowType = std::move(value); }
67 inline WorkflowExecutionInfo& WithWorkflowType(const WorkflowType& value) { SetWorkflowType(value); return *this;}
68 inline WorkflowExecutionInfo& WithWorkflowType(WorkflowType&& value) { SetWorkflowType(std::move(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 inline void SetStartTimestamp(const Aws::Utils::DateTime& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
78 inline void SetStartTimestamp(Aws::Utils::DateTime&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::move(value); }
80 inline WorkflowExecutionInfo& WithStartTimestamp(Aws::Utils::DateTime&& value) { SetStartTimestamp(std::move(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 inline void SetCloseTimestamp(const Aws::Utils::DateTime& value) { m_closeTimestampHasBeenSet = true; m_closeTimestamp = value; }
91 inline void SetCloseTimestamp(Aws::Utils::DateTime&& value) { m_closeTimestampHasBeenSet = true; m_closeTimestamp = std::move(value); }
93 inline WorkflowExecutionInfo& WithCloseTimestamp(Aws::Utils::DateTime&& value) { SetCloseTimestamp(std::move(value)); return *this;}
95
97
100 inline const ExecutionStatus& GetExecutionStatus() const{ return m_executionStatus; }
101 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
102 inline void SetExecutionStatus(const ExecutionStatus& value) { m_executionStatusHasBeenSet = true; m_executionStatus = value; }
103 inline void SetExecutionStatus(ExecutionStatus&& value) { m_executionStatusHasBeenSet = true; m_executionStatus = std::move(value); }
105 inline WorkflowExecutionInfo& WithExecutionStatus(ExecutionStatus&& value) { SetExecutionStatus(std::move(value)); return *this;}
107
109
122 inline const CloseStatus& GetCloseStatus() const{ return m_closeStatus; }
123 inline bool CloseStatusHasBeenSet() const { return m_closeStatusHasBeenSet; }
124 inline void SetCloseStatus(const CloseStatus& value) { m_closeStatusHasBeenSet = true; m_closeStatus = value; }
125 inline void SetCloseStatus(CloseStatus&& value) { m_closeStatusHasBeenSet = true; m_closeStatus = std::move(value); }
126 inline WorkflowExecutionInfo& WithCloseStatus(const CloseStatus& value) { SetCloseStatus(value); return *this;}
127 inline WorkflowExecutionInfo& WithCloseStatus(CloseStatus&& value) { SetCloseStatus(std::move(value)); return *this;}
129
131
135 inline const WorkflowExecution& GetParent() const{ return m_parent; }
136 inline bool ParentHasBeenSet() const { return m_parentHasBeenSet; }
137 inline void SetParent(const WorkflowExecution& value) { m_parentHasBeenSet = true; m_parent = value; }
138 inline void SetParent(WorkflowExecution&& value) { m_parentHasBeenSet = true; m_parent = std::move(value); }
139 inline WorkflowExecutionInfo& WithParent(const WorkflowExecution& value) { SetParent(value); return *this;}
140 inline WorkflowExecutionInfo& WithParent(WorkflowExecution&& value) { SetParent(std::move(value)); return *this;}
142
144
149 inline const Aws::Vector<Aws::String>& GetTagList() const{ return m_tagList; }
150 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
151 inline void SetTagList(const Aws::Vector<Aws::String>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
152 inline void SetTagList(Aws::Vector<Aws::String>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
153 inline WorkflowExecutionInfo& WithTagList(const Aws::Vector<Aws::String>& value) { SetTagList(value); return *this;}
154 inline WorkflowExecutionInfo& WithTagList(Aws::Vector<Aws::String>&& value) { SetTagList(std::move(value)); return *this;}
155 inline WorkflowExecutionInfo& AddTagList(const Aws::String& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
156 inline WorkflowExecutionInfo& AddTagList(Aws::String&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; }
157 inline WorkflowExecutionInfo& AddTagList(const char* value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
159
161
164 inline bool GetCancelRequested() const{ return m_cancelRequested; }
165 inline bool CancelRequestedHasBeenSet() const { return m_cancelRequestedHasBeenSet; }
166 inline void SetCancelRequested(bool value) { m_cancelRequestedHasBeenSet = true; m_cancelRequested = value; }
167 inline WorkflowExecutionInfo& WithCancelRequested(bool value) { SetCancelRequested(value); return *this;}
169 private:
170
171 WorkflowExecution m_execution;
172 bool m_executionHasBeenSet = false;
173
174 WorkflowType m_workflowType;
175 bool m_workflowTypeHasBeenSet = false;
176
177 Aws::Utils::DateTime m_startTimestamp;
178 bool m_startTimestampHasBeenSet = false;
179
180 Aws::Utils::DateTime m_closeTimestamp;
181 bool m_closeTimestampHasBeenSet = false;
182
183 ExecutionStatus m_executionStatus;
184 bool m_executionStatusHasBeenSet = false;
185
186 CloseStatus m_closeStatus;
187 bool m_closeStatusHasBeenSet = false;
188
189 WorkflowExecution m_parent;
190 bool m_parentHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_tagList;
193 bool m_tagListHasBeenSet = false;
194
195 bool m_cancelRequested;
196 bool m_cancelRequestedHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace SWF
201} // namespace Aws
WorkflowExecutionInfo & AddTagList(Aws::String &&value)
void SetExecutionStatus(const ExecutionStatus &value)
void SetExecutionStatus(ExecutionStatus &&value)
void SetCloseTimestamp(const Aws::Utils::DateTime &value)
void SetStartTimestamp(Aws::Utils::DateTime &&value)
const WorkflowType & GetWorkflowType() const
AWS_SWF_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowExecutionInfo & WithCancelRequested(bool value)
void SetCloseTimestamp(Aws::Utils::DateTime &&value)
WorkflowExecutionInfo & WithCloseTimestamp(const Aws::Utils::DateTime &value)
const ExecutionStatus & GetExecutionStatus() const
WorkflowExecutionInfo & AddTagList(const char *value)
WorkflowExecutionInfo & WithParent(WorkflowExecution &&value)
WorkflowExecutionInfo & WithCloseStatus(CloseStatus &&value)
WorkflowExecutionInfo & WithExecutionStatus(ExecutionStatus &&value)
WorkflowExecutionInfo & WithExecution(WorkflowExecution &&value)
WorkflowExecutionInfo & WithTagList(const Aws::Vector< Aws::String > &value)
WorkflowExecutionInfo & WithWorkflowType(const WorkflowType &value)
void SetTagList(Aws::Vector< Aws::String > &&value)
AWS_SWF_API WorkflowExecutionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const WorkflowExecution & GetExecution() const
WorkflowExecutionInfo & WithStartTimestamp(const Aws::Utils::DateTime &value)
void SetCloseStatus(const CloseStatus &value)
AWS_SWF_API WorkflowExecutionInfo(Aws::Utils::Json::JsonView jsonValue)
void SetParent(const WorkflowExecution &value)
WorkflowExecutionInfo & WithCloseTimestamp(Aws::Utils::DateTime &&value)
void SetTagList(const Aws::Vector< Aws::String > &value)
void SetExecution(const WorkflowExecution &value)
void SetParent(WorkflowExecution &&value)
WorkflowExecutionInfo & WithExecution(const WorkflowExecution &value)
WorkflowExecutionInfo & WithCloseStatus(const CloseStatus &value)
WorkflowExecutionInfo & WithWorkflowType(WorkflowType &&value)
WorkflowExecutionInfo & WithTagList(Aws::Vector< Aws::String > &&value)
WorkflowExecutionInfo & AddTagList(const Aws::String &value)
WorkflowExecutionInfo & WithExecutionStatus(const ExecutionStatus &value)
void SetExecution(WorkflowExecution &&value)
void SetWorkflowType(const WorkflowType &value)
const WorkflowExecution & GetParent() const
WorkflowExecutionInfo & WithStartTimestamp(Aws::Utils::DateTime &&value)
WorkflowExecutionInfo & WithParent(const WorkflowExecution &value)
void SetStartTimestamp(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartTimestamp() const
const Aws::Vector< Aws::String > & GetTagList() const
const Aws::Utils::DateTime & GetCloseTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue