AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
50 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
51 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
52 inline FlowExecutionMessage& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
53 inline FlowExecutionMessage& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
54 inline FlowExecutionMessage& WithMessageId(const char* value) { SetMessageId(value); return *this;}
56
58
61 inline const FlowExecutionEventType& GetEventType() const{ return m_eventType; }
62 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
63 inline void SetEventType(const FlowExecutionEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
64 inline void SetEventType(FlowExecutionEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
65 inline FlowExecutionMessage& WithEventType(const FlowExecutionEventType& value) { SetEventType(value); return *this;}
66 inline FlowExecutionMessage& WithEventType(FlowExecutionEventType&& value) { SetEventType(std::move(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
74 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
75 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
76 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
77 inline FlowExecutionMessage& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
78 inline FlowExecutionMessage& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetPayload() const{ return m_payload; }
86 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
87 inline void SetPayload(const Aws::String& value) { m_payloadHasBeenSet = true; m_payload = value; }
88 inline void SetPayload(Aws::String&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
89 inline void SetPayload(const char* value) { m_payloadHasBeenSet = true; m_payload.assign(value); }
90 inline FlowExecutionMessage& WithPayload(const Aws::String& value) { SetPayload(value); return *this;}
91 inline FlowExecutionMessage& WithPayload(Aws::String&& value) { SetPayload(std::move(value)); return *this;}
92 inline FlowExecutionMessage& WithPayload(const char* value) { SetPayload(value); return *this;}
94 private:
95
96 Aws::String m_messageId;
97 bool m_messageIdHasBeenSet = false;
98
99 FlowExecutionEventType m_eventType;
100 bool m_eventTypeHasBeenSet = false;
101
102 Aws::Utils::DateTime m_timestamp;
103 bool m_timestampHasBeenSet = false;
104
105 Aws::String m_payload;
106 bool m_payloadHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace IoTThingsGraph
111} // namespace Aws
const Aws::Utils::DateTime & GetTimestamp() const
FlowExecutionMessage & WithPayload(const Aws::String &value)
FlowExecutionMessage & WithPayload(Aws::String &&value)
void SetEventType(const FlowExecutionEventType &value)
FlowExecutionMessage & WithTimestamp(Aws::Utils::DateTime &&value)
FlowExecutionMessage & WithMessageId(Aws::String &&value)
FlowExecutionMessage & WithMessageId(const Aws::String &value)
FlowExecutionMessage & WithPayload(const char *value)
FlowExecutionMessage & WithTimestamp(const Aws::Utils::DateTime &value)
FlowExecutionMessage & WithEventType(FlowExecutionEventType &&value)
AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimestamp(Aws::Utils::DateTime &&value)
AWS_IOTTHINGSGRAPH_API FlowExecutionMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
FlowExecutionMessage & WithEventType(const FlowExecutionEventType &value)
void SetTimestamp(const Aws::Utils::DateTime &value)
const FlowExecutionEventType & GetEventType() const
FlowExecutionMessage & WithMessageId(const char *value)
AWS_IOTTHINGSGRAPH_API FlowExecutionMessage(Aws::Utils::Json::JsonView jsonValue)
void SetEventType(FlowExecutionEventType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue