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

Network time protocol (NTP) server settings. Use this option to connect to * local NTP servers instead of pool.ntp.org.

See Also:

* AWS * API Reference

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

NTP servers to use, in order of preference.

*/ inline const Aws::Vector& GetNtpServers() const{ return m_ntpServers; } /** *

NTP servers to use, in order of preference.

*/ inline bool NtpServersHasBeenSet() const { return m_ntpServersHasBeenSet; } /** *

NTP servers to use, in order of preference.

*/ inline void SetNtpServers(const Aws::Vector& value) { m_ntpServersHasBeenSet = true; m_ntpServers = value; } /** *

NTP servers to use, in order of preference.

*/ inline void SetNtpServers(Aws::Vector&& value) { m_ntpServersHasBeenSet = true; m_ntpServers = std::move(value); } /** *

NTP servers to use, in order of preference.

*/ inline NtpPayload& WithNtpServers(const Aws::Vector& value) { SetNtpServers(value); return *this;} /** *

NTP servers to use, in order of preference.

*/ inline NtpPayload& WithNtpServers(Aws::Vector&& value) { SetNtpServers(std::move(value)); return *this;} /** *

NTP servers to use, in order of preference.

*/ inline NtpPayload& AddNtpServers(const Aws::String& value) { m_ntpServersHasBeenSet = true; m_ntpServers.push_back(value); return *this; } /** *

NTP servers to use, in order of preference.

*/ inline NtpPayload& AddNtpServers(Aws::String&& value) { m_ntpServersHasBeenSet = true; m_ntpServers.push_back(std::move(value)); return *this; } /** *

NTP servers to use, in order of preference.

*/ inline NtpPayload& AddNtpServers(const char* value) { m_ntpServersHasBeenSet = true; m_ntpServers.push_back(value); return *this; } private: Aws::Vector m_ntpServers; bool m_ntpServersHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws