AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ActivityTaskFailedEventAttributes.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/swf/SWF_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SWF {
20namespace Model {
21
29 public:
30 AWS_SWF_API ActivityTaskFailedEventAttributes() = default;
34
36
39 inline const Aws::String& GetReason() const { return m_reason; }
40 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
41 template <typename ReasonT = Aws::String>
42 void SetReason(ReasonT&& value) {
43 m_reasonHasBeenSet = true;
44 m_reason = std::forward<ReasonT>(value);
45 }
46 template <typename ReasonT = Aws::String>
48 SetReason(std::forward<ReasonT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDetails() const { return m_details; }
58 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
59 template <typename DetailsT = Aws::String>
60 void SetDetails(DetailsT&& value) {
61 m_detailsHasBeenSet = true;
62 m_details = std::forward<DetailsT>(value);
63 }
64 template <typename DetailsT = Aws::String>
66 SetDetails(std::forward<DetailsT>(value));
67 return *this;
68 }
70
72
77 inline long long GetScheduledEventId() const { return m_scheduledEventId; }
78 inline bool ScheduledEventIdHasBeenSet() const { return m_scheduledEventIdHasBeenSet; }
79 inline void SetScheduledEventId(long long value) {
80 m_scheduledEventIdHasBeenSet = true;
81 m_scheduledEventId = value;
82 }
85 return *this;
86 }
88
90
95 inline long long GetStartedEventId() const { return m_startedEventId; }
96 inline bool StartedEventIdHasBeenSet() const { return m_startedEventIdHasBeenSet; }
97 inline void SetStartedEventId(long long value) {
98 m_startedEventIdHasBeenSet = true;
99 m_startedEventId = value;
100 }
102 SetStartedEventId(value);
103 return *this;
104 }
106 private:
107 Aws::String m_reason;
108
109 Aws::String m_details;
110
111 long long m_scheduledEventId{0};
112
113 long long m_startedEventId{0};
114 bool m_reasonHasBeenSet = false;
115 bool m_detailsHasBeenSet = false;
116 bool m_scheduledEventIdHasBeenSet = false;
117 bool m_startedEventIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace SWF
122} // namespace Aws
AWS_SWF_API ActivityTaskFailedEventAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
ActivityTaskFailedEventAttributes & WithReason(ReasonT &&value)
ActivityTaskFailedEventAttributes & WithScheduledEventId(long long value)
ActivityTaskFailedEventAttributes & WithStartedEventId(long long value)
AWS_SWF_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SWF_API ActivityTaskFailedEventAttributes(Aws::Utils::Json::JsonView jsonValue)
ActivityTaskFailedEventAttributes & WithDetails(DetailsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue