AWS SDK for C++  0.14.3
AWS SDK for C++
StartChildWorkflowExecutionFailedEventAttributes.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 
51  inline const WorkflowType& GetWorkflowType() const{ return m_workflowType; }
52 
57  inline void SetWorkflowType(const WorkflowType& value) { m_workflowTypeHasBeenSet = true; m_workflowType = value; }
58 
63  inline void SetWorkflowType(WorkflowType&& value) { m_workflowTypeHasBeenSet = true; m_workflowType = value; }
64 
69  inline StartChildWorkflowExecutionFailedEventAttributes& WithWorkflowType(const WorkflowType& value) { SetWorkflowType(value); return *this;}
70 
75  inline StartChildWorkflowExecutionFailedEventAttributes& WithWorkflowType(WorkflowType&& value) { SetWorkflowType(value); return *this;}
76 
85  inline const StartChildWorkflowExecutionFailedCause& GetCause() const{ return m_cause; }
86 
95  inline void SetCause(const StartChildWorkflowExecutionFailedCause& value) { m_causeHasBeenSet = true; m_cause = value; }
96 
105  inline void SetCause(StartChildWorkflowExecutionFailedCause&& value) { m_causeHasBeenSet = true; m_cause = value; }
106 
116 
126 
130  inline const Aws::String& GetWorkflowId() const{ return m_workflowId; }
131 
135  inline void SetWorkflowId(const Aws::String& value) { m_workflowIdHasBeenSet = true; m_workflowId = value; }
136 
140  inline void SetWorkflowId(Aws::String&& value) { m_workflowIdHasBeenSet = true; m_workflowId = value; }
141 
145  inline void SetWorkflowId(const char* value) { m_workflowIdHasBeenSet = true; m_workflowId.assign(value); }
146 
150  inline StartChildWorkflowExecutionFailedEventAttributes& WithWorkflowId(const Aws::String& value) { SetWorkflowId(value); return *this;}
151 
155  inline StartChildWorkflowExecutionFailedEventAttributes& WithWorkflowId(Aws::String&& value) { SetWorkflowId(value); return *this;}
156 
160  inline StartChildWorkflowExecutionFailedEventAttributes& WithWorkflowId(const char* value) { SetWorkflowId(value); return *this;}
161 
168  inline long long GetInitiatedEventId() const{ return m_initiatedEventId; }
169 
176  inline void SetInitiatedEventId(long long value) { m_initiatedEventIdHasBeenSet = true; m_initiatedEventId = value; }
177 
184  inline StartChildWorkflowExecutionFailedEventAttributes& WithInitiatedEventId(long long value) { SetInitiatedEventId(value); return *this;}
185 
192  inline long long GetDecisionTaskCompletedEventId() const{ return m_decisionTaskCompletedEventId; }
193 
200  inline void SetDecisionTaskCompletedEventId(long long value) { m_decisionTaskCompletedEventIdHasBeenSet = true; m_decisionTaskCompletedEventId = value; }
201 
208  inline StartChildWorkflowExecutionFailedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;}
209 
210 
211  inline const Aws::String& GetControl() const{ return m_control; }
212 
213 
214  inline void SetControl(const Aws::String& value) { m_controlHasBeenSet = true; m_control = value; }
215 
216 
217  inline void SetControl(Aws::String&& value) { m_controlHasBeenSet = true; m_control = value; }
218 
219 
220  inline void SetControl(const char* value) { m_controlHasBeenSet = true; m_control.assign(value); }
221 
222 
223  inline StartChildWorkflowExecutionFailedEventAttributes& WithControl(const Aws::String& value) { SetControl(value); return *this;}
224 
225 
226  inline StartChildWorkflowExecutionFailedEventAttributes& WithControl(Aws::String&& value) { SetControl(value); return *this;}
227 
228 
229  inline StartChildWorkflowExecutionFailedEventAttributes& WithControl(const char* value) { SetControl(value); return *this;}
230 
231  private:
232  WorkflowType m_workflowType;
233  bool m_workflowTypeHasBeenSet;
235  bool m_causeHasBeenSet;
236  Aws::String m_workflowId;
237  bool m_workflowIdHasBeenSet;
238  long long m_initiatedEventId;
239  bool m_initiatedEventIdHasBeenSet;
240  long long m_decisionTaskCompletedEventId;
241  bool m_decisionTaskCompletedEventIdHasBeenSet;
242  Aws::String m_control;
243  bool m_controlHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace SWF
248 } // namespace Aws
StartChildWorkflowExecutionFailedEventAttributes & WithControl(const Aws::String &value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
StartChildWorkflowExecutionFailedEventAttributes & WithControl(const char *value)
StartChildWorkflowExecutionFailedEventAttributes & WithWorkflowId(const char *value)
StartChildWorkflowExecutionFailedEventAttributes & WithWorkflowType(const WorkflowType &value)
StartChildWorkflowExecutionFailedEventAttributes & WithWorkflowId(const Aws::String &value)
StartChildWorkflowExecutionFailedEventAttributes & WithDecisionTaskCompletedEventId(long long value)
StartChildWorkflowExecutionFailedEventAttributes & WithCause(const StartChildWorkflowExecutionFailedCause &value)
StartChildWorkflowExecutionFailedEventAttributes & WithInitiatedEventId(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StartChildWorkflowExecutionFailedEventAttributes & WithControl(Aws::String &&value)
StartChildWorkflowExecutionFailedEventAttributes & WithWorkflowType(WorkflowType &&value)
StartChildWorkflowExecutionFailedEventAttributes & WithWorkflowId(Aws::String &&value)
StartChildWorkflowExecutionFailedEventAttributes & WithCause(StartChildWorkflowExecutionFailedCause &&value)
JSON (JavaScript Object Notation).