7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
42 m_connectedHasBeenSet =
true;
59 m_timestampHasBeenSet =
true;
74 template <
typename DisconnectReasonT = Aws::String>
76 m_disconnectReasonHasBeenSet =
true;
77 m_disconnectReason = std::forward<DisconnectReasonT>(value);
79 template <
typename DisconnectReasonT = Aws::String>
94 m_keepAliveDurationHasBeenSet =
true;
95 m_keepAliveDuration = value;
111 m_cleanSessionHasBeenSet =
true;
112 m_cleanSession = value;
129 m_sessionExpiryHasBeenSet =
true;
130 m_sessionExpiry = value;
144 template <
typename ClientIdT = Aws::String>
146 m_clientIdHasBeenSet =
true;
147 m_clientId = std::forward<ClientIdT>(value);
149 template <
typename ClientIdT = Aws::String>
156 bool m_connected{
false};
158 long long m_timestamp{0};
162 int m_keepAliveDuration{0};
164 bool m_cleanSession{
false};
166 long long m_sessionExpiry{0};
169 bool m_connectedHasBeenSet =
false;
170 bool m_timestampHasBeenSet =
false;
171 bool m_disconnectReasonHasBeenSet =
false;
172 bool m_keepAliveDurationHasBeenSet =
false;
173 bool m_cleanSessionHasBeenSet =
false;
174 bool m_sessionExpiryHasBeenSet =
false;
175 bool m_clientIdHasBeenSet =
false;
ThingConnectivity & WithKeepAliveDuration(int value)
void SetConnected(bool value)
bool KeepAliveDurationHasBeenSet() const
ThingConnectivity & WithDisconnectReason(DisconnectReasonT &&value)
long long GetTimestamp() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetClientId(ClientIdT &&value)
int GetKeepAliveDuration() const
bool DisconnectReasonHasBeenSet() const
ThingConnectivity & WithCleanSession(bool value)
void SetCleanSession(bool value)
bool SessionExpiryHasBeenSet() const
ThingConnectivity & WithTimestamp(long long value)
AWS_IOT_API ThingConnectivity(Aws::Utils::Json::JsonView jsonValue)
ThingConnectivity & WithClientId(ClientIdT &&value)
void SetTimestamp(long long value)
long long GetSessionExpiry() const
bool GetCleanSession() const
const Aws::String & GetDisconnectReason() const
const Aws::String & GetClientId() const
void SetSessionExpiry(long long value)
ThingConnectivity & WithConnected(bool value)
ThingConnectivity & WithSessionExpiry(long long value)
bool TimestampHasBeenSet() const
void SetDisconnectReason(DisconnectReasonT &&value)
AWS_IOT_API ThingConnectivity()=default
bool CleanSessionHasBeenSet() const
bool ClientIdHasBeenSet() const
bool ConnectedHasBeenSet() const
bool GetConnected() const
AWS_IOT_API ThingConnectivity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeepAliveDuration(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue