AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
40
41
43
46 inline const Aws::String& GetTopic() const { return m_topic; }
47 template<typename TopicT = Aws::String>
48 void SetTopic(TopicT&& value) { m_topicHasBeenSet = true; m_topic = std::forward<TopicT>(value); }
49 template<typename TopicT = Aws::String>
50 GetRetainedMessageResult& WithTopic(TopicT&& value) { SetTopic(std::forward<TopicT>(value)); return *this;}
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) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
60 template<typename PayloadT = Aws::Utils::ByteBuffer>
61 GetRetainedMessageResult& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
63
65
68 inline int GetQos() const { return m_qos; }
69 inline void SetQos(int value) { m_qosHasBeenSet = true; m_qos = value; }
70 inline GetRetainedMessageResult& WithQos(int value) { SetQos(value); return *this;}
72
74
78 inline long long GetLastModifiedTime() const { return m_lastModifiedTime; }
79 inline void SetLastModifiedTime(long long value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
80 inline GetRetainedMessageResult& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;}
82
84
91 inline const Aws::Utils::ByteBuffer& GetUserProperties() const { return m_userProperties; }
92 template<typename UserPropertiesT = Aws::Utils::ByteBuffer>
93 void SetUserProperties(UserPropertiesT&& value) { m_userPropertiesHasBeenSet = true; m_userProperties = std::forward<UserPropertiesT>(value); }
94 template<typename UserPropertiesT = Aws::Utils::ByteBuffer>
95 GetRetainedMessageResult& WithUserProperties(UserPropertiesT&& value) { SetUserProperties(std::forward<UserPropertiesT>(value)); return *this;}
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template<typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
103 template<typename RequestIdT = Aws::String>
104 GetRetainedMessageResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
106 private:
107
108 Aws::String m_topic;
109 bool m_topicHasBeenSet = false;
110
111 Aws::Utils::ByteBuffer m_payload{};
112 bool m_payloadHasBeenSet = false;
113
114 int m_qos{0};
115 bool m_qosHasBeenSet = false;
116
117 long long m_lastModifiedTime{0};
118 bool m_lastModifiedTimeHasBeenSet = false;
119
120 Aws::Utils::ByteBuffer m_userProperties{};
121 bool m_userPropertiesHasBeenSet = false;
122
123 Aws::String m_requestId;
124 bool m_requestIdHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace IoTDataPlane
129} // 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