AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <aws/iotevents-data/model/TimestampValue.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 IoTEventsData
24{
25namespace Model
26{
27
33 class Message
34 {
35 public:
36 AWS_IOTEVENTSDATA_API Message();
37 AWS_IOTEVENTSDATA_API Message(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTEVENTSDATA_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
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 Message& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
53 inline Message& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
54 inline Message& WithMessageId(const char* value) { SetMessageId(value); return *this;}
56
58
61 inline const Aws::String& GetInputName() const{ return m_inputName; }
62 inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
63 inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
64 inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
65 inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
66 inline Message& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
67 inline Message& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
68 inline Message& WithInputName(const char* value) { SetInputName(value); return *this;}
70
72
76 inline const Aws::Utils::ByteBuffer& GetPayload() const{ return m_payload; }
77 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
78 inline void SetPayload(const Aws::Utils::ByteBuffer& value) { m_payloadHasBeenSet = true; m_payload = value; }
79 inline void SetPayload(Aws::Utils::ByteBuffer&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
80 inline Message& WithPayload(const Aws::Utils::ByteBuffer& value) { SetPayload(value); return *this;}
81 inline Message& WithPayload(Aws::Utils::ByteBuffer&& value) { SetPayload(std::move(value)); return *this;}
83
85
88 inline const TimestampValue& GetTimestamp() const{ return m_timestamp; }
89 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
90 inline void SetTimestamp(const TimestampValue& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
91 inline void SetTimestamp(TimestampValue&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
92 inline Message& WithTimestamp(const TimestampValue& value) { SetTimestamp(value); return *this;}
93 inline Message& WithTimestamp(TimestampValue&& value) { SetTimestamp(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_messageId;
98 bool m_messageIdHasBeenSet = false;
99
100 Aws::String m_inputName;
101 bool m_inputNameHasBeenSet = false;
102
103 Aws::Utils::ByteBuffer m_payload;
104 bool m_payloadHasBeenSet = false;
105
106 TimestampValue m_timestamp;
107 bool m_timestampHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace IoTEventsData
112} // namespace Aws
const TimestampValue & GetTimestamp() const
Definition Message.h:88
Message & WithTimestamp(TimestampValue &&value)
Definition Message.h:93
AWS_IOTEVENTSDATA_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetPayload() const
Definition Message.h:76
Message & WithPayload(Aws::Utils::ByteBuffer &&value)
Definition Message.h:81
void SetMessageId(Aws::String &&value)
Definition Message.h:50
Message & WithPayload(const Aws::Utils::ByteBuffer &value)
Definition Message.h:80
AWS_IOTEVENTSDATA_API Message()
Message & WithInputName(const Aws::String &value)
Definition Message.h:66
void SetTimestamp(TimestampValue &&value)
Definition Message.h:91
AWS_IOTEVENTSDATA_API Message(Aws::Utils::Json::JsonView jsonValue)
void SetInputName(const Aws::String &value)
Definition Message.h:63
Message & WithMessageId(Aws::String &&value)
Definition Message.h:53
void SetTimestamp(const TimestampValue &value)
Definition Message.h:90
void SetMessageId(const Aws::String &value)
Definition Message.h:49
void SetInputName(Aws::String &&value)
Definition Message.h:64
Message & WithInputName(const char *value)
Definition Message.h:68
void SetMessageId(const char *value)
Definition Message.h:51
Message & WithMessageId(const Aws::String &value)
Definition Message.h:52
const Aws::String & GetMessageId() const
Definition Message.h:47
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPayload(Aws::Utils::ByteBuffer &&value)
Definition Message.h:79
Message & WithInputName(Aws::String &&value)
Definition Message.h:67
Message & WithTimestamp(const TimestampValue &value)
Definition Message.h:92
void SetInputName(const char *value)
Definition Message.h:65
void SetPayload(const Aws::Utils::ByteBuffer &value)
Definition Message.h:78
const Aws::String & GetInputName() const
Definition Message.h:61
Message & WithMessageId(const char *value)
Definition Message.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue