/** * 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 Panorama { namespace Model { /** *

The network status of a device.

See Also:

AWS * API Reference

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

The status of Ethernet port 0.

*/ inline const EthernetStatus& GetEthernet0Status() const{ return m_ethernet0Status; } /** *

The status of Ethernet port 0.

*/ inline bool Ethernet0StatusHasBeenSet() const { return m_ethernet0StatusHasBeenSet; } /** *

The status of Ethernet port 0.

*/ inline void SetEthernet0Status(const EthernetStatus& value) { m_ethernet0StatusHasBeenSet = true; m_ethernet0Status = value; } /** *

The status of Ethernet port 0.

*/ inline void SetEthernet0Status(EthernetStatus&& value) { m_ethernet0StatusHasBeenSet = true; m_ethernet0Status = std::move(value); } /** *

The status of Ethernet port 0.

*/ inline NetworkStatus& WithEthernet0Status(const EthernetStatus& value) { SetEthernet0Status(value); return *this;} /** *

The status of Ethernet port 0.

*/ inline NetworkStatus& WithEthernet0Status(EthernetStatus&& value) { SetEthernet0Status(std::move(value)); return *this;} /** *

The status of Ethernet port 1.

*/ inline const EthernetStatus& GetEthernet1Status() const{ return m_ethernet1Status; } /** *

The status of Ethernet port 1.

*/ inline bool Ethernet1StatusHasBeenSet() const { return m_ethernet1StatusHasBeenSet; } /** *

The status of Ethernet port 1.

*/ inline void SetEthernet1Status(const EthernetStatus& value) { m_ethernet1StatusHasBeenSet = true; m_ethernet1Status = value; } /** *

The status of Ethernet port 1.

*/ inline void SetEthernet1Status(EthernetStatus&& value) { m_ethernet1StatusHasBeenSet = true; m_ethernet1Status = std::move(value); } /** *

The status of Ethernet port 1.

*/ inline NetworkStatus& WithEthernet1Status(const EthernetStatus& value) { SetEthernet1Status(value); return *this;} /** *

The status of Ethernet port 1.

*/ inline NetworkStatus& WithEthernet1Status(EthernetStatus&& value) { SetEthernet1Status(std::move(value)); return *this;} /** *

When the network status changed.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

When the network status changed.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

When the network status changed.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

When the network status changed.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

When the network status changed.

*/ inline NetworkStatus& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

When the network status changed.

*/ inline NetworkStatus& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

Details about a network time protocol (NTP) server connection.

*/ inline const NtpStatus& GetNtpStatus() const{ return m_ntpStatus; } /** *

Details about a network time protocol (NTP) server connection.

*/ inline bool NtpStatusHasBeenSet() const { return m_ntpStatusHasBeenSet; } /** *

Details about a network time protocol (NTP) server connection.

*/ inline void SetNtpStatus(const NtpStatus& value) { m_ntpStatusHasBeenSet = true; m_ntpStatus = value; } /** *

Details about a network time protocol (NTP) server connection.

*/ inline void SetNtpStatus(NtpStatus&& value) { m_ntpStatusHasBeenSet = true; m_ntpStatus = std::move(value); } /** *

Details about a network time protocol (NTP) server connection.

*/ inline NetworkStatus& WithNtpStatus(const NtpStatus& value) { SetNtpStatus(value); return *this;} /** *

Details about a network time protocol (NTP) server connection.

*/ inline NetworkStatus& WithNtpStatus(NtpStatus&& value) { SetNtpStatus(std::move(value)); return *this;} private: EthernetStatus m_ethernet0Status; bool m_ethernet0StatusHasBeenSet = false; EthernetStatus m_ethernet1Status; bool m_ethernet1StatusHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; NtpStatus m_ntpStatus; bool m_ntpStatusHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws