AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Panorama
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_PANORAMA_API NetworkPayload() = default;
36 AWS_PANORAMA_API NetworkPayload(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const EthernetPayload& GetEthernet0() const { return m_ethernet0; }
46 inline bool Ethernet0HasBeenSet() const { return m_ethernet0HasBeenSet; }
47 template<typename Ethernet0T = EthernetPayload>
48 void SetEthernet0(Ethernet0T&& value) { m_ethernet0HasBeenSet = true; m_ethernet0 = std::forward<Ethernet0T>(value); }
49 template<typename Ethernet0T = EthernetPayload>
50 NetworkPayload& WithEthernet0(Ethernet0T&& value) { SetEthernet0(std::forward<Ethernet0T>(value)); return *this;}
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) { m_ethernet1HasBeenSet = true; m_ethernet1 = std::forward<Ethernet1T>(value); }
61 template<typename Ethernet1T = EthernetPayload>
62 NetworkPayload& WithEthernet1(Ethernet1T&& value) { SetEthernet1(std::forward<Ethernet1T>(value)); return *this;}
64
66
69 inline const NtpPayload& GetNtp() const { return m_ntp; }
70 inline bool NtpHasBeenSet() const { return m_ntpHasBeenSet; }
71 template<typename NtpT = NtpPayload>
72 void SetNtp(NtpT&& value) { m_ntpHasBeenSet = true; m_ntp = std::forward<NtpT>(value); }
73 template<typename NtpT = NtpPayload>
74 NetworkPayload& WithNtp(NtpT&& value) { SetNtp(std::forward<NtpT>(value)); return *this;}
76 private:
77
78 EthernetPayload m_ethernet0;
79 bool m_ethernet0HasBeenSet = false;
80
81 EthernetPayload m_ethernet1;
82 bool m_ethernet1HasBeenSet = false;
83
84 NtpPayload m_ntp;
85 bool m_ntpHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Panorama
90} // 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