AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NetworkPayload.h
1
6#pragma once
7#include <aws/panorama/Panorama_EXPORTS.h>
8#include <aws/panorama/model/EthernetPayload.h>
9#include <aws/panorama/model/NtpPayload.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
29 public:
30 AWS_PANORAMA_API NetworkPayload() = default;
31 AWS_PANORAMA_API NetworkPayload(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const EthernetPayload& GetEthernet0() const { return m_ethernet0; }
40 inline bool Ethernet0HasBeenSet() const { return m_ethernet0HasBeenSet; }
41 template <typename Ethernet0T = EthernetPayload>
42 void SetEthernet0(Ethernet0T&& value) {
43 m_ethernet0HasBeenSet = true;
44 m_ethernet0 = std::forward<Ethernet0T>(value);
45 }
46 template <typename Ethernet0T = EthernetPayload>
47 NetworkPayload& WithEthernet0(Ethernet0T&& value) {
48 SetEthernet0(std::forward<Ethernet0T>(value));
49 return *this;
50 }
52
54
57 inline const EthernetPayload& GetEthernet1() const { return m_ethernet1; }
58 inline bool Ethernet1HasBeenSet() const { return m_ethernet1HasBeenSet; }
59 template <typename Ethernet1T = EthernetPayload>
60 void SetEthernet1(Ethernet1T&& value) {
61 m_ethernet1HasBeenSet = true;
62 m_ethernet1 = std::forward<Ethernet1T>(value);
63 }
64 template <typename Ethernet1T = EthernetPayload>
65 NetworkPayload& WithEthernet1(Ethernet1T&& value) {
66 SetEthernet1(std::forward<Ethernet1T>(value));
67 return *this;
68 }
70
72
75 inline const NtpPayload& GetNtp() const { return m_ntp; }
76 inline bool NtpHasBeenSet() const { return m_ntpHasBeenSet; }
77 template <typename NtpT = NtpPayload>
78 void SetNtp(NtpT&& value) {
79 m_ntpHasBeenSet = true;
80 m_ntp = std::forward<NtpT>(value);
81 }
82 template <typename NtpT = NtpPayload>
83 NetworkPayload& WithNtp(NtpT&& value) {
84 SetNtp(std::forward<NtpT>(value));
85 return *this;
86 }
88 private:
89 EthernetPayload m_ethernet0;
90
91 EthernetPayload m_ethernet1;
92
93 NtpPayload m_ntp;
94 bool m_ethernet0HasBeenSet = false;
95 bool m_ethernet1HasBeenSet = false;
96 bool m_ntpHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Panorama
101} // namespace Aws
AWS_PANORAMA_API NetworkPayload(Aws::Utils::Json::JsonView jsonValue)
const EthernetPayload & GetEthernet0() const
NetworkPayload & WithEthernet0(Ethernet0T &&value)
NetworkPayload & WithEthernet1(Ethernet1T &&value)
void SetEthernet0(Ethernet0T &&value)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
const NtpPayload & GetNtp() const
AWS_PANORAMA_API NetworkPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkPayload & WithNtp(NtpT &&value)
AWS_PANORAMA_API NetworkPayload()=default
void SetEthernet1(Ethernet1T &&value)
const EthernetPayload & GetEthernet1() const
Aws::Utils::Json::JsonValue JsonValue