AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
FlowExecutionMessage.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h>
10#include <aws/iotthingsgraph/model/FlowExecutionEventType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTThingsGraph {
22namespace Model {
23
31 public:
32 AWS_IOTTHINGSGRAPH_API FlowExecutionMessage() = default;
33 AWS_IOTTHINGSGRAPH_API FlowExecutionMessage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTHINGSGRAPH_API FlowExecutionMessage& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetMessageId() const { return m_messageId; }
42 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
43 template <typename MessageIdT = Aws::String>
44 void SetMessageId(MessageIdT&& value) {
45 m_messageIdHasBeenSet = true;
46 m_messageId = std::forward<MessageIdT>(value);
47 }
48 template <typename MessageIdT = Aws::String>
49 FlowExecutionMessage& WithMessageId(MessageIdT&& value) {
50 SetMessageId(std::forward<MessageIdT>(value));
51 return *this;
52 }
54
56
59 inline FlowExecutionEventType GetEventType() const { return m_eventType; }
60 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
62 m_eventTypeHasBeenSet = true;
63 m_eventType = value;
64 }
66 SetEventType(value);
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
76 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
77 template <typename TimestampT = Aws::Utils::DateTime>
78 void SetTimestamp(TimestampT&& value) {
79 m_timestampHasBeenSet = true;
80 m_timestamp = std::forward<TimestampT>(value);
81 }
82 template <typename TimestampT = Aws::Utils::DateTime>
83 FlowExecutionMessage& WithTimestamp(TimestampT&& value) {
84 SetTimestamp(std::forward<TimestampT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetPayload() const { return m_payload; }
94 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
95 template <typename PayloadT = Aws::String>
96 void SetPayload(PayloadT&& value) {
97 m_payloadHasBeenSet = true;
98 m_payload = std::forward<PayloadT>(value);
99 }
100 template <typename PayloadT = Aws::String>
102 SetPayload(std::forward<PayloadT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_messageId;
108
110
111 Aws::Utils::DateTime m_timestamp{};
112
113 Aws::String m_payload;
114 bool m_messageIdHasBeenSet = false;
115 bool m_eventTypeHasBeenSet = false;
116 bool m_timestampHasBeenSet = false;
117 bool m_payloadHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace IoTThingsGraph
122} // namespace Aws
AWS_IOTTHINGSGRAPH_API FlowExecutionMessage()=default
const Aws::Utils::DateTime & GetTimestamp() const
FlowExecutionMessage & WithPayload(PayloadT &&value)
void SetEventType(FlowExecutionEventType value)
FlowExecutionMessage & WithTimestamp(TimestampT &&value)
AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
FlowExecutionMessage & WithMessageId(MessageIdT &&value)
AWS_IOTTHINGSGRAPH_API FlowExecutionMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
FlowExecutionMessage & WithEventType(FlowExecutionEventType value)
AWS_IOTTHINGSGRAPH_API FlowExecutionMessage(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue