AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
39
40
42
45 inline const Aws::String& GetReason() const{ return m_reason; }
46 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
47 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
48 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
49 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
50 inline ActivityTaskFailedEventAttributes& WithReason(const Aws::String& value) { SetReason(value); return *this;}
51 inline ActivityTaskFailedEventAttributes& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
52 inline ActivityTaskFailedEventAttributes& WithReason(const char* value) { SetReason(value); return *this;}
54
56
59 inline const Aws::String& GetDetails() const{ return m_details; }
60 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
61 inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
62 inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
63 inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
64 inline ActivityTaskFailedEventAttributes& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
65 inline ActivityTaskFailedEventAttributes& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
66 inline ActivityTaskFailedEventAttributes& WithDetails(const char* value) { SetDetails(value); return *this;}
68
70
75 inline long long GetScheduledEventId() const{ return m_scheduledEventId; }
76 inline bool ScheduledEventIdHasBeenSet() const { return m_scheduledEventIdHasBeenSet; }
77 inline void SetScheduledEventId(long long value) { m_scheduledEventIdHasBeenSet = true; m_scheduledEventId = value; }
78 inline ActivityTaskFailedEventAttributes& WithScheduledEventId(long long value) { SetScheduledEventId(value); return *this;}
80
82
87 inline long long GetStartedEventId() const{ return m_startedEventId; }
88 inline bool StartedEventIdHasBeenSet() const { return m_startedEventIdHasBeenSet; }
89 inline void SetStartedEventId(long long value) { m_startedEventIdHasBeenSet = true; m_startedEventId = value; }
90 inline ActivityTaskFailedEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;}
92 private:
93
94 Aws::String m_reason;
95 bool m_reasonHasBeenSet = false;
96
97 Aws::String m_details;
98 bool m_detailsHasBeenSet = false;
99
100 long long m_scheduledEventId;
101 bool m_scheduledEventIdHasBeenSet = false;
102
103 long long m_startedEventId;
104 bool m_startedEventIdHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SWF
109} // namespace Aws
AWS_SWF_API ActivityTaskFailedEventAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
ActivityTaskFailedEventAttributes & WithDetails(const Aws::String &value)
ActivityTaskFailedEventAttributes & WithReason(const char *value)
ActivityTaskFailedEventAttributes & WithScheduledEventId(long long value)
ActivityTaskFailedEventAttributes & WithReason(Aws::String &&value)
ActivityTaskFailedEventAttributes & WithStartedEventId(long long value)
AWS_SWF_API Aws::Utils::Json::JsonValue Jsonize() const
ActivityTaskFailedEventAttributes & WithDetails(const char *value)
ActivityTaskFailedEventAttributes & WithDetails(Aws::String &&value)
AWS_SWF_API ActivityTaskFailedEventAttributes(Aws::Utils::Json::JsonView jsonValue)
ActivityTaskFailedEventAttributes & WithReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue