AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkInterface.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 mgn
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MGN_API NetworkInterface() = default;
39
40
42
45 inline const Aws::Vector<Aws::String>& GetIps() const { return m_ips; }
46 inline bool IpsHasBeenSet() const { return m_ipsHasBeenSet; }
47 template<typename IpsT = Aws::Vector<Aws::String>>
48 void SetIps(IpsT&& value) { m_ipsHasBeenSet = true; m_ips = std::forward<IpsT>(value); }
49 template<typename IpsT = Aws::Vector<Aws::String>>
50 NetworkInterface& WithIps(IpsT&& value) { SetIps(std::forward<IpsT>(value)); return *this;}
51 template<typename IpsT = Aws::String>
52 NetworkInterface& AddIps(IpsT&& value) { m_ipsHasBeenSet = true; m_ips.emplace_back(std::forward<IpsT>(value)); return *this; }
54
56
59 inline bool GetIsPrimary() const { return m_isPrimary; }
60 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
61 inline void SetIsPrimary(bool value) { m_isPrimaryHasBeenSet = true; m_isPrimary = value; }
62 inline NetworkInterface& WithIsPrimary(bool value) { SetIsPrimary(value); return *this;}
64
66
69 inline const Aws::String& GetMacAddress() const { return m_macAddress; }
70 inline bool MacAddressHasBeenSet() const { return m_macAddressHasBeenSet; }
71 template<typename MacAddressT = Aws::String>
72 void SetMacAddress(MacAddressT&& value) { m_macAddressHasBeenSet = true; m_macAddress = std::forward<MacAddressT>(value); }
73 template<typename MacAddressT = Aws::String>
74 NetworkInterface& WithMacAddress(MacAddressT&& value) { SetMacAddress(std::forward<MacAddressT>(value)); return *this;}
76 private:
77
79 bool m_ipsHasBeenSet = false;
80
81 bool m_isPrimary{false};
82 bool m_isPrimaryHasBeenSet = false;
83
84 Aws::String m_macAddress;
85 bool m_macAddressHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace mgn
90} // namespace Aws
const Aws::Vector< Aws::String > & GetIps() const
AWS_MGN_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue)
NetworkInterface & WithIps(IpsT &&value)
NetworkInterface & WithMacAddress(MacAddressT &&value)
void SetMacAddress(MacAddressT &&value)
AWS_MGN_API NetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMacAddress() const
NetworkInterface & AddIps(IpsT &&value)
AWS_MGN_API NetworkInterface()=default
NetworkInterface & WithIsPrimary(bool value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue