7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
42 m_connectedHasBeenSet =
true;
63 m_timestampHasBeenSet =
true;
80 template <
typename DisconnectReasonT = Aws::String>
82 m_disconnectReasonHasBeenSet =
true;
83 m_disconnectReason = std::forward<DisconnectReasonT>(value);
85 template <
typename DisconnectReasonT = Aws::String>
100 m_keepAliveDurationHasBeenSet =
true;
101 m_keepAliveDuration = value;
117 m_cleanSessionHasBeenSet =
true;
118 m_cleanSession = value;
135 m_sessionExpiryHasBeenSet =
true;
136 m_sessionExpiry = value;
150 template <
typename ClientIdT = Aws::String>
152 m_clientIdHasBeenSet =
true;
153 m_clientId = std::forward<ClientIdT>(value);
155 template <
typename ClientIdT = Aws::String>
162 bool m_connected{
false};
164 long long m_timestamp{0};
168 int m_keepAliveDuration{0};
170 bool m_cleanSession{
false};
172 long long m_sessionExpiry{0};
175 bool m_connectedHasBeenSet =
false;
176 bool m_timestampHasBeenSet =
false;
177 bool m_disconnectReasonHasBeenSet =
false;
178 bool m_keepAliveDurationHasBeenSet =
false;
179 bool m_cleanSessionHasBeenSet =
false;
180 bool m_sessionExpiryHasBeenSet =
false;
181 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