AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetRetainedMessageResult.h
1
6#pragma once
7#include <aws/iot-data/IoTDataPlane_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{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoTDataPlane
25{
26namespace Model
27{
35 {
36 public:
37 AWS_IOTDATAPLANE_API GetRetainedMessageResult();
40
41
43
46 inline const Aws::String& GetTopic() const{ return m_topic; }
47 inline void SetTopic(const Aws::String& value) { m_topic = value; }
48 inline void SetTopic(Aws::String&& value) { m_topic = std::move(value); }
49 inline void SetTopic(const char* value) { m_topic.assign(value); }
50 inline GetRetainedMessageResult& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
51 inline GetRetainedMessageResult& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
52 inline GetRetainedMessageResult& WithTopic(const char* value) { SetTopic(value); return *this;}
54
56
59 inline const Aws::Utils::ByteBuffer& GetPayload() const{ return m_payload; }
60 inline void SetPayload(const Aws::Utils::ByteBuffer& value) { m_payload = value; }
61 inline void SetPayload(Aws::Utils::ByteBuffer&& value) { m_payload = std::move(value); }
62 inline GetRetainedMessageResult& WithPayload(const Aws::Utils::ByteBuffer& value) { SetPayload(value); return *this;}
63 inline GetRetainedMessageResult& WithPayload(Aws::Utils::ByteBuffer&& value) { SetPayload(std::move(value)); return *this;}
65
67
70 inline int GetQos() const{ return m_qos; }
71 inline void SetQos(int value) { m_qos = value; }
72 inline GetRetainedMessageResult& WithQos(int value) { SetQos(value); return *this;}
74
76
80 inline long long GetLastModifiedTime() const{ return m_lastModifiedTime; }
81 inline void SetLastModifiedTime(long long value) { m_lastModifiedTime = value; }
82 inline GetRetainedMessageResult& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;}
84
86
93 inline const Aws::Utils::ByteBuffer& GetUserProperties() const{ return m_userProperties; }
94 inline void SetUserProperties(const Aws::Utils::ByteBuffer& value) { m_userProperties = value; }
95 inline void SetUserProperties(Aws::Utils::ByteBuffer&& value) { m_userProperties = std::move(value); }
97 inline GetRetainedMessageResult& WithUserProperties(Aws::Utils::ByteBuffer&& value) { SetUserProperties(std::move(value)); return *this;}
99
101
102 inline const Aws::String& GetRequestId() const{ return m_requestId; }
103 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
104 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
105 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
106 inline GetRetainedMessageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
107 inline GetRetainedMessageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
108 inline GetRetainedMessageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
110 private:
111
112 Aws::String m_topic;
113
114 Aws::Utils::ByteBuffer m_payload;
115
116 int m_qos;
117
118 long long m_lastModifiedTime;
119
120 Aws::Utils::ByteBuffer m_userProperties;
121
122 Aws::String m_requestId;
123 };
124
125} // namespace Model
126} // namespace IoTDataPlane
127} // namespace Aws
void SetPayload(const Aws::Utils::ByteBuffer &value)
GetRetainedMessageResult & WithRequestId(const Aws::String &value)
AWS_IOTDATAPLANE_API GetRetainedMessageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOTDATAPLANE_API GetRetainedMessageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRetainedMessageResult & WithRequestId(Aws::String &&value)
GetRetainedMessageResult & WithTopic(Aws::String &&value)
const Aws::Utils::ByteBuffer & GetUserProperties() const
GetRetainedMessageResult & WithTopic(const Aws::String &value)
GetRetainedMessageResult & WithUserProperties(const Aws::Utils::ByteBuffer &value)
GetRetainedMessageResult & WithUserProperties(Aws::Utils::ByteBuffer &&value)
GetRetainedMessageResult & WithRequestId(const char *value)
void SetUserProperties(const Aws::Utils::ByteBuffer &value)
GetRetainedMessageResult & WithLastModifiedTime(long long value)
GetRetainedMessageResult & WithPayload(const Aws::Utils::ByteBuffer &value)
GetRetainedMessageResult & WithTopic(const char *value)
GetRetainedMessageResult & WithPayload(Aws::Utils::ByteBuffer &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue