AWS SDK for C++  0.14.3
AWS SDK for C++
RequestCancelActivityTaskFailedEventAttributes.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 
39  {
40  public:
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetActivityId() const{ return m_activityId; }
51 
56  inline void SetActivityId(const Aws::String& value) { m_activityIdHasBeenSet = true; m_activityId = value; }
57 
62  inline void SetActivityId(Aws::String&& value) { m_activityIdHasBeenSet = true; m_activityId = value; }
63 
68  inline void SetActivityId(const char* value) { m_activityIdHasBeenSet = true; m_activityId.assign(value); }
69 
74  inline RequestCancelActivityTaskFailedEventAttributes& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;}
75 
80  inline RequestCancelActivityTaskFailedEventAttributes& WithActivityId(Aws::String&& value) { SetActivityId(value); return *this;}
81 
86  inline RequestCancelActivityTaskFailedEventAttributes& WithActivityId(const char* value) { SetActivityId(value); return *this;}
87 
96  inline const RequestCancelActivityTaskFailedCause& GetCause() const{ return m_cause; }
97 
106  inline void SetCause(const RequestCancelActivityTaskFailedCause& value) { m_causeHasBeenSet = true; m_cause = value; }
107 
116  inline void SetCause(RequestCancelActivityTaskFailedCause&& value) { m_causeHasBeenSet = true; m_cause = value; }
117 
127 
137 
145  inline long long GetDecisionTaskCompletedEventId() const{ return m_decisionTaskCompletedEventId; }
146 
154  inline void SetDecisionTaskCompletedEventId(long long value) { m_decisionTaskCompletedEventIdHasBeenSet = true; m_decisionTaskCompletedEventId = value; }
155 
163  inline RequestCancelActivityTaskFailedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;}
164 
165  private:
166  Aws::String m_activityId;
167  bool m_activityIdHasBeenSet;
169  bool m_causeHasBeenSet;
170  long long m_decisionTaskCompletedEventId;
171  bool m_decisionTaskCompletedEventIdHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace SWF
176 } // namespace Aws
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
RequestCancelActivityTaskFailedEventAttributes & WithActivityId(const char *value)
RequestCancelActivityTaskFailedEventAttributes & WithActivityId(const Aws::String &value)
RequestCancelActivityTaskFailedEventAttributes & WithDecisionTaskCompletedEventId(long long value)
RequestCancelActivityTaskFailedEventAttributes & WithCause(const RequestCancelActivityTaskFailedCause &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RequestCancelActivityTaskFailedEventAttributes & WithActivityId(Aws::String &&value)
RequestCancelActivityTaskFailedEventAttributes & WithCause(RequestCancelActivityTaskFailedCause &&value)
JSON (JavaScript Object Notation).