AWS SDK for C++  0.12.9
AWS SDK for C++
StartLambdaFunctionFailedEventAttributes.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 
51  inline long long GetScheduledEventId() const{ return m_scheduledEventId; }
52 
59  inline void SetScheduledEventId(long long value) { m_scheduledEventIdHasBeenSet = true; m_scheduledEventId = value; }
60 
67  inline StartLambdaFunctionFailedEventAttributes& WithScheduledEventId(long long value) { SetScheduledEventId(value); return *this;}
68 
77  inline const StartLambdaFunctionFailedCause& GetCause() const{ return m_cause; }
78 
87  inline void SetCause(const StartLambdaFunctionFailedCause& value) { m_causeHasBeenSet = true; m_cause = value; }
88 
97  inline void SetCause(StartLambdaFunctionFailedCause&& value) { m_causeHasBeenSet = true; m_cause = value; }
98 
107  inline StartLambdaFunctionFailedEventAttributes& WithCause(const StartLambdaFunctionFailedCause& value) { SetCause(value); return *this;}
108 
117  inline StartLambdaFunctionFailedEventAttributes& WithCause(StartLambdaFunctionFailedCause&& value) { SetCause(value); return *this;}
118 
122  inline const Aws::String& GetMessage() const{ return m_message; }
123 
127  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
128 
132  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
133 
137  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
138 
142  inline StartLambdaFunctionFailedEventAttributes& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
143 
147  inline StartLambdaFunctionFailedEventAttributes& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
148 
152  inline StartLambdaFunctionFailedEventAttributes& WithMessage(const char* value) { SetMessage(value); return *this;}
153 
154  private:
155  long long m_scheduledEventId;
156  bool m_scheduledEventIdHasBeenSet;
158  bool m_causeHasBeenSet;
159  Aws::String m_message;
160  bool m_messageHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace SWF
165 } // namespace Aws
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:34
StartLambdaFunctionFailedEventAttributes & WithMessage(const Aws::String &value)
StartLambdaFunctionFailedEventAttributes & WithCause(const StartLambdaFunctionFailedCause &value)
StartLambdaFunctionFailedEventAttributes & WithScheduledEventId(long long value)
StartLambdaFunctionFailedEventAttributes & WithCause(StartLambdaFunctionFailedCause &&value)
StartLambdaFunctionFailedEventAttributes & WithMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StartLambdaFunctionFailedEventAttributes & WithMessage(Aws::String &&value)
JSON (JavaScript Object Notation).