AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
GetThingConnectivityDataResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/DisconnectReasonValue.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoT {
25namespace Model {
27 public:
28 AWS_IOT_API GetThingConnectivityDataResult() = default;
31
33
36 inline const Aws::String& GetThingName() const { return m_thingName; }
37 template <typename ThingNameT = Aws::String>
38 void SetThingName(ThingNameT&& value) {
39 m_thingNameHasBeenSet = true;
40 m_thingName = std::forward<ThingNameT>(value);
41 }
42 template <typename ThingNameT = Aws::String>
44 SetThingName(std::forward<ThingNameT>(value));
45 return *this;
46 }
48
50
53 inline bool GetConnected() const { return m_connected; }
54 inline void SetConnected(bool value) {
55 m_connectedHasBeenSet = true;
56 m_connected = value;
57 }
59 SetConnected(value);
60 return *this;
61 }
63
65
70 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
71 template <typename TimestampT = Aws::Utils::DateTime>
72 void SetTimestamp(TimestampT&& value) {
73 m_timestampHasBeenSet = true;
74 m_timestamp = std::forward<TimestampT>(value);
75 }
76 template <typename TimestampT = Aws::Utils::DateTime>
78 SetTimestamp(std::forward<TimestampT>(value));
79 return *this;
80 }
82
84
89 inline DisconnectReasonValue GetDisconnectReason() const { return m_disconnectReason; }
91 m_disconnectReasonHasBeenSet = true;
92 m_disconnectReason = value;
93 }
96 return *this;
97 }
99
101
104 inline const Aws::String& GetSourceIp() const { return m_sourceIp; }
105 template <typename SourceIpT = Aws::String>
106 void SetSourceIp(SourceIpT&& value) {
107 m_sourceIpHasBeenSet = true;
108 m_sourceIp = std::forward<SourceIpT>(value);
109 }
110 template <typename SourceIpT = Aws::String>
112 SetSourceIp(std::forward<SourceIpT>(value));
113 return *this;
114 }
116
118
121 inline int GetSourcePort() const { return m_sourcePort; }
122 inline void SetSourcePort(int value) {
123 m_sourcePortHasBeenSet = true;
124 m_sourcePort = value;
125 }
127 SetSourcePort(value);
128 return *this;
129 }
131
133
137 inline const Aws::String& GetTargetIp() const { return m_targetIp; }
138 template <typename TargetIpT = Aws::String>
139 void SetTargetIp(TargetIpT&& value) {
140 m_targetIpHasBeenSet = true;
141 m_targetIp = std::forward<TargetIpT>(value);
142 }
143 template <typename TargetIpT = Aws::String>
145 SetTargetIp(std::forward<TargetIpT>(value));
146 return *this;
147 }
149
151
155 inline int GetTargetPort() const { return m_targetPort; }
156 inline void SetTargetPort(int value) {
157 m_targetPortHasBeenSet = true;
158 m_targetPort = value;
159 }
161 SetTargetPort(value);
162 return *this;
163 }
165
167
171 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
172 template <typename VpcEndpointIdT = Aws::String>
173 void SetVpcEndpointId(VpcEndpointIdT&& value) {
174 m_vpcEndpointIdHasBeenSet = true;
175 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
176 }
177 template <typename VpcEndpointIdT = Aws::String>
179 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
180 return *this;
181 }
183
185
189 inline int GetKeepAliveDuration() const { return m_keepAliveDuration; }
190 inline void SetKeepAliveDuration(int value) {
191 m_keepAliveDurationHasBeenSet = true;
192 m_keepAliveDuration = value;
193 }
196 return *this;
197 }
199
201
205 inline bool GetCleanSession() const { return m_cleanSession; }
206 inline void SetCleanSession(bool value) {
207 m_cleanSessionHasBeenSet = true;
208 m_cleanSession = value;
209 }
211 SetCleanSession(value);
212 return *this;
213 }
215
217
222 inline long long GetSessionExpiry() const { return m_sessionExpiry; }
223 inline void SetSessionExpiry(long long value) {
224 m_sessionExpiryHasBeenSet = true;
225 m_sessionExpiry = value;
226 }
228 SetSessionExpiry(value);
229 return *this;
230 }
232
234
237 inline const Aws::String& GetClientId() const { return m_clientId; }
238 template <typename ClientIdT = Aws::String>
239 void SetClientId(ClientIdT&& value) {
240 m_clientIdHasBeenSet = true;
241 m_clientId = std::forward<ClientIdT>(value);
242 }
243 template <typename ClientIdT = Aws::String>
245 SetClientId(std::forward<ClientIdT>(value));
246 return *this;
247 }
249
251
252 inline const Aws::String& GetRequestId() const { return m_requestId; }
253 template <typename RequestIdT = Aws::String>
254 void SetRequestId(RequestIdT&& value) {
255 m_requestIdHasBeenSet = true;
256 m_requestId = std::forward<RequestIdT>(value);
257 }
258 template <typename RequestIdT = Aws::String>
260 SetRequestId(std::forward<RequestIdT>(value));
261 return *this;
262 }
264 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
265
266 private:
267 Aws::String m_thingName;
268
269 bool m_connected{false};
270
271 Aws::Utils::DateTime m_timestamp{};
272
274
275 Aws::String m_sourceIp;
276
277 int m_sourcePort{0};
278
279 Aws::String m_targetIp;
280
281 int m_targetPort{0};
282
283 Aws::String m_vpcEndpointId;
284
285 int m_keepAliveDuration{0};
286
287 bool m_cleanSession{false};
288
289 long long m_sessionExpiry{0};
290
291 Aws::String m_clientId;
292
293 Aws::String m_requestId;
294 Aws::Http::HttpResponseCode m_HttpResponseCode;
295 bool m_thingNameHasBeenSet = false;
296 bool m_connectedHasBeenSet = false;
297 bool m_timestampHasBeenSet = false;
298 bool m_disconnectReasonHasBeenSet = false;
299 bool m_sourceIpHasBeenSet = false;
300 bool m_sourcePortHasBeenSet = false;
301 bool m_targetIpHasBeenSet = false;
302 bool m_targetPortHasBeenSet = false;
303 bool m_vpcEndpointIdHasBeenSet = false;
304 bool m_keepAliveDurationHasBeenSet = false;
305 bool m_cleanSessionHasBeenSet = false;
306 bool m_sessionExpiryHasBeenSet = false;
307 bool m_clientIdHasBeenSet = false;
308 bool m_requestIdHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace IoT
313} // namespace Aws
GetThingConnectivityDataResult & WithClientId(ClientIdT &&value)
GetThingConnectivityDataResult & WithDisconnectReason(DisconnectReasonValue value)
GetThingConnectivityDataResult & WithCleanSession(bool value)
GetThingConnectivityDataResult & WithVpcEndpointId(VpcEndpointIdT &&value)
GetThingConnectivityDataResult & WithTargetPort(int value)
GetThingConnectivityDataResult & WithTargetIp(TargetIpT &&value)
GetThingConnectivityDataResult & WithKeepAliveDuration(int value)
GetThingConnectivityDataResult & WithSessionExpiry(long long value)
GetThingConnectivityDataResult & WithSourceIp(SourceIpT &&value)
GetThingConnectivityDataResult & WithConnected(bool value)
GetThingConnectivityDataResult & WithSourcePort(int value)
AWS_IOT_API GetThingConnectivityDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetThingConnectivityDataResult & WithThingName(ThingNameT &&value)
AWS_IOT_API GetThingConnectivityDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetThingConnectivityDataResult & WithTimestamp(TimestampT &&value)
GetThingConnectivityDataResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue