AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkInfo.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MigrationHubStrategyRecommendations
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API NetworkInfo();
36 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API NetworkInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API NetworkInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetInterfaceName() const{ return m_interfaceName; }
47 inline bool InterfaceNameHasBeenSet() const { return m_interfaceNameHasBeenSet; }
48 inline void SetInterfaceName(const Aws::String& value) { m_interfaceNameHasBeenSet = true; m_interfaceName = value; }
49 inline void SetInterfaceName(Aws::String&& value) { m_interfaceNameHasBeenSet = true; m_interfaceName = std::move(value); }
50 inline void SetInterfaceName(const char* value) { m_interfaceNameHasBeenSet = true; m_interfaceName.assign(value); }
51 inline NetworkInfo& WithInterfaceName(const Aws::String& value) { SetInterfaceName(value); return *this;}
52 inline NetworkInfo& WithInterfaceName(Aws::String&& value) { SetInterfaceName(std::move(value)); return *this;}
53 inline NetworkInfo& WithInterfaceName(const char* value) { SetInterfaceName(value); return *this;}
55
57
61 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
62 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
63 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
64 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
65 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
66 inline NetworkInfo& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
67 inline NetworkInfo& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
68 inline NetworkInfo& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
70
72
76 inline const Aws::String& GetMacAddress() const{ return m_macAddress; }
77 inline bool MacAddressHasBeenSet() const { return m_macAddressHasBeenSet; }
78 inline void SetMacAddress(const Aws::String& value) { m_macAddressHasBeenSet = true; m_macAddress = value; }
79 inline void SetMacAddress(Aws::String&& value) { m_macAddressHasBeenSet = true; m_macAddress = std::move(value); }
80 inline void SetMacAddress(const char* value) { m_macAddressHasBeenSet = true; m_macAddress.assign(value); }
81 inline NetworkInfo& WithMacAddress(const Aws::String& value) { SetMacAddress(value); return *this;}
82 inline NetworkInfo& WithMacAddress(Aws::String&& value) { SetMacAddress(std::move(value)); return *this;}
83 inline NetworkInfo& WithMacAddress(const char* value) { SetMacAddress(value); return *this;}
85
87
91 inline const Aws::String& GetNetMask() const{ return m_netMask; }
92 inline bool NetMaskHasBeenSet() const { return m_netMaskHasBeenSet; }
93 inline void SetNetMask(const Aws::String& value) { m_netMaskHasBeenSet = true; m_netMask = value; }
94 inline void SetNetMask(Aws::String&& value) { m_netMaskHasBeenSet = true; m_netMask = std::move(value); }
95 inline void SetNetMask(const char* value) { m_netMaskHasBeenSet = true; m_netMask.assign(value); }
96 inline NetworkInfo& WithNetMask(const Aws::String& value) { SetNetMask(value); return *this;}
97 inline NetworkInfo& WithNetMask(Aws::String&& value) { SetNetMask(std::move(value)); return *this;}
98 inline NetworkInfo& WithNetMask(const char* value) { SetNetMask(value); return *this;}
100 private:
101
102 Aws::String m_interfaceName;
103 bool m_interfaceNameHasBeenSet = false;
104
105 Aws::String m_ipAddress;
106 bool m_ipAddressHasBeenSet = false;
107
108 Aws::String m_macAddress;
109 bool m_macAddressHasBeenSet = false;
110
111 Aws::String m_netMask;
112 bool m_netMaskHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace MigrationHubStrategyRecommendations
117} // namespace Aws
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API NetworkInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API NetworkInfo()
NetworkInfo & WithMacAddress(const Aws::String &value)
Definition NetworkInfo.h:81
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API NetworkInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkInfo & WithIpAddress(const Aws::String &value)
Definition NetworkInfo.h:66
NetworkInfo & WithNetMask(const Aws::String &value)
Definition NetworkInfo.h:96
NetworkInfo & WithInterfaceName(const Aws::String &value)
Definition NetworkInfo.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue