AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
NtpStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/panorama/Panorama_EXPORTS.h>
9#include <aws/panorama/model/NetworkConnectionStatus.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
28class NtpStatus {
29 public:
30 AWS_PANORAMA_API NtpStatus() = default;
31 AWS_PANORAMA_API NtpStatus(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PANORAMA_API NtpStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline NetworkConnectionStatus GetConnectionStatus() const { return m_connectionStatus; }
40 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
42 m_connectionStatusHasBeenSet = true;
43 m_connectionStatus = value;
44 }
47 return *this;
48 }
50
52
55 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
56 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
57 template <typename IpAddressT = Aws::String>
58 void SetIpAddress(IpAddressT&& value) {
59 m_ipAddressHasBeenSet = true;
60 m_ipAddress = std::forward<IpAddressT>(value);
61 }
62 template <typename IpAddressT = Aws::String>
63 NtpStatus& WithIpAddress(IpAddressT&& value) {
64 SetIpAddress(std::forward<IpAddressT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetNtpServerName() const { return m_ntpServerName; }
74 inline bool NtpServerNameHasBeenSet() const { return m_ntpServerNameHasBeenSet; }
75 template <typename NtpServerNameT = Aws::String>
76 void SetNtpServerName(NtpServerNameT&& value) {
77 m_ntpServerNameHasBeenSet = true;
78 m_ntpServerName = std::forward<NtpServerNameT>(value);
79 }
80 template <typename NtpServerNameT = Aws::String>
81 NtpStatus& WithNtpServerName(NtpServerNameT&& value) {
82 SetNtpServerName(std::forward<NtpServerNameT>(value));
83 return *this;
84 }
86 private:
88
89 Aws::String m_ipAddress;
90
91 Aws::String m_ntpServerName;
92 bool m_connectionStatusHasBeenSet = false;
93 bool m_ipAddressHasBeenSet = false;
94 bool m_ntpServerNameHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Panorama
99} // namespace Aws
bool ConnectionStatusHasBeenSet() const
Definition NtpStatus.h:40
NtpStatus & WithNtpServerName(NtpServerNameT &&value)
Definition NtpStatus.h:81
const Aws::String & GetNtpServerName() const
Definition NtpStatus.h:73
void SetConnectionStatus(NetworkConnectionStatus value)
Definition NtpStatus.h:41
const Aws::String & GetIpAddress() const
Definition NtpStatus.h:55
bool NtpServerNameHasBeenSet() const
Definition NtpStatus.h:74
AWS_PANORAMA_API NtpStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIpAddress(IpAddressT &&value)
Definition NtpStatus.h:58
void SetNtpServerName(NtpServerNameT &&value)
Definition NtpStatus.h:76
NtpStatus & WithConnectionStatus(NetworkConnectionStatus value)
Definition NtpStatus.h:45
NetworkConnectionStatus GetConnectionStatus() const
Definition NtpStatus.h:39
AWS_PANORAMA_API NtpStatus(Aws::Utils::Json::JsonView jsonValue)
NtpStatus & WithIpAddress(IpAddressT &&value)
Definition NtpStatus.h:63
AWS_PANORAMA_API NtpStatus()=default
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue