AWS SDK for C++  0.14.3
AWS SDK for C++
WorkflowExecutionInfo.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/swf/SWF_EXPORTS.h>
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace SWF
35 {
36 namespace Model
37 {
38 
43  {
44  public:
47  WorkflowExecutionInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
53  inline const WorkflowExecution& GetExecution() const{ return m_execution; }
54 
58  inline void SetExecution(const WorkflowExecution& value) { m_executionHasBeenSet = true; m_execution = value; }
59 
63  inline void SetExecution(WorkflowExecution&& value) { m_executionHasBeenSet = true; m_execution = value; }
64 
68  inline WorkflowExecutionInfo& WithExecution(const WorkflowExecution& value) { SetExecution(value); return *this;}
69 
73  inline WorkflowExecutionInfo& WithExecution(WorkflowExecution&& value) { SetExecution(value); return *this;}
74 
78  inline const WorkflowType& GetWorkflowType() const{ return m_workflowType; }
79 
83  inline void SetWorkflowType(const WorkflowType& value) { m_workflowTypeHasBeenSet = true; m_workflowType = value; }
84 
88  inline void SetWorkflowType(WorkflowType&& value) { m_workflowTypeHasBeenSet = true; m_workflowType = value; }
89 
93  inline WorkflowExecutionInfo& WithWorkflowType(const WorkflowType& value) { SetWorkflowType(value); return *this;}
94 
98  inline WorkflowExecutionInfo& WithWorkflowType(WorkflowType&& value) { SetWorkflowType(value); return *this;}
99 
103  inline const Aws::Utils::DateTime& GetStartTimestamp() const{ return m_startTimestamp; }
104 
108  inline void SetStartTimestamp(const Aws::Utils::DateTime& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
109 
113  inline void SetStartTimestamp(Aws::Utils::DateTime&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
114 
118  inline WorkflowExecutionInfo& WithStartTimestamp(const Aws::Utils::DateTime& value) { SetStartTimestamp(value); return *this;}
119 
123  inline WorkflowExecutionInfo& WithStartTimestamp(Aws::Utils::DateTime&& value) { SetStartTimestamp(value); return *this;}
124 
129  inline const Aws::Utils::DateTime& GetCloseTimestamp() const{ return m_closeTimestamp; }
130 
135  inline void SetCloseTimestamp(const Aws::Utils::DateTime& value) { m_closeTimestampHasBeenSet = true; m_closeTimestamp = value; }
136 
141  inline void SetCloseTimestamp(Aws::Utils::DateTime&& value) { m_closeTimestampHasBeenSet = true; m_closeTimestamp = value; }
142 
147  inline WorkflowExecutionInfo& WithCloseTimestamp(const Aws::Utils::DateTime& value) { SetCloseTimestamp(value); return *this;}
148 
153  inline WorkflowExecutionInfo& WithCloseTimestamp(Aws::Utils::DateTime&& value) { SetCloseTimestamp(value); return *this;}
154 
158  inline const ExecutionStatus& GetExecutionStatus() const{ return m_executionStatus; }
159 
163  inline void SetExecutionStatus(const ExecutionStatus& value) { m_executionStatusHasBeenSet = true; m_executionStatus = value; }
164 
168  inline void SetExecutionStatus(ExecutionStatus&& value) { m_executionStatusHasBeenSet = true; m_executionStatus = value; }
169 
173  inline WorkflowExecutionInfo& WithExecutionStatus(const ExecutionStatus& value) { SetExecutionStatus(value); return *this;}
174 
178  inline WorkflowExecutionInfo& WithExecutionStatus(ExecutionStatus&& value) { SetExecutionStatus(value); return *this;}
179 
193  inline const CloseStatus& GetCloseStatus() const{ return m_closeStatus; }
194 
208  inline void SetCloseStatus(const CloseStatus& value) { m_closeStatusHasBeenSet = true; m_closeStatus = value; }
209 
223  inline void SetCloseStatus(CloseStatus&& value) { m_closeStatusHasBeenSet = true; m_closeStatus = value; }
224 
238  inline WorkflowExecutionInfo& WithCloseStatus(const CloseStatus& value) { SetCloseStatus(value); return *this;}
239 
253  inline WorkflowExecutionInfo& WithCloseStatus(CloseStatus&& value) { SetCloseStatus(value); return *this;}
254 
259  inline const WorkflowExecution& GetParent() const{ return m_parent; }
260 
265  inline void SetParent(const WorkflowExecution& value) { m_parentHasBeenSet = true; m_parent = value; }
266 
271  inline void SetParent(WorkflowExecution&& value) { m_parentHasBeenSet = true; m_parent = value; }
272 
277  inline WorkflowExecutionInfo& WithParent(const WorkflowExecution& value) { SetParent(value); return *this;}
278 
283  inline WorkflowExecutionInfo& WithParent(WorkflowExecution&& value) { SetParent(value); return *this;}
284 
290  inline const Aws::Vector<Aws::String>& GetTagList() const{ return m_tagList; }
291 
297  inline void SetTagList(const Aws::Vector<Aws::String>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
298 
304  inline void SetTagList(Aws::Vector<Aws::String>&& value) { m_tagListHasBeenSet = true; m_tagList = value; }
305 
311  inline WorkflowExecutionInfo& WithTagList(const Aws::Vector<Aws::String>& value) { SetTagList(value); return *this;}
312 
318  inline WorkflowExecutionInfo& WithTagList(Aws::Vector<Aws::String>&& value) { SetTagList(value); return *this;}
319 
325  inline WorkflowExecutionInfo& AddTagList(const Aws::String& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
326 
332  inline WorkflowExecutionInfo& AddTagList(Aws::String&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
333 
339  inline WorkflowExecutionInfo& AddTagList(const char* value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
340 
344  inline bool GetCancelRequested() const{ return m_cancelRequested; }
345 
349  inline void SetCancelRequested(bool value) { m_cancelRequestedHasBeenSet = true; m_cancelRequested = value; }
350 
354  inline WorkflowExecutionInfo& WithCancelRequested(bool value) { SetCancelRequested(value); return *this;}
355 
356  private:
357  WorkflowExecution m_execution;
358  bool m_executionHasBeenSet;
359  WorkflowType m_workflowType;
360  bool m_workflowTypeHasBeenSet;
361  Aws::Utils::DateTime m_startTimestamp;
362  bool m_startTimestampHasBeenSet;
363  Aws::Utils::DateTime m_closeTimestamp;
364  bool m_closeTimestampHasBeenSet;
365  ExecutionStatus m_executionStatus;
366  bool m_executionStatusHasBeenSet;
367  CloseStatus m_closeStatus;
368  bool m_closeStatusHasBeenSet;
369  WorkflowExecution m_parent;
370  bool m_parentHasBeenSet;
371  Aws::Vector<Aws::String> m_tagList;
372  bool m_tagListHasBeenSet;
373  bool m_cancelRequested;
374  bool m_cancelRequestedHasBeenSet;
375  };
376 
377 } // namespace Model
378 } // namespace SWF
379 } // namespace Aws
void SetWorkflowType(const WorkflowType &value)
WorkflowExecutionInfo & WithCloseStatus(CloseStatus &&value)
const Aws::Vector< Aws::String > & GetTagList() const
WorkflowExecutionInfo & WithParent(WorkflowExecution &&value)
WorkflowExecutionInfo & WithTagList(Aws::Vector< Aws::String > &&value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
WorkflowExecutionInfo & WithCloseTimestamp(const Aws::Utils::DateTime &value)
WorkflowExecutionInfo & AddTagList(const char *value)
void SetParent(WorkflowExecution &&value)
WorkflowExecutionInfo & WithParent(const WorkflowExecution &value)
void SetExecution(WorkflowExecution &&value)
WorkflowExecutionInfo & WithCloseTimestamp(Aws::Utils::DateTime &&value)
void SetParent(const WorkflowExecution &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const ExecutionStatus & GetExecutionStatus() const
void SetTagList(const Aws::Vector< Aws::String > &value)
WorkflowExecutionInfo & AddTagList(const Aws::String &value)
void SetExecutionStatus(const ExecutionStatus &value)
void SetStartTimestamp(Aws::Utils::DateTime &&value)
void SetTagList(Aws::Vector< Aws::String > &&value)
WorkflowExecutionInfo & WithExecutionStatus(const ExecutionStatus &value)
void SetExecution(const WorkflowExecution &value)
WorkflowExecutionInfo & WithWorkflowType(WorkflowType &&value)
void SetCloseTimestamp(Aws::Utils::DateTime &&value)
void SetCloseTimestamp(const Aws::Utils::DateTime &value)
WorkflowExecutionInfo & AddTagList(Aws::String &&value)
const WorkflowType & GetWorkflowType() const
WorkflowExecutionInfo & WithExecutionStatus(ExecutionStatus &&value)
WorkflowExecutionInfo & WithTagList(const Aws::Vector< Aws::String > &value)
const WorkflowExecution & GetParent() const
const Aws::Utils::DateTime & GetCloseTimestamp() const
WorkflowExecutionInfo & WithCancelRequested(bool value)
WorkflowExecutionInfo & WithCloseStatus(const CloseStatus &value)
void SetWorkflowType(WorkflowType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetStartTimestamp() const
const WorkflowExecution & GetExecution() const
WorkflowExecutionInfo & WithStartTimestamp(const Aws::Utils::DateTime &value)
WorkflowExecutionInfo & WithStartTimestamp(Aws::Utils::DateTime &&value)
WorkflowExecutionInfo & WithExecution(const WorkflowExecution &value)
void SetExecutionStatus(ExecutionStatus &&value)
WorkflowExecutionInfo & WithExecution(WorkflowExecution &&value)
WorkflowExecutionInfo & WithWorkflowType(const WorkflowType &value)
void SetStartTimestamp(const Aws::Utils::DateTime &value)
const CloseStatus & GetCloseStatus() const
void SetCloseStatus(const CloseStatus &value)
JSON (JavaScript Object Notation).