AWS SDK for C++  0.14.3
AWS SDK for C++
ScheduleActivityTaskFailedEventAttributes.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 
50  inline const ActivityType& GetActivityType() const{ return m_activityType; }
51 
56  inline void SetActivityType(const ActivityType& value) { m_activityTypeHasBeenSet = true; m_activityType = value; }
57 
62  inline void SetActivityType(ActivityType&& value) { m_activityTypeHasBeenSet = true; m_activityType = value; }
63 
68  inline ScheduleActivityTaskFailedEventAttributes& WithActivityType(const ActivityType& value) { SetActivityType(value); return *this;}
69 
74  inline ScheduleActivityTaskFailedEventAttributes& WithActivityType(ActivityType&& value) { SetActivityType(value); return *this;}
75 
80  inline const Aws::String& GetActivityId() const{ return m_activityId; }
81 
86  inline void SetActivityId(const Aws::String& value) { m_activityIdHasBeenSet = true; m_activityId = value; }
87 
92  inline void SetActivityId(Aws::String&& value) { m_activityIdHasBeenSet = true; m_activityId = value; }
93 
98  inline void SetActivityId(const char* value) { m_activityIdHasBeenSet = true; m_activityId.assign(value); }
99 
104  inline ScheduleActivityTaskFailedEventAttributes& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;}
105 
110  inline ScheduleActivityTaskFailedEventAttributes& WithActivityId(Aws::String&& value) { SetActivityId(value); return *this;}
111 
116  inline ScheduleActivityTaskFailedEventAttributes& WithActivityId(const char* value) { SetActivityId(value); return *this;}
117 
126  inline const ScheduleActivityTaskFailedCause& GetCause() const{ return m_cause; }
127 
136  inline void SetCause(const ScheduleActivityTaskFailedCause& value) { m_causeHasBeenSet = true; m_cause = value; }
137 
146  inline void SetCause(ScheduleActivityTaskFailedCause&& value) { m_causeHasBeenSet = true; m_cause = value; }
147 
156  inline ScheduleActivityTaskFailedEventAttributes& WithCause(const ScheduleActivityTaskFailedCause& value) { SetCause(value); return *this;}
157 
167 
174  inline long long GetDecisionTaskCompletedEventId() const{ return m_decisionTaskCompletedEventId; }
175 
182  inline void SetDecisionTaskCompletedEventId(long long value) { m_decisionTaskCompletedEventIdHasBeenSet = true; m_decisionTaskCompletedEventId = value; }
183 
190  inline ScheduleActivityTaskFailedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;}
191 
192  private:
193  ActivityType m_activityType;
194  bool m_activityTypeHasBeenSet;
195  Aws::String m_activityId;
196  bool m_activityIdHasBeenSet;
198  bool m_causeHasBeenSet;
199  long long m_decisionTaskCompletedEventId;
200  bool m_decisionTaskCompletedEventIdHasBeenSet;
201  };
202 
203 } // namespace Model
204 } // namespace SWF
205 } // namespace Aws
ScheduleActivityTaskFailedEventAttributes & WithActivityType(ActivityType &&value)
ScheduleActivityTaskFailedEventAttributes & WithActivityId(const char *value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
ScheduleActivityTaskFailedEventAttributes & WithActivityId(Aws::String &&value)
ScheduleActivityTaskFailedEventAttributes & WithCause(const ScheduleActivityTaskFailedCause &value)
ScheduleActivityTaskFailedEventAttributes & WithCause(ScheduleActivityTaskFailedCause &&value)
ScheduleActivityTaskFailedEventAttributes & WithActivityType(const ActivityType &value)
ScheduleActivityTaskFailedEventAttributes & WithDecisionTaskCompletedEventId(long long value)
ScheduleActivityTaskFailedEventAttributes & WithActivityId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).