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/iotanalytics/IoTAnalytics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTAnalytics
23{
24namespace Model
25{
26
32 class Message
33 {
34 public:
35 AWS_IOTANALYTICS_API Message();
36 AWS_IOTANALYTICS_API Message(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTANALYTICS_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetMessageId() const{ return m_messageId; }
47 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
48 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
49 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
50 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
51 inline Message& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
52 inline Message& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
53 inline Message& WithMessageId(const char* value) { SetMessageId(value); return *this;}
55
57
62 inline const Aws::Utils::ByteBuffer& GetPayload() const{ return m_payload; }
63 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
64 inline void SetPayload(const Aws::Utils::ByteBuffer& value) { m_payloadHasBeenSet = true; m_payload = value; }
65 inline void SetPayload(Aws::Utils::ByteBuffer&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
66 inline Message& WithPayload(const Aws::Utils::ByteBuffer& value) { SetPayload(value); return *this;}
67 inline Message& WithPayload(Aws::Utils::ByteBuffer&& value) { SetPayload(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_messageId;
72 bool m_messageIdHasBeenSet = false;
73
74 Aws::Utils::ByteBuffer m_payload;
75 bool m_payloadHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace IoTAnalytics
80} // namespace Aws
AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
Message & WithMessageId(const Aws::String &value)
Definition Message.h:51
void SetMessageId(const char *value)
Definition Message.h:50
AWS_IOTANALYTICS_API Message()
void SetPayload(Aws::Utils::ByteBuffer &&value)
Definition Message.h:65
void SetMessageId(Aws::String &&value)
Definition Message.h:49
void SetPayload(const Aws::Utils::ByteBuffer &value)
Definition Message.h:64
Message & WithPayload(const Aws::Utils::ByteBuffer &value)
Definition Message.h:66
AWS_IOTANALYTICS_API Message(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessageId() const
Definition Message.h:46
Message & WithMessageId(const char *value)
Definition Message.h:53
void SetMessageId(const Aws::String &value)
Definition Message.h:48
const Aws::Utils::ByteBuffer & GetPayload() const
Definition Message.h:62
Message & WithPayload(Aws::Utils::ByteBuffer &&value)
Definition Message.h:67
AWS_IOTANALYTICS_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
Message & WithMessageId(Aws::String &&value)
Definition Message.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue