AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetRetainedMessageResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace IoTDataPlane {
24namespace Model {
32 public:
33 AWS_IOTDATAPLANE_API GetRetainedMessageResult() = default;
36
38
41 inline const Aws::String& GetTopic() const { return m_topic; }
42 template <typename TopicT = Aws::String>
43 void SetTopic(TopicT&& value) {
44 m_topicHasBeenSet = true;
45 m_topic = std::forward<TopicT>(value);
46 }
47 template <typename TopicT = Aws::String>
49 SetTopic(std::forward<TopicT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::ByteBuffer& GetPayload() const { return m_payload; }
59 template <typename PayloadT = Aws::Utils::ByteBuffer>
60 void SetPayload(PayloadT&& value) {
61 m_payloadHasBeenSet = true;
62 m_payload = std::forward<PayloadT>(value);
63 }
64 template <typename PayloadT = Aws::Utils::ByteBuffer>
66 SetPayload(std::forward<PayloadT>(value));
67 return *this;
68 }
70
72
75 inline int GetQos() const { return m_qos; }
76 inline void SetQos(int value) {
77 m_qosHasBeenSet = true;
78 m_qos = value;
79 }
80 inline GetRetainedMessageResult& WithQos(int value) {
81 SetQos(value);
82 return *this;
83 }
85
87
91 inline long long GetLastModifiedTime() const { return m_lastModifiedTime; }
92 inline void SetLastModifiedTime(long long value) {
93 m_lastModifiedTimeHasBeenSet = true;
94 m_lastModifiedTime = value;
95 }
98 return *this;
99 }
101
103
110 inline const Aws::Utils::ByteBuffer& GetUserProperties() const { return m_userProperties; }
111 template <typename UserPropertiesT = Aws::Utils::ByteBuffer>
112 void SetUserProperties(UserPropertiesT&& value) {
113 m_userPropertiesHasBeenSet = true;
114 m_userProperties = std::forward<UserPropertiesT>(value);
115 }
116 template <typename UserPropertiesT = Aws::Utils::ByteBuffer>
118 SetUserProperties(std::forward<UserPropertiesT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 template <typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) {
128 m_requestIdHasBeenSet = true;
129 m_requestId = std::forward<RequestIdT>(value);
130 }
131 template <typename RequestIdT = Aws::String>
133 SetRequestId(std::forward<RequestIdT>(value));
134 return *this;
135 }
137 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
138
139 private:
140 Aws::String m_topic;
141
142 Aws::Utils::ByteBuffer m_payload{};
143
144 int m_qos{0};
145
146 long long m_lastModifiedTime{0};
147
148 Aws::Utils::ByteBuffer m_userProperties{};
149
150 Aws::String m_requestId;
151 Aws::Http::HttpResponseCode m_HttpResponseCode;
152 bool m_topicHasBeenSet = false;
153 bool m_payloadHasBeenSet = false;
154 bool m_qosHasBeenSet = false;
155 bool m_lastModifiedTimeHasBeenSet = false;
156 bool m_userPropertiesHasBeenSet = false;
157 bool m_requestIdHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace IoTDataPlane
162} // namespace Aws
GetRetainedMessageResult & WithUserProperties(UserPropertiesT &&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 & WithTopic(TopicT &&value)
const Aws::Utils::ByteBuffer & GetUserProperties() const
GetRetainedMessageResult & WithPayload(PayloadT &&value)
GetRetainedMessageResult & WithLastModifiedTime(long long value)
AWS_IOTDATAPLANE_API GetRetainedMessageResult()=default
GetRetainedMessageResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue