AWS SDK for C++

AWS SDK for C++ Version 1.11.827

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
68 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
69 template <typename TimestampT = Aws::Utils::DateTime>
70 void SetTimestamp(TimestampT&& value) {
71 m_timestampHasBeenSet = true;
72 m_timestamp = std::forward<TimestampT>(value);
73 }
74 template <typename TimestampT = Aws::Utils::DateTime>
76 SetTimestamp(std::forward<TimestampT>(value));
77 return *this;
78 }
80
82
85 inline DisconnectReasonValue GetDisconnectReason() const { return m_disconnectReason; }
87 m_disconnectReasonHasBeenSet = true;
88 m_disconnectReason = value;
89 }
92 return *this;
93 }
95
97
100 inline const Aws::String& GetSourceIp() const { return m_sourceIp; }
101 template <typename SourceIpT = Aws::String>
102 void SetSourceIp(SourceIpT&& value) {
103 m_sourceIpHasBeenSet = true;
104 m_sourceIp = std::forward<SourceIpT>(value);
105 }
106 template <typename SourceIpT = Aws::String>
108 SetSourceIp(std::forward<SourceIpT>(value));
109 return *this;
110 }
112
114
117 inline int GetSourcePort() const { return m_sourcePort; }
118 inline void SetSourcePort(int value) {
119 m_sourcePortHasBeenSet = true;
120 m_sourcePort = value;
121 }
123 SetSourcePort(value);
124 return *this;
125 }
127
129
133 inline const Aws::String& GetTargetIp() const { return m_targetIp; }
134 template <typename TargetIpT = Aws::String>
135 void SetTargetIp(TargetIpT&& value) {
136 m_targetIpHasBeenSet = true;
137 m_targetIp = std::forward<TargetIpT>(value);
138 }
139 template <typename TargetIpT = Aws::String>
141 SetTargetIp(std::forward<TargetIpT>(value));
142 return *this;
143 }
145
147
151 inline int GetTargetPort() const { return m_targetPort; }
152 inline void SetTargetPort(int value) {
153 m_targetPortHasBeenSet = true;
154 m_targetPort = value;
155 }
157 SetTargetPort(value);
158 return *this;
159 }
161
163
167 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
168 template <typename VpcEndpointIdT = Aws::String>
169 void SetVpcEndpointId(VpcEndpointIdT&& value) {
170 m_vpcEndpointIdHasBeenSet = true;
171 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
172 }
173 template <typename VpcEndpointIdT = Aws::String>
175 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
176 return *this;
177 }
179
181
185 inline int GetKeepAliveDuration() const { return m_keepAliveDuration; }
186 inline void SetKeepAliveDuration(int value) {
187 m_keepAliveDurationHasBeenSet = true;
188 m_keepAliveDuration = value;
189 }
192 return *this;
193 }
195
197
201 inline bool GetCleanSession() const { return m_cleanSession; }
202 inline void SetCleanSession(bool value) {
203 m_cleanSessionHasBeenSet = true;
204 m_cleanSession = value;
205 }
207 SetCleanSession(value);
208 return *this;
209 }
211
213
218 inline long long GetSessionExpiry() const { return m_sessionExpiry; }
219 inline void SetSessionExpiry(long long value) {
220 m_sessionExpiryHasBeenSet = true;
221 m_sessionExpiry = value;
222 }
224 SetSessionExpiry(value);
225 return *this;
226 }
228
230
233 inline const Aws::String& GetClientId() const { return m_clientId; }
234 template <typename ClientIdT = Aws::String>
235 void SetClientId(ClientIdT&& value) {
236 m_clientIdHasBeenSet = true;
237 m_clientId = std::forward<ClientIdT>(value);
238 }
239 template <typename ClientIdT = Aws::String>
241 SetClientId(std::forward<ClientIdT>(value));
242 return *this;
243 }
245
247
248 inline const Aws::String& GetRequestId() const { return m_requestId; }
249 template <typename RequestIdT = Aws::String>
250 void SetRequestId(RequestIdT&& value) {
251 m_requestIdHasBeenSet = true;
252 m_requestId = std::forward<RequestIdT>(value);
253 }
254 template <typename RequestIdT = Aws::String>
256 SetRequestId(std::forward<RequestIdT>(value));
257 return *this;
258 }
260 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
261
262 private:
263 Aws::String m_thingName;
264
265 bool m_connected{false};
266
267 Aws::Utils::DateTime m_timestamp{};
268
270
271 Aws::String m_sourceIp;
272
273 int m_sourcePort{0};
274
275 Aws::String m_targetIp;
276
277 int m_targetPort{0};
278
279 Aws::String m_vpcEndpointId;
280
281 int m_keepAliveDuration{0};
282
283 bool m_cleanSession{false};
284
285 long long m_sessionExpiry{0};
286
287 Aws::String m_clientId;
288
289 Aws::String m_requestId;
290 Aws::Http::HttpResponseCode m_HttpResponseCode;
291 bool m_thingNameHasBeenSet = false;
292 bool m_connectedHasBeenSet = false;
293 bool m_timestampHasBeenSet = false;
294 bool m_disconnectReasonHasBeenSet = false;
295 bool m_sourceIpHasBeenSet = false;
296 bool m_sourcePortHasBeenSet = false;
297 bool m_targetIpHasBeenSet = false;
298 bool m_targetPortHasBeenSet = false;
299 bool m_vpcEndpointIdHasBeenSet = false;
300 bool m_keepAliveDurationHasBeenSet = false;
301 bool m_cleanSessionHasBeenSet = false;
302 bool m_sessionExpiryHasBeenSet = false;
303 bool m_clientIdHasBeenSet = false;
304 bool m_requestIdHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace IoT
309} // 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