AWS SDK for C++  0.14.3
AWS SDK for C++
ActivityTaskTimedOutEventAttributes.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 ActivityTaskTimeoutType& GetTimeoutType() const{ return m_timeoutType; }
49 
53  inline void SetTimeoutType(const ActivityTaskTimeoutType& value) { m_timeoutTypeHasBeenSet = true; m_timeoutType = value; }
54 
58  inline void SetTimeoutType(ActivityTaskTimeoutType&& value) { m_timeoutTypeHasBeenSet = true; m_timeoutType = value; }
59 
63  inline ActivityTaskTimedOutEventAttributes& WithTimeoutType(const ActivityTaskTimeoutType& value) { SetTimeoutType(value); return *this;}
64 
68  inline ActivityTaskTimedOutEventAttributes& WithTimeoutType(ActivityTaskTimeoutType&& value) { SetTimeoutType(value); return *this;}
69 
75  inline long long GetScheduledEventId() const{ return m_scheduledEventId; }
76 
82  inline void SetScheduledEventId(long long value) { m_scheduledEventIdHasBeenSet = true; m_scheduledEventId = value; }
83 
89  inline ActivityTaskTimedOutEventAttributes& WithScheduledEventId(long long value) { SetScheduledEventId(value); return *this;}
90 
96  inline long long GetStartedEventId() const{ return m_startedEventId; }
97 
103  inline void SetStartedEventId(long long value) { m_startedEventIdHasBeenSet = true; m_startedEventId = value; }
104 
110  inline ActivityTaskTimedOutEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;}
111 
116  inline const Aws::String& GetDetails() const{ return m_details; }
117 
122  inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
123 
128  inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = value; }
129 
134  inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
135 
140  inline ActivityTaskTimedOutEventAttributes& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
141 
146  inline ActivityTaskTimedOutEventAttributes& WithDetails(Aws::String&& value) { SetDetails(value); return *this;}
147 
152  inline ActivityTaskTimedOutEventAttributes& WithDetails(const char* value) { SetDetails(value); return *this;}
153 
154  private:
155  ActivityTaskTimeoutType m_timeoutType;
156  bool m_timeoutTypeHasBeenSet;
157  long long m_scheduledEventId;
158  bool m_scheduledEventIdHasBeenSet;
159  long long m_startedEventId;
160  bool m_startedEventIdHasBeenSet;
161  Aws::String m_details;
162  bool m_detailsHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace SWF
167 } // namespace Aws
ActivityTaskTimedOutEventAttributes & WithStartedEventId(long long value)
ActivityTaskTimedOutEventAttributes & WithTimeoutType(const ActivityTaskTimeoutType &value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:37
ActivityTaskTimedOutEventAttributes & WithDetails(const char *value)
ActivityTaskTimedOutEventAttributes & WithTimeoutType(ActivityTaskTimeoutType &&value)
ActivityTaskTimedOutEventAttributes & WithDetails(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ActivityTaskTimedOutEventAttributes & WithDetails(const Aws::String &value)
ActivityTaskTimedOutEventAttributes & WithScheduledEventId(long long value)
JSON (JavaScript Object Notation).