AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
NtpPayload.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/panorama/Panorama_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Panorama {
21namespace Model {
22
31 public:
32 AWS_PANORAMA_API NtpPayload() = default;
33 AWS_PANORAMA_API NtpPayload(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PANORAMA_API NtpPayload& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetNtpServers() const { return m_ntpServers; }
42 inline bool NtpServersHasBeenSet() const { return m_ntpServersHasBeenSet; }
43 template <typename NtpServersT = Aws::Vector<Aws::String>>
44 void SetNtpServers(NtpServersT&& value) {
45 m_ntpServersHasBeenSet = true;
46 m_ntpServers = std::forward<NtpServersT>(value);
47 }
48 template <typename NtpServersT = Aws::Vector<Aws::String>>
49 NtpPayload& WithNtpServers(NtpServersT&& value) {
50 SetNtpServers(std::forward<NtpServersT>(value));
51 return *this;
52 }
53 template <typename NtpServersT = Aws::String>
54 NtpPayload& AddNtpServers(NtpServersT&& value) {
55 m_ntpServersHasBeenSet = true;
56 m_ntpServers.emplace_back(std::forward<NtpServersT>(value));
57 return *this;
58 }
60 private:
61 Aws::Vector<Aws::String> m_ntpServers;
62 bool m_ntpServersHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace Panorama
67} // namespace Aws
AWS_PANORAMA_API NtpPayload()=default
NtpPayload & WithNtpServers(NtpServersT &&value)
Definition NtpPayload.h:49
const Aws::Vector< Aws::String > & GetNtpServers() const
Definition NtpPayload.h:41
void SetNtpServers(NtpServersT &&value)
Definition NtpPayload.h:44
AWS_PANORAMA_API NtpPayload(Aws::Utils::Json::JsonView jsonValue)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PANORAMA_API NtpPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
NtpPayload & AddNtpServers(NtpServersT &&value)
Definition NtpPayload.h:54
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue