AWS SDK for C++  0.14.3
AWS SDK for C++
SignalExternalWorkflowExecutionFailedEventAttributes.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace SWF
30 {
31 namespace Model
32 {
33 
39  {
40  public:
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetWorkflowId() const{ return m_workflowId; }
51 
56  inline void SetWorkflowId(const Aws::String& value) { m_workflowIdHasBeenSet = true; m_workflowId = value; }
57 
62  inline void SetWorkflowId(Aws::String&& value) { m_workflowIdHasBeenSet = true; m_workflowId = value; }
63 
68  inline void SetWorkflowId(const char* value) { m_workflowIdHasBeenSet = true; m_workflowId.assign(value); }
69 
74  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithWorkflowId(const Aws::String& value) { SetWorkflowId(value); return *this;}
75 
80  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithWorkflowId(Aws::String&& value) { SetWorkflowId(value); return *this;}
81 
86  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithWorkflowId(const char* value) { SetWorkflowId(value); return *this;}
87 
92  inline const Aws::String& GetRunId() const{ return m_runId; }
93 
98  inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; }
99 
104  inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = value; }
105 
110  inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); }
111 
116  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithRunId(const Aws::String& value) { SetRunId(value); return *this;}
117 
122  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithRunId(Aws::String&& value) { SetRunId(value); return *this;}
123 
128  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithRunId(const char* value) { SetRunId(value); return *this;}
129 
138  inline const SignalExternalWorkflowExecutionFailedCause& GetCause() const{ return m_cause; }
139 
148  inline void SetCause(const SignalExternalWorkflowExecutionFailedCause& value) { m_causeHasBeenSet = true; m_cause = value; }
149 
158  inline void SetCause(SignalExternalWorkflowExecutionFailedCause&& value) { m_causeHasBeenSet = true; m_cause = value; }
159 
169 
179 
186  inline long long GetInitiatedEventId() const{ return m_initiatedEventId; }
187 
194  inline void SetInitiatedEventId(long long value) { m_initiatedEventIdHasBeenSet = true; m_initiatedEventId = value; }
195 
202  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithInitiatedEventId(long long value) { SetInitiatedEventId(value); return *this;}
203 
210  inline long long GetDecisionTaskCompletedEventId() const{ return m_decisionTaskCompletedEventId; }
211 
218  inline void SetDecisionTaskCompletedEventId(long long value) { m_decisionTaskCompletedEventIdHasBeenSet = true; m_decisionTaskCompletedEventId = value; }
219 
226  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;}
227 
228 
229  inline const Aws::String& GetControl() const{ return m_control; }
230 
231 
232  inline void SetControl(const Aws::String& value) { m_controlHasBeenSet = true; m_control = value; }
233 
234 
235  inline void SetControl(Aws::String&& value) { m_controlHasBeenSet = true; m_control = value; }
236 
237 
238  inline void SetControl(const char* value) { m_controlHasBeenSet = true; m_control.assign(value); }
239 
240 
241  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithControl(const Aws::String& value) { SetControl(value); return *this;}
242 
243 
244  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithControl(Aws::String&& value) { SetControl(value); return *this;}
245 
246 
247  inline SignalExternalWorkflowExecutionFailedEventAttributes& WithControl(const char* value) { SetControl(value); return *this;}
248 
249  private:
250  Aws::String m_workflowId;
251  bool m_workflowIdHasBeenSet;
252  Aws::String m_runId;
253  bool m_runIdHasBeenSet;
255  bool m_causeHasBeenSet;
256  long long m_initiatedEventId;
257  bool m_initiatedEventIdHasBeenSet;
258  long long m_decisionTaskCompletedEventId;
259  bool m_decisionTaskCompletedEventIdHasBeenSet;
260  Aws::String m_control;
261  bool m_controlHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace SWF
266 } // namespace Aws
SignalExternalWorkflowExecutionFailedEventAttributes & WithRunId(const Aws::String &value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithCause(const SignalExternalWorkflowExecutionFailedCause &value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
SignalExternalWorkflowExecutionFailedEventAttributes & WithWorkflowId(const char *value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithWorkflowId(Aws::String &&value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithControl(const Aws::String &value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithRunId(const char *value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithDecisionTaskCompletedEventId(long long value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithWorkflowId(const Aws::String &value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithControl(const char *value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithControl(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SignalExternalWorkflowExecutionFailedEventAttributes & WithInitiatedEventId(long long value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithCause(SignalExternalWorkflowExecutionFailedCause &&value)
SignalExternalWorkflowExecutionFailedEventAttributes & WithRunId(Aws::String &&value)
JSON (JavaScript Object Notation).