AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActivityTaskFailedEventAttributes.h
1
6#pragma once
7#include <aws/swf/SWF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SWF
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SWF_API ActivityTaskFailedEventAttributes() = default;
39
40
42
45 inline const Aws::String& GetReason() const { return m_reason; }
46 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
47 template<typename ReasonT = Aws::String>
48 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
49 template<typename ReasonT = Aws::String>
50 ActivityTaskFailedEventAttributes& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
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) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
61 template<typename DetailsT = Aws::String>
62 ActivityTaskFailedEventAttributes& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
64
66
71 inline long long GetScheduledEventId() const { return m_scheduledEventId; }
72 inline bool ScheduledEventIdHasBeenSet() const { return m_scheduledEventIdHasBeenSet; }
73 inline void SetScheduledEventId(long long value) { m_scheduledEventIdHasBeenSet = true; m_scheduledEventId = value; }
74 inline ActivityTaskFailedEventAttributes& WithScheduledEventId(long long value) { SetScheduledEventId(value); return *this;}
76
78
83 inline long long GetStartedEventId() const { return m_startedEventId; }
84 inline bool StartedEventIdHasBeenSet() const { return m_startedEventIdHasBeenSet; }
85 inline void SetStartedEventId(long long value) { m_startedEventIdHasBeenSet = true; m_startedEventId = value; }
86 inline ActivityTaskFailedEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;}
88 private:
89
90 Aws::String m_reason;
91 bool m_reasonHasBeenSet = false;
92
93 Aws::String m_details;
94 bool m_detailsHasBeenSet = false;
95
96 long long m_scheduledEventId{0};
97 bool m_scheduledEventIdHasBeenSet = false;
98
99 long long m_startedEventId{0};
100 bool m_startedEventIdHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SWF
105} // 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