AWS SDK for C++  0.14.3
AWS SDK for C++
ChildWorkflowExecutionCompletedEventAttributes.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace SWF
31 {
32 namespace Model
33 {
34 
40  {
41  public:
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const WorkflowExecution& GetWorkflowExecution() const{ return m_workflowExecution; }
51 
55  inline void SetWorkflowExecution(const WorkflowExecution& value) { m_workflowExecutionHasBeenSet = true; m_workflowExecution = value; }
56 
60  inline void SetWorkflowExecution(WorkflowExecution&& value) { m_workflowExecutionHasBeenSet = true; m_workflowExecution = value; }
61 
65  inline ChildWorkflowExecutionCompletedEventAttributes& WithWorkflowExecution(const WorkflowExecution& value) { SetWorkflowExecution(value); return *this;}
66 
70  inline ChildWorkflowExecutionCompletedEventAttributes& WithWorkflowExecution(WorkflowExecution&& value) { SetWorkflowExecution(value); return *this;}
71 
75  inline const WorkflowType& GetWorkflowType() const{ return m_workflowType; }
76 
80  inline void SetWorkflowType(const WorkflowType& value) { m_workflowTypeHasBeenSet = true; m_workflowType = value; }
81 
85  inline void SetWorkflowType(WorkflowType&& value) { m_workflowTypeHasBeenSet = true; m_workflowType = value; }
86 
90  inline ChildWorkflowExecutionCompletedEventAttributes& WithWorkflowType(const WorkflowType& value) { SetWorkflowType(value); return *this;}
91 
95  inline ChildWorkflowExecutionCompletedEventAttributes& WithWorkflowType(WorkflowType&& value) { SetWorkflowType(value); return *this;}
96 
100  inline const Aws::String& GetResult() const{ return m_result; }
101 
105  inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; }
106 
110  inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = value; }
111 
115  inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); }
116 
120  inline ChildWorkflowExecutionCompletedEventAttributes& WithResult(const Aws::String& value) { SetResult(value); return *this;}
121 
125  inline ChildWorkflowExecutionCompletedEventAttributes& WithResult(Aws::String&& value) { SetResult(value); return *this;}
126 
130  inline ChildWorkflowExecutionCompletedEventAttributes& WithResult(const char* value) { SetResult(value); return *this;}
131 
138  inline long long GetInitiatedEventId() const{ return m_initiatedEventId; }
139 
146  inline void SetInitiatedEventId(long long value) { m_initiatedEventIdHasBeenSet = true; m_initiatedEventId = value; }
147 
154  inline ChildWorkflowExecutionCompletedEventAttributes& WithInitiatedEventId(long long value) { SetInitiatedEventId(value); return *this;}
155 
162  inline long long GetStartedEventId() const{ return m_startedEventId; }
163 
170  inline void SetStartedEventId(long long value) { m_startedEventIdHasBeenSet = true; m_startedEventId = value; }
171 
178  inline ChildWorkflowExecutionCompletedEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;}
179 
180  private:
181  WorkflowExecution m_workflowExecution;
182  bool m_workflowExecutionHasBeenSet;
183  WorkflowType m_workflowType;
184  bool m_workflowTypeHasBeenSet;
185  Aws::String m_result;
186  bool m_resultHasBeenSet;
187  long long m_initiatedEventId;
188  bool m_initiatedEventIdHasBeenSet;
189  long long m_startedEventId;
190  bool m_startedEventIdHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace SWF
195 } // namespace Aws
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
ChildWorkflowExecutionCompletedEventAttributes & WithWorkflowExecution(const WorkflowExecution &value)
ChildWorkflowExecutionCompletedEventAttributes & WithResult(const char *value)
ChildWorkflowExecutionCompletedEventAttributes & WithResult(Aws::String &&value)
ChildWorkflowExecutionCompletedEventAttributes & WithStartedEventId(long long value)
ChildWorkflowExecutionCompletedEventAttributes & WithWorkflowExecution(WorkflowExecution &&value)
ChildWorkflowExecutionCompletedEventAttributes & WithWorkflowType(const WorkflowType &value)
ChildWorkflowExecutionCompletedEventAttributes & WithInitiatedEventId(long long value)
ChildWorkflowExecutionCompletedEventAttributes & WithWorkflowType(WorkflowType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ChildWorkflowExecutionCompletedEventAttributes & WithResult(const Aws::String &value)
JSON (JavaScript Object Notation).