/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

The connectivity status of the thing.

See Also:

AWS * API Reference

*/ class AWS_IOT_API ThingConnectivity { public: ThingConnectivity(); ThingConnectivity(Aws::Utils::Json::JsonView jsonValue); ThingConnectivity& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

True if the thing is connected to the AWS IoT service; false if it is not * connected.

*/ inline bool GetConnected() const{ return m_connected; } /** *

True if the thing is connected to the AWS IoT service; false if it is not * connected.

*/ inline bool ConnectedHasBeenSet() const { return m_connectedHasBeenSet; } /** *

True if the thing is connected to the AWS IoT service; false if it is not * connected.

*/ inline void SetConnected(bool value) { m_connectedHasBeenSet = true; m_connected = value; } /** *

True if the thing is connected to the AWS IoT service; false if it is not * connected.

*/ inline ThingConnectivity& WithConnected(bool value) { SetConnected(value); return *this;} /** *

The epoch time (in milliseconds) when the thing last connected or * disconnected. If the thing has been disconnected for more than a few weeks, the * time value might be missing.

*/ inline long long GetTimestamp() const{ return m_timestamp; } /** *

The epoch time (in milliseconds) when the thing last connected or * disconnected. If the thing has been disconnected for more than a few weeks, the * time value might be missing.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The epoch time (in milliseconds) when the thing last connected or * disconnected. If the thing has been disconnected for more than a few weeks, the * time value might be missing.

*/ inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The epoch time (in milliseconds) when the thing last connected or * disconnected. If the thing has been disconnected for more than a few weeks, the * time value might be missing.

*/ inline ThingConnectivity& WithTimestamp(long long value) { SetTimestamp(value); return *this;} private: bool m_connected; bool m_connectedHasBeenSet; long long m_timestamp; bool m_timestampHasBeenSet; }; } // namespace Model } // namespace IoT } // namespace Aws