AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PhysicalNetworkInterface.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
9#include <aws/snow-device-management/model/IpAddressAssignment.h>
10#include <aws/snow-device-management/model/PhysicalConnectorType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SnowDeviceManagement {
22namespace Model {
23
31 public:
32 AWS_SNOWDEVICEMANAGEMENT_API PhysicalNetworkInterface() = default;
33 AWS_SNOWDEVICEMANAGEMENT_API PhysicalNetworkInterface(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SNOWDEVICEMANAGEMENT_API PhysicalNetworkInterface& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDefaultGateway() const { return m_defaultGateway; }
42 inline bool DefaultGatewayHasBeenSet() const { return m_defaultGatewayHasBeenSet; }
43 template <typename DefaultGatewayT = Aws::String>
44 void SetDefaultGateway(DefaultGatewayT&& value) {
45 m_defaultGatewayHasBeenSet = true;
46 m_defaultGateway = std::forward<DefaultGatewayT>(value);
47 }
48 template <typename DefaultGatewayT = Aws::String>
49 PhysicalNetworkInterface& WithDefaultGateway(DefaultGatewayT&& value) {
50 SetDefaultGateway(std::forward<DefaultGatewayT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
60 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
61 template <typename IpAddressT = Aws::String>
62 void SetIpAddress(IpAddressT&& value) {
63 m_ipAddressHasBeenSet = true;
64 m_ipAddress = std::forward<IpAddressT>(value);
65 }
66 template <typename IpAddressT = Aws::String>
68 SetIpAddress(std::forward<IpAddressT>(value));
69 return *this;
70 }
72
74
77 inline IpAddressAssignment GetIpAddressAssignment() const { return m_ipAddressAssignment; }
78 inline bool IpAddressAssignmentHasBeenSet() const { return m_ipAddressAssignmentHasBeenSet; }
80 m_ipAddressAssignmentHasBeenSet = true;
81 m_ipAddressAssignment = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::String& GetMacAddress() const { return m_macAddress; }
94 inline bool MacAddressHasBeenSet() const { return m_macAddressHasBeenSet; }
95 template <typename MacAddressT = Aws::String>
96 void SetMacAddress(MacAddressT&& value) {
97 m_macAddressHasBeenSet = true;
98 m_macAddress = std::forward<MacAddressT>(value);
99 }
100 template <typename MacAddressT = Aws::String>
102 SetMacAddress(std::forward<MacAddressT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetNetmask() const { return m_netmask; }
112 inline bool NetmaskHasBeenSet() const { return m_netmaskHasBeenSet; }
113 template <typename NetmaskT = Aws::String>
114 void SetNetmask(NetmaskT&& value) {
115 m_netmaskHasBeenSet = true;
116 m_netmask = std::forward<NetmaskT>(value);
117 }
118 template <typename NetmaskT = Aws::String>
120 SetNetmask(std::forward<NetmaskT>(value));
121 return *this;
122 }
124
126
129 inline PhysicalConnectorType GetPhysicalConnectorType() const { return m_physicalConnectorType; }
130 inline bool PhysicalConnectorTypeHasBeenSet() const { return m_physicalConnectorTypeHasBeenSet; }
132 m_physicalConnectorTypeHasBeenSet = true;
133 m_physicalConnectorType = value;
134 }
137 return *this;
138 }
140
142
145 inline const Aws::String& GetPhysicalNetworkInterfaceId() const { return m_physicalNetworkInterfaceId; }
146 inline bool PhysicalNetworkInterfaceIdHasBeenSet() const { return m_physicalNetworkInterfaceIdHasBeenSet; }
147 template <typename PhysicalNetworkInterfaceIdT = Aws::String>
148 void SetPhysicalNetworkInterfaceId(PhysicalNetworkInterfaceIdT&& value) {
149 m_physicalNetworkInterfaceIdHasBeenSet = true;
150 m_physicalNetworkInterfaceId = std::forward<PhysicalNetworkInterfaceIdT>(value);
151 }
152 template <typename PhysicalNetworkInterfaceIdT = Aws::String>
153 PhysicalNetworkInterface& WithPhysicalNetworkInterfaceId(PhysicalNetworkInterfaceIdT&& value) {
154 SetPhysicalNetworkInterfaceId(std::forward<PhysicalNetworkInterfaceIdT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_defaultGateway;
160
161 Aws::String m_ipAddress;
162
164
165 Aws::String m_macAddress;
166
167 Aws::String m_netmask;
168
170
171 Aws::String m_physicalNetworkInterfaceId;
172 bool m_defaultGatewayHasBeenSet = false;
173 bool m_ipAddressHasBeenSet = false;
174 bool m_ipAddressAssignmentHasBeenSet = false;
175 bool m_macAddressHasBeenSet = false;
176 bool m_netmaskHasBeenSet = false;
177 bool m_physicalConnectorTypeHasBeenSet = false;
178 bool m_physicalNetworkInterfaceIdHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace SnowDeviceManagement
183} // namespace Aws
PhysicalNetworkInterface & WithPhysicalConnectorType(PhysicalConnectorType value)
AWS_SNOWDEVICEMANAGEMENT_API PhysicalNetworkInterface(Aws::Utils::Json::JsonView jsonValue)
void SetPhysicalNetworkInterfaceId(PhysicalNetworkInterfaceIdT &&value)
AWS_SNOWDEVICEMANAGEMENT_API PhysicalNetworkInterface()=default
PhysicalNetworkInterface & WithDefaultGateway(DefaultGatewayT &&value)
PhysicalNetworkInterface & WithMacAddress(MacAddressT &&value)
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
PhysicalNetworkInterface & WithIpAddress(IpAddressT &&value)
PhysicalNetworkInterface & WithIpAddressAssignment(IpAddressAssignment value)
AWS_SNOWDEVICEMANAGEMENT_API PhysicalNetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
PhysicalNetworkInterface & WithPhysicalNetworkInterfaceId(PhysicalNetworkInterfaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue