AWS SDK for C++

AWS SDK for C++ Version 1.11.767

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
98 inline const Aws::String& GetRequestId() const { return m_requestId; }
99 template <typename RequestIdT = Aws::String>
100 void SetRequestId(RequestIdT&& value) {
101 m_requestIdHasBeenSet = true;
102 m_requestId = std::forward<RequestIdT>(value);
103 }
104 template <typename RequestIdT = Aws::String>
106 SetRequestId(std::forward<RequestIdT>(value));
107 return *this;
108 }
110 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
111
112 private:
113 Aws::String m_thingName;
114
115 bool m_connected{false};
116
117 Aws::Utils::DateTime m_timestamp{};
118
120
121 Aws::String m_requestId;
122 Aws::Http::HttpResponseCode m_HttpResponseCode;
123 bool m_thingNameHasBeenSet = false;
124 bool m_connectedHasBeenSet = false;
125 bool m_timestampHasBeenSet = false;
126 bool m_disconnectReasonHasBeenSet = false;
127 bool m_requestIdHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace IoT
132} // namespace Aws
GetThingConnectivityDataResult & WithDisconnectReason(DisconnectReasonValue value)
GetThingConnectivityDataResult & WithConnected(bool 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