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

A device's Ethernet status.

See Also:

AWS * API Reference

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

The device's connection status.

*/ inline const NetworkConnectionStatus& GetConnectionStatus() const{ return m_connectionStatus; } /** *

The device's connection status.

*/ inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; } /** *

The device's connection status.

*/ inline void SetConnectionStatus(const NetworkConnectionStatus& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = value; } /** *

The device's connection status.

*/ inline void SetConnectionStatus(NetworkConnectionStatus&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::move(value); } /** *

The device's connection status.

*/ inline EthernetStatus& WithConnectionStatus(const NetworkConnectionStatus& value) { SetConnectionStatus(value); return *this;} /** *

The device's connection status.

*/ inline EthernetStatus& WithConnectionStatus(NetworkConnectionStatus&& value) { SetConnectionStatus(std::move(value)); return *this;} /** *

The device's physical address.

*/ inline const Aws::String& GetHwAddress() const{ return m_hwAddress; } /** *

The device's physical address.

*/ inline bool HwAddressHasBeenSet() const { return m_hwAddressHasBeenSet; } /** *

The device's physical address.

*/ inline void SetHwAddress(const Aws::String& value) { m_hwAddressHasBeenSet = true; m_hwAddress = value; } /** *

The device's physical address.

*/ inline void SetHwAddress(Aws::String&& value) { m_hwAddressHasBeenSet = true; m_hwAddress = std::move(value); } /** *

The device's physical address.

*/ inline void SetHwAddress(const char* value) { m_hwAddressHasBeenSet = true; m_hwAddress.assign(value); } /** *

The device's physical address.

*/ inline EthernetStatus& WithHwAddress(const Aws::String& value) { SetHwAddress(value); return *this;} /** *

The device's physical address.

*/ inline EthernetStatus& WithHwAddress(Aws::String&& value) { SetHwAddress(std::move(value)); return *this;} /** *

The device's physical address.

*/ inline EthernetStatus& WithHwAddress(const char* value) { SetHwAddress(value); return *this;} /** *

The device's IP address.

*/ inline const Aws::String& GetIpAddress() const{ return m_ipAddress; } /** *

The device's IP address.

*/ inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; } /** *

The device's IP address.

*/ inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; } /** *

The device's IP address.

*/ inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); } /** *

The device's IP address.

*/ inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); } /** *

The device's IP address.

*/ inline EthernetStatus& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;} /** *

The device's IP address.

*/ inline EthernetStatus& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;} /** *

The device's IP address.

*/ inline EthernetStatus& WithIpAddress(const char* value) { SetIpAddress(value); return *this;} private: NetworkConnectionStatus m_connectionStatus; bool m_connectionStatusHasBeenSet = false; Aws::String m_hwAddress; bool m_hwAddressHasBeenSet = false; Aws::String m_ipAddress; bool m_ipAddressHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws