AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::Vector<Aws::String>& GetIps() const{ return m_ips; }
46 inline bool IpsHasBeenSet() const { return m_ipsHasBeenSet; }
47 inline void SetIps(const Aws::Vector<Aws::String>& value) { m_ipsHasBeenSet = true; m_ips = value; }
48 inline void SetIps(Aws::Vector<Aws::String>&& value) { m_ipsHasBeenSet = true; m_ips = std::move(value); }
49 inline NetworkInterface& WithIps(const Aws::Vector<Aws::String>& value) { SetIps(value); return *this;}
50 inline NetworkInterface& WithIps(Aws::Vector<Aws::String>&& value) { SetIps(std::move(value)); return *this;}
51 inline NetworkInterface& AddIps(const Aws::String& value) { m_ipsHasBeenSet = true; m_ips.push_back(value); return *this; }
52 inline NetworkInterface& AddIps(Aws::String&& value) { m_ipsHasBeenSet = true; m_ips.push_back(std::move(value)); return *this; }
53 inline NetworkInterface& AddIps(const char* value) { m_ipsHasBeenSet = true; m_ips.push_back(value); return *this; }
55
57
60 inline bool GetIsPrimary() const{ return m_isPrimary; }
61 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
62 inline void SetIsPrimary(bool value) { m_isPrimaryHasBeenSet = true; m_isPrimary = value; }
63 inline NetworkInterface& WithIsPrimary(bool value) { SetIsPrimary(value); return *this;}
65
67
70 inline const Aws::String& GetMacAddress() const{ return m_macAddress; }
71 inline bool MacAddressHasBeenSet() const { return m_macAddressHasBeenSet; }
72 inline void SetMacAddress(const Aws::String& value) { m_macAddressHasBeenSet = true; m_macAddress = value; }
73 inline void SetMacAddress(Aws::String&& value) { m_macAddressHasBeenSet = true; m_macAddress = std::move(value); }
74 inline void SetMacAddress(const char* value) { m_macAddressHasBeenSet = true; m_macAddress.assign(value); }
75 inline NetworkInterface& WithMacAddress(const Aws::String& value) { SetMacAddress(value); return *this;}
76 inline NetworkInterface& WithMacAddress(Aws::String&& value) { SetMacAddress(std::move(value)); return *this;}
77 inline NetworkInterface& WithMacAddress(const char* value) { SetMacAddress(value); return *this;}
79 private:
80
82 bool m_ipsHasBeenSet = false;
83
84 bool m_isPrimary;
85 bool m_isPrimaryHasBeenSet = false;
86
87 Aws::String m_macAddress;
88 bool m_macAddressHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace mgn
93} // namespace Aws
const Aws::Vector< Aws::String > & GetIps() const
AWS_MGN_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue)
NetworkInterface & WithMacAddress(Aws::String &&value)
NetworkInterface & WithIps(Aws::Vector< Aws::String > &&value)
NetworkInterface & AddIps(Aws::String &&value)
NetworkInterface & AddIps(const Aws::String &value)
void SetIps(const Aws::Vector< Aws::String > &value)
void SetIps(Aws::Vector< Aws::String > &&value)
void SetMacAddress(const char *value)
NetworkInterface & WithIps(const Aws::Vector< Aws::String > &value)
AWS_MGN_API NetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMacAddress(Aws::String &&value)
NetworkInterface & AddIps(const char *value)
NetworkInterface & WithMacAddress(const Aws::String &value)
const Aws::String & GetMacAddress() const
void SetMacAddress(const Aws::String &value)
NetworkInterface & WithIsPrimary(bool value)
NetworkInterface & WithMacAddress(const char *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