1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/panorama/Panorama_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/panorama/model/NetworkConnectionStatus.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18   class JsonValue;
19   class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Panorama
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p>A device's Ethernet status.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/panorama-2019-07-24/EthernetStatus">AWS
30    * API Reference</a></p>
31    */
32   class AWS_PANORAMA_API EthernetStatus
33   {
34   public:
35     EthernetStatus();
36     EthernetStatus(Aws::Utils::Json::JsonView jsonValue);
37     EthernetStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The device's IP address.</p>
43      */
GetIpAddress()44     inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
45 
46     /**
47      * <p>The device's IP address.</p>
48      */
IpAddressHasBeenSet()49     inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
50 
51     /**
52      * <p>The device's IP address.</p>
53      */
SetIpAddress(const Aws::String & value)54     inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
55 
56     /**
57      * <p>The device's IP address.</p>
58      */
SetIpAddress(Aws::String && value)59     inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
60 
61     /**
62      * <p>The device's IP address.</p>
63      */
SetIpAddress(const char * value)64     inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
65 
66     /**
67      * <p>The device's IP address.</p>
68      */
WithIpAddress(const Aws::String & value)69     inline EthernetStatus& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
70 
71     /**
72      * <p>The device's IP address.</p>
73      */
WithIpAddress(Aws::String && value)74     inline EthernetStatus& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
75 
76     /**
77      * <p>The device's IP address.</p>
78      */
WithIpAddress(const char * value)79     inline EthernetStatus& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
80 
81 
82     /**
83      * <p>The device's connection status.</p>
84      */
GetConnectionStatus()85     inline const NetworkConnectionStatus& GetConnectionStatus() const{ return m_connectionStatus; }
86 
87     /**
88      * <p>The device's connection status.</p>
89      */
ConnectionStatusHasBeenSet()90     inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
91 
92     /**
93      * <p>The device's connection status.</p>
94      */
SetConnectionStatus(const NetworkConnectionStatus & value)95     inline void SetConnectionStatus(const NetworkConnectionStatus& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = value; }
96 
97     /**
98      * <p>The device's connection status.</p>
99      */
SetConnectionStatus(NetworkConnectionStatus && value)100     inline void SetConnectionStatus(NetworkConnectionStatus&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::move(value); }
101 
102     /**
103      * <p>The device's connection status.</p>
104      */
WithConnectionStatus(const NetworkConnectionStatus & value)105     inline EthernetStatus& WithConnectionStatus(const NetworkConnectionStatus& value) { SetConnectionStatus(value); return *this;}
106 
107     /**
108      * <p>The device's connection status.</p>
109      */
WithConnectionStatus(NetworkConnectionStatus && value)110     inline EthernetStatus& WithConnectionStatus(NetworkConnectionStatus&& value) { SetConnectionStatus(std::move(value)); return *this;}
111 
112 
113     /**
114      * <p>The device's physical address.</p>
115      */
GetHwAddress()116     inline const Aws::String& GetHwAddress() const{ return m_hwAddress; }
117 
118     /**
119      * <p>The device's physical address.</p>
120      */
HwAddressHasBeenSet()121     inline bool HwAddressHasBeenSet() const { return m_hwAddressHasBeenSet; }
122 
123     /**
124      * <p>The device's physical address.</p>
125      */
SetHwAddress(const Aws::String & value)126     inline void SetHwAddress(const Aws::String& value) { m_hwAddressHasBeenSet = true; m_hwAddress = value; }
127 
128     /**
129      * <p>The device's physical address.</p>
130      */
SetHwAddress(Aws::String && value)131     inline void SetHwAddress(Aws::String&& value) { m_hwAddressHasBeenSet = true; m_hwAddress = std::move(value); }
132 
133     /**
134      * <p>The device's physical address.</p>
135      */
SetHwAddress(const char * value)136     inline void SetHwAddress(const char* value) { m_hwAddressHasBeenSet = true; m_hwAddress.assign(value); }
137 
138     /**
139      * <p>The device's physical address.</p>
140      */
WithHwAddress(const Aws::String & value)141     inline EthernetStatus& WithHwAddress(const Aws::String& value) { SetHwAddress(value); return *this;}
142 
143     /**
144      * <p>The device's physical address.</p>
145      */
WithHwAddress(Aws::String && value)146     inline EthernetStatus& WithHwAddress(Aws::String&& value) { SetHwAddress(std::move(value)); return *this;}
147 
148     /**
149      * <p>The device's physical address.</p>
150      */
WithHwAddress(const char * value)151     inline EthernetStatus& WithHwAddress(const char* value) { SetHwAddress(value); return *this;}
152 
153   private:
154 
155     Aws::String m_ipAddress;
156     bool m_ipAddressHasBeenSet;
157 
158     NetworkConnectionStatus m_connectionStatus;
159     bool m_connectionStatusHasBeenSet;
160 
161     Aws::String m_hwAddress;
162     bool m_hwAddressHasBeenSet;
163   };
164 
165 } // namespace Model
166 } // namespace Panorama
167 } // namespace Aws
168