AWS SDK for C++  0.14.3
AWS SDK for C++
WorkflowExecutionTimedOutEventAttributes.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 
38  {
39  public:
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const WorkflowExecutionTimeoutType& GetTimeoutType() const{ return m_timeoutType; }
49 
53  inline void SetTimeoutType(const WorkflowExecutionTimeoutType& value) { m_timeoutTypeHasBeenSet = true; m_timeoutType = value; }
54 
58  inline void SetTimeoutType(WorkflowExecutionTimeoutType&& value) { m_timeoutTypeHasBeenSet = true; m_timeoutType = value; }
59 
63  inline WorkflowExecutionTimedOutEventAttributes& WithTimeoutType(const WorkflowExecutionTimeoutType& value) { SetTimeoutType(value); return *this;}
64 
68  inline WorkflowExecutionTimedOutEventAttributes& WithTimeoutType(WorkflowExecutionTimeoutType&& value) { SetTimeoutType(value); return *this;}
69 
80  inline const ChildPolicy& GetChildPolicy() const{ return m_childPolicy; }
81 
92  inline void SetChildPolicy(const ChildPolicy& value) { m_childPolicyHasBeenSet = true; m_childPolicy = value; }
93 
104  inline void SetChildPolicy(ChildPolicy&& value) { m_childPolicyHasBeenSet = true; m_childPolicy = value; }
105 
116  inline WorkflowExecutionTimedOutEventAttributes& WithChildPolicy(const ChildPolicy& value) { SetChildPolicy(value); return *this;}
117 
128  inline WorkflowExecutionTimedOutEventAttributes& WithChildPolicy(ChildPolicy&& value) { SetChildPolicy(value); return *this;}
129 
130  private:
131  WorkflowExecutionTimeoutType m_timeoutType;
132  bool m_timeoutTypeHasBeenSet;
133  ChildPolicy m_childPolicy;
134  bool m_childPolicyHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace SWF
139 } // namespace Aws
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
WorkflowExecutionTimedOutEventAttributes & WithTimeoutType(WorkflowExecutionTimeoutType &&value)
WorkflowExecutionTimedOutEventAttributes & WithTimeoutType(const WorkflowExecutionTimeoutType &value)
WorkflowExecutionTimedOutEventAttributes & WithChildPolicy(ChildPolicy &&value)
WorkflowExecutionTimedOutEventAttributes & WithChildPolicy(const ChildPolicy &value)
JSON (JavaScript Object Notation).