AWS SDK for C++  0.12.9
AWS SDK for C++
ActivityTaskCanceledEventAttributes.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>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace SWF
29 {
30 namespace Model
31 {
32 
37  {
38  public:
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetDetails() const{ return m_details; }
48 
52  inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
53 
57  inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = value; }
58 
62  inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
63 
67  inline ActivityTaskCanceledEventAttributes& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
68 
72  inline ActivityTaskCanceledEventAttributes& WithDetails(Aws::String&& value) { SetDetails(value); return *this;}
73 
77  inline ActivityTaskCanceledEventAttributes& WithDetails(const char* value) { SetDetails(value); return *this;}
78 
84  inline long long GetScheduledEventId() const{ return m_scheduledEventId; }
85 
91  inline void SetScheduledEventId(long long value) { m_scheduledEventIdHasBeenSet = true; m_scheduledEventId = value; }
92 
98  inline ActivityTaskCanceledEventAttributes& WithScheduledEventId(long long value) { SetScheduledEventId(value); return *this;}
99 
105  inline long long GetStartedEventId() const{ return m_startedEventId; }
106 
112  inline void SetStartedEventId(long long value) { m_startedEventIdHasBeenSet = true; m_startedEventId = value; }
113 
119  inline ActivityTaskCanceledEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;}
120 
127  inline long long GetLatestCancelRequestedEventId() const{ return m_latestCancelRequestedEventId; }
128 
135  inline void SetLatestCancelRequestedEventId(long long value) { m_latestCancelRequestedEventIdHasBeenSet = true; m_latestCancelRequestedEventId = value; }
136 
143  inline ActivityTaskCanceledEventAttributes& WithLatestCancelRequestedEventId(long long value) { SetLatestCancelRequestedEventId(value); return *this;}
144 
145  private:
146  Aws::String m_details;
147  bool m_detailsHasBeenSet;
148  long long m_scheduledEventId;
149  bool m_scheduledEventIdHasBeenSet;
150  long long m_startedEventId;
151  bool m_startedEventIdHasBeenSet;
152  long long m_latestCancelRequestedEventId;
153  bool m_latestCancelRequestedEventIdHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace SWF
158 } // namespace Aws
ActivityTaskCanceledEventAttributes & WithDetails(Aws::String &&value)
ActivityTaskCanceledEventAttributes & WithDetails(const Aws::String &value)
#define AWS_SWF_API
Definition: SWF_EXPORTS.h:34
ActivityTaskCanceledEventAttributes & WithDetails(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ActivityTaskCanceledEventAttributes & WithScheduledEventId(long long value)
ActivityTaskCanceledEventAttributes & WithLatestCancelRequestedEventId(long long value)
ActivityTaskCanceledEventAttributes & WithStartedEventId(long long value)
JSON (JavaScript Object Notation).