/** * 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 { /** *

Details about an NTP server connection.

See Also:

AWS * API Reference

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

The connection's status.

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

The connection's status.

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

The connection's status.

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

The connection's status.

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

The connection's status.

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

The connection's status.

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

The IP address of the server.

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

The IP address of the server.

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

The IP address of the server.

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

The IP address of the server.

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

The IP address of the server.

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

The IP address of the server.

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

The IP address of the server.

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

The IP address of the server.

*/ inline NtpStatus& WithIpAddress(const char* value) { SetIpAddress(value); return *this;} /** *

The domain name of the server.

*/ inline const Aws::String& GetNtpServerName() const{ return m_ntpServerName; } /** *

The domain name of the server.

*/ inline bool NtpServerNameHasBeenSet() const { return m_ntpServerNameHasBeenSet; } /** *

The domain name of the server.

*/ inline void SetNtpServerName(const Aws::String& value) { m_ntpServerNameHasBeenSet = true; m_ntpServerName = value; } /** *

The domain name of the server.

*/ inline void SetNtpServerName(Aws::String&& value) { m_ntpServerNameHasBeenSet = true; m_ntpServerName = std::move(value); } /** *

The domain name of the server.

*/ inline void SetNtpServerName(const char* value) { m_ntpServerNameHasBeenSet = true; m_ntpServerName.assign(value); } /** *

The domain name of the server.

*/ inline NtpStatus& WithNtpServerName(const Aws::String& value) { SetNtpServerName(value); return *this;} /** *

The domain name of the server.

*/ inline NtpStatus& WithNtpServerName(Aws::String&& value) { SetNtpServerName(std::move(value)); return *this;} /** *

The domain name of the server.

*/ inline NtpStatus& WithNtpServerName(const char* value) { SetNtpServerName(value); return *this;} private: NetworkConnectionStatus m_connectionStatus; bool m_connectionStatusHasBeenSet = false; Aws::String m_ipAddress; bool m_ipAddressHasBeenSet = false; Aws::String m_ntpServerName; bool m_ntpServerNameHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws