AWS SDK for C++  0.12.9
AWS SDK for C++
WorkflowExecutionTerminatedEventAttributes.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 
39  {
40  public:
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetReason() const{ return m_reason; }
50 
54  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
55 
59  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = value; }
60 
64  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
65 
69  inline WorkflowExecutionTerminatedEventAttributes& WithReason(const Aws::String& value) { SetReason(value); return *this;}
70 
74  inline WorkflowExecutionTerminatedEventAttributes& WithReason(Aws::String&& value) { SetReason(value); return *this;}
75 
79  inline WorkflowExecutionTerminatedEventAttributes& WithReason(const char* value) { SetReason(value); return *this;}
80 
84  inline const Aws::String& GetDetails() const{ return m_details; }
85 
89  inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
90 
94  inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = value; }
95 
99  inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
100 
104  inline WorkflowExecutionTerminatedEventAttributes& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
105 
109  inline WorkflowExecutionTerminatedEventAttributes& WithDetails(Aws::String&& value) { SetDetails(value); return *this;}
110 
114  inline WorkflowExecutionTerminatedEventAttributes& WithDetails(const char* value) { SetDetails(value); return *this;}
115 
126  inline const ChildPolicy& GetChildPolicy() const{ return m_childPolicy; }
127 
138  inline void SetChildPolicy(const ChildPolicy& value) { m_childPolicyHasBeenSet = true; m_childPolicy = value; }
139 
150  inline void SetChildPolicy(ChildPolicy&& value) { m_childPolicyHasBeenSet = true; m_childPolicy = value; }
151 
162  inline WorkflowExecutionTerminatedEventAttributes& WithChildPolicy(const ChildPolicy& value) { SetChildPolicy(value); return *this;}
163 
174  inline WorkflowExecutionTerminatedEventAttributes& WithChildPolicy(ChildPolicy&& value) { SetChildPolicy(value); return *this;}
175 
181  inline const WorkflowExecutionTerminatedCause& GetCause() const{ return m_cause; }
182 
188  inline void SetCause(const WorkflowExecutionTerminatedCause& value) { m_causeHasBeenSet = true; m_cause = value; }
189 
195  inline void SetCause(WorkflowExecutionTerminatedCause&& value) { m_causeHasBeenSet = true; m_cause = value; }
196 
202  inline WorkflowExecutionTerminatedEventAttributes& WithCause(const WorkflowExecutionTerminatedCause& value) { SetCause(value); return *this;}
203 
210 
211  private:
212  Aws::String m_reason;
213  bool m_reasonHasBeenSet;
214  Aws::String m_details;
215  bool m_detailsHasBeenSet;
216  ChildPolicy m_childPolicy;
217  bool m_childPolicyHasBeenSet;
219  bool m_causeHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace SWF
224 } // namespace Aws
WorkflowExecutionTerminatedEventAttributes & WithCause(WorkflowExecutionTerminatedCause &&value)
WorkflowExecutionTerminatedEventAttributes & WithDetails(Aws::String &&value)
WorkflowExecutionTerminatedEventAttributes & WithReason(const char *value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:34
WorkflowExecutionTerminatedEventAttributes & WithChildPolicy(ChildPolicy &&value)
WorkflowExecutionTerminatedEventAttributes & WithDetails(const char *value)
WorkflowExecutionTerminatedEventAttributes & WithChildPolicy(const ChildPolicy &value)
WorkflowExecutionTerminatedEventAttributes & WithReason(Aws::String &&value)
WorkflowExecutionTerminatedEventAttributes & WithReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
WorkflowExecutionTerminatedEventAttributes & WithCause(const WorkflowExecutionTerminatedCause &value)
WorkflowExecutionTerminatedEventAttributes & WithDetails(const Aws::String &value)
JSON (JavaScript Object Notation).