AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FlowExecutionMessage.h
1
6#pragma once
7#include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotthingsgraph/model/FlowExecutionEventType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTThingsGraph
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOTTHINGSGRAPH_API FlowExecutionMessage() = default;
38 AWS_IOTTHINGSGRAPH_API FlowExecutionMessage(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTTHINGSGRAPH_API FlowExecutionMessage& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMessageId() const { return m_messageId; }
48 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
49 template<typename MessageIdT = Aws::String>
50 void SetMessageId(MessageIdT&& value) { m_messageIdHasBeenSet = true; m_messageId = std::forward<MessageIdT>(value); }
51 template<typename MessageIdT = Aws::String>
52 FlowExecutionMessage& WithMessageId(MessageIdT&& value) { SetMessageId(std::forward<MessageIdT>(value)); return *this;}
54
56
59 inline FlowExecutionEventType GetEventType() const { return m_eventType; }
60 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
61 inline void SetEventType(FlowExecutionEventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
64
66
69 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
70 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
71 template<typename TimestampT = Aws::Utils::DateTime>
72 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
73 template<typename TimestampT = Aws::Utils::DateTime>
74 FlowExecutionMessage& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
76
78
81 inline const Aws::String& GetPayload() const { return m_payload; }
82 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
83 template<typename PayloadT = Aws::String>
84 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
85 template<typename PayloadT = Aws::String>
86 FlowExecutionMessage& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
88 private:
89
90 Aws::String m_messageId;
91 bool m_messageIdHasBeenSet = false;
92
94 bool m_eventTypeHasBeenSet = false;
95
96 Aws::Utils::DateTime m_timestamp{};
97 bool m_timestampHasBeenSet = false;
98
99 Aws::String m_payload;
100 bool m_payloadHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace IoTThingsGraph
105} // 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