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

Describes connection health.

See Also:

AWS * API Reference

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

The connection type.

*/ inline const ConnectionType& GetType() const{ return m_type; } /** *

The connection type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The connection type.

*/ inline void SetType(const ConnectionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The connection type.

*/ inline void SetType(ConnectionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The connection type.

*/ inline ConnectionHealth& WithType(const ConnectionType& value) { SetType(value); return *this;} /** *

The connection type.

*/ inline ConnectionHealth& WithType(ConnectionType&& value) { SetType(std::move(value)); return *this;} /** *

The connection status.

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

The connection status.

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

The connection status.

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

The connection status.

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

The connection status.

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

The connection status.

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

The time the status was last updated.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The time the status was last updated.

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

The time the status was last updated.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time the status was last updated.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The time the status was last updated.

*/ inline ConnectionHealth& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The time the status was last updated.

*/ inline ConnectionHealth& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} private: ConnectionType m_type; bool m_typeHasBeenSet = false; ConnectionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws