AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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/drs/Drs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace drs {
21namespace Model {
22
29 public:
30 AWS_DRS_API NetworkInterface() = default;
34
36
39 inline const Aws::Vector<Aws::String>& GetIps() const { return m_ips; }
40 inline bool IpsHasBeenSet() const { return m_ipsHasBeenSet; }
41 template <typename IpsT = Aws::Vector<Aws::String>>
42 void SetIps(IpsT&& value) {
43 m_ipsHasBeenSet = true;
44 m_ips = std::forward<IpsT>(value);
45 }
46 template <typename IpsT = Aws::Vector<Aws::String>>
47 NetworkInterface& WithIps(IpsT&& value) {
48 SetIps(std::forward<IpsT>(value));
49 return *this;
50 }
51 template <typename IpsT = Aws::String>
52 NetworkInterface& AddIps(IpsT&& value) {
53 m_ipsHasBeenSet = true;
54 m_ips.emplace_back(std::forward<IpsT>(value));
55 return *this;
56 }
58
60
63 inline bool GetIsPrimary() const { return m_isPrimary; }
64 inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; }
65 inline void SetIsPrimary(bool value) {
66 m_isPrimaryHasBeenSet = true;
67 m_isPrimary = value;
68 }
69 inline NetworkInterface& WithIsPrimary(bool value) {
70 SetIsPrimary(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetMacAddress() const { return m_macAddress; }
80 inline bool MacAddressHasBeenSet() const { return m_macAddressHasBeenSet; }
81 template <typename MacAddressT = Aws::String>
82 void SetMacAddress(MacAddressT&& value) {
83 m_macAddressHasBeenSet = true;
84 m_macAddress = std::forward<MacAddressT>(value);
85 }
86 template <typename MacAddressT = Aws::String>
87 NetworkInterface& WithMacAddress(MacAddressT&& value) {
88 SetMacAddress(std::forward<MacAddressT>(value));
89 return *this;
90 }
92 private:
94
95 bool m_isPrimary{false};
96
97 Aws::String m_macAddress;
98 bool m_ipsHasBeenSet = false;
99 bool m_isPrimaryHasBeenSet = false;
100 bool m_macAddressHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace drs
105} // namespace Aws
NetworkInterface & AddIps(IpsT &&value)
void SetMacAddress(MacAddressT &&value)
AWS_DRS_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue)
NetworkInterface & WithMacAddress(MacAddressT &&value)
AWS_DRS_API NetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIps() const
NetworkInterface & WithIsPrimary(bool value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkInterface & WithIps(IpsT &&value)
const Aws::String & GetMacAddress() const
AWS_DRS_API NetworkInterface()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue