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

The state of a connection.

See Also:

AWS * API Reference

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

The connection status of the tunnel. Valid values are CONNECTED * and DISCONNECTED.

*/ inline const ConnectionStatus& GetStatus() const{ return m_status; } /** *

The connection status of the tunnel. Valid values are CONNECTED * and DISCONNECTED.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The connection status of the tunnel. Valid values are CONNECTED * and DISCONNECTED.

*/ inline void SetStatus(const ConnectionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The connection status of the tunnel. Valid values are CONNECTED * and DISCONNECTED.

*/ inline void SetStatus(ConnectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The connection status of the tunnel. Valid values are CONNECTED * and DISCONNECTED.

*/ inline ConnectionState& WithStatus(const ConnectionStatus& value) { SetStatus(value); return *this;} /** *

The connection status of the tunnel. Valid values are CONNECTED * and DISCONNECTED.

*/ inline ConnectionState& WithStatus(ConnectionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The last time the connection status was updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The last time the connection status was updated.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The last time the connection status was updated.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The last time the connection status was updated.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The last time the connection status was updated.

*/ inline ConnectionState& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The last time the connection status was updated.

*/ inline ConnectionState& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} private: ConnectionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; }; } // namespace Model } // namespace IoTSecureTunneling } // namespace Aws