AWS SDK for C++  0.14.3
AWS SDK for C++
ScheduleLambdaFunctionFailedEventAttributes.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 Aws::String& GetId() const{ return m_id; }
49 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 
68  inline ScheduleLambdaFunctionFailedEventAttributes& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline ScheduleLambdaFunctionFailedEventAttributes& WithId(Aws::String&& value) { SetId(value); return *this;}
74 
78  inline ScheduleLambdaFunctionFailedEventAttributes& WithId(const char* value) { SetId(value); return *this;}
79 
83  inline const Aws::String& GetName() const{ return m_name; }
84 
88  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 
93  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
94 
98  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
99 
103  inline ScheduleLambdaFunctionFailedEventAttributes& WithName(const Aws::String& value) { SetName(value); return *this;}
104 
108  inline ScheduleLambdaFunctionFailedEventAttributes& WithName(Aws::String&& value) { SetName(value); return *this;}
109 
113  inline ScheduleLambdaFunctionFailedEventAttributes& WithName(const char* value) { SetName(value); return *this;}
114 
123  inline const ScheduleLambdaFunctionFailedCause& GetCause() const{ return m_cause; }
124 
133  inline void SetCause(const ScheduleLambdaFunctionFailedCause& value) { m_causeHasBeenSet = true; m_cause = value; }
134 
143  inline void SetCause(ScheduleLambdaFunctionFailedCause&& value) { m_causeHasBeenSet = true; m_cause = value; }
144 
153  inline ScheduleLambdaFunctionFailedEventAttributes& WithCause(const ScheduleLambdaFunctionFailedCause& value) { SetCause(value); return *this;}
154 
164 
171  inline long long GetDecisionTaskCompletedEventId() const{ return m_decisionTaskCompletedEventId; }
172 
179  inline void SetDecisionTaskCompletedEventId(long long value) { m_decisionTaskCompletedEventIdHasBeenSet = true; m_decisionTaskCompletedEventId = value; }
180 
187  inline ScheduleLambdaFunctionFailedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;}
188 
189  private:
190  Aws::String m_id;
191  bool m_idHasBeenSet;
192  Aws::String m_name;
193  bool m_nameHasBeenSet;
195  bool m_causeHasBeenSet;
196  long long m_decisionTaskCompletedEventId;
197  bool m_decisionTaskCompletedEventIdHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace SWF
202 } // namespace Aws
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
ScheduleLambdaFunctionFailedEventAttributes & WithId(const Aws::String &value)
ScheduleLambdaFunctionFailedEventAttributes & WithId(const char *value)
ScheduleLambdaFunctionFailedEventAttributes & WithCause(const ScheduleLambdaFunctionFailedCause &value)
ScheduleLambdaFunctionFailedEventAttributes & WithName(Aws::String &&value)
ScheduleLambdaFunctionFailedEventAttributes & WithCause(ScheduleLambdaFunctionFailedCause &&value)
ScheduleLambdaFunctionFailedEventAttributes & WithName(const Aws::String &value)
ScheduleLambdaFunctionFailedEventAttributes & WithDecisionTaskCompletedEventId(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ScheduleLambdaFunctionFailedEventAttributes & WithId(Aws::String &&value)
ScheduleLambdaFunctionFailedEventAttributes & WithName(const char *value)
JSON (JavaScript Object Notation).