AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetRetainedMessageResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace IoTDataPlane {
23namespace Model {
31 public:
32 AWS_IOTDATAPLANE_API GetRetainedMessageResult() = default;
35
37
40 inline const Aws::String& GetTopic() const { return m_topic; }
41 template <typename TopicT = Aws::String>
42 void SetTopic(TopicT&& value) {
43 m_topicHasBeenSet = true;
44 m_topic = std::forward<TopicT>(value);
45 }
46 template <typename TopicT = Aws::String>
48 SetTopic(std::forward<TopicT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::ByteBuffer& GetPayload() const { return m_payload; }
58 template <typename PayloadT = Aws::Utils::ByteBuffer>
59 void SetPayload(PayloadT&& value) {
60 m_payloadHasBeenSet = true;
61 m_payload = std::forward<PayloadT>(value);
62 }
63 template <typename PayloadT = Aws::Utils::ByteBuffer>
65 SetPayload(std::forward<PayloadT>(value));
66 return *this;
67 }
69
71
74 inline int GetQos() const { return m_qos; }
75 inline void SetQos(int value) {
76 m_qosHasBeenSet = true;
77 m_qos = value;
78 }
79 inline GetRetainedMessageResult& WithQos(int value) {
80 SetQos(value);
81 return *this;
82 }
84
86
90 inline long long GetLastModifiedTime() const { return m_lastModifiedTime; }
91 inline void SetLastModifiedTime(long long value) {
92 m_lastModifiedTimeHasBeenSet = true;
93 m_lastModifiedTime = value;
94 }
97 return *this;
98 }
100
102
109 inline const Aws::Utils::ByteBuffer& GetUserProperties() const { return m_userProperties; }
110 template <typename UserPropertiesT = Aws::Utils::ByteBuffer>
111 void SetUserProperties(UserPropertiesT&& value) {
112 m_userPropertiesHasBeenSet = true;
113 m_userProperties = std::forward<UserPropertiesT>(value);
114 }
115 template <typename UserPropertiesT = Aws::Utils::ByteBuffer>
117 SetUserProperties(std::forward<UserPropertiesT>(value));
118 return *this;
119 }
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template <typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) {
127 m_requestIdHasBeenSet = true;
128 m_requestId = std::forward<RequestIdT>(value);
129 }
130 template <typename RequestIdT = Aws::String>
132 SetRequestId(std::forward<RequestIdT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_topic;
138
139 Aws::Utils::ByteBuffer m_payload{};
140
141 int m_qos{0};
142
143 long long m_lastModifiedTime{0};
144
145 Aws::Utils::ByteBuffer m_userProperties{};
146
147 Aws::String m_requestId;
148 bool m_topicHasBeenSet = false;
149 bool m_payloadHasBeenSet = false;
150 bool m_qosHasBeenSet = false;
151 bool m_lastModifiedTimeHasBeenSet = false;
152 bool m_userPropertiesHasBeenSet = false;
153 bool m_requestIdHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace IoTDataPlane
158} // 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