AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkInterface.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace mgn {
21namespace Model {
22
29 public:
30 AWS_MGN_API NetworkInterface() = default;
34
36
39 inline const Aws::String& GetMacAddress() const { return m_macAddress; }
40 inline bool MacAddressHasBeenSet() const { return m_macAddressHasBeenSet; }
41 template <typename MacAddressT = Aws::String>
42 void SetMacAddress(MacAddressT&& value) {
43 m_macAddressHasBeenSet = true;
44 m_macAddress = std::forward<MacAddressT>(value);
45 }
46 template <typename MacAddressT = Aws::String>
47 NetworkInterface& WithMacAddress(MacAddressT&& value) {
48 SetMacAddress(std::forward<MacAddressT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetIps() const { return m_ips; }
58 inline bool IpsHasBeenSet() const { return m_ipsHasBeenSet; }
59 template <typename IpsT = Aws::Vector<Aws::String>>
60 void SetIps(IpsT&& value) {
61 m_ipsHasBeenSet = true;
62 m_ips = std::forward<IpsT>(value);
63 }
64 template <typename IpsT = Aws::Vector<Aws::String>>
65 NetworkInterface& WithIps(IpsT&& value) {
66 SetIps(std::forward<IpsT>(value));
67 return *this;
68 }
69 template <typename IpsT = Aws::String>
70 NetworkInterface& AddIps(IpsT&& value) {
71 m_ipsHasBeenSet = true;
72 m_ips.emplace_back(std::forward<IpsT>(value));
73 return *this;
74 }
76
78
81 inline bool GetIsPrimary() const { return m_isPrimary; }
82 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
83 inline void SetIsPrimary(bool value) {
84 m_isPrimaryHasBeenSet = true;
85 m_isPrimary = value;
86 }
87 inline NetworkInterface& WithIsPrimary(bool value) {
88 SetIsPrimary(value);
89 return *this;
90 }
92 private:
93 Aws::String m_macAddress;
94
96
97 bool m_isPrimary{false};
98 bool m_macAddressHasBeenSet = false;
99 bool m_ipsHasBeenSet = false;
100 bool m_isPrimaryHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace mgn
105} // 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