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/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector/model/PrivateIp.h>
11#include <aws/inspector/model/SecurityGroup.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_INSPECTOR_API NetworkInterface();
40 AWS_INSPECTOR_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue);
42 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
50 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
51 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
52 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
53 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
54 inline NetworkInterface& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
55 inline NetworkInterface& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
56 inline NetworkInterface& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
58
60
63 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
64 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
65 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
66 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
67 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
68 inline NetworkInterface& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
69 inline NetworkInterface& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
70 inline NetworkInterface& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
72
74
77 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
78 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
79 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
80 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
81 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
82 inline NetworkInterface& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
83 inline NetworkInterface& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
84 inline NetworkInterface& WithVpcId(const char* value) { SetVpcId(value); return *this;}
86
88
91 inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
92 inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
93 inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
94 inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
95 inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
96 inline NetworkInterface& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
97 inline NetworkInterface& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
98 inline NetworkInterface& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
100
102
105 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
106 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
107 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
108 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
109 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
110 inline NetworkInterface& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
111 inline NetworkInterface& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
112 inline NetworkInterface& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
114
116
120 inline const Aws::Vector<PrivateIp>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
121 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
122 inline void SetPrivateIpAddresses(const Aws::Vector<PrivateIp>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
123 inline void SetPrivateIpAddresses(Aws::Vector<PrivateIp>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); }
125 inline NetworkInterface& WithPrivateIpAddresses(Aws::Vector<PrivateIp>&& value) { SetPrivateIpAddresses(std::move(value)); return *this;}
126 inline NetworkInterface& AddPrivateIpAddresses(const PrivateIp& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
127 inline NetworkInterface& AddPrivateIpAddresses(PrivateIp&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; }
129
131
134 inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
135 inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
136 inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
137 inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); }
138 inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
139 inline NetworkInterface& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;}
140 inline NetworkInterface& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;}
141 inline NetworkInterface& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
143
145
148 inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
149 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
150 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
151 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
152 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
153 inline NetworkInterface& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
154 inline NetworkInterface& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
155 inline NetworkInterface& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
157
159
162 inline const Aws::Vector<Aws::String>& GetIpv6Addresses() const{ return m_ipv6Addresses; }
163 inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
164 inline void SetIpv6Addresses(const Aws::Vector<Aws::String>& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; }
165 inline void SetIpv6Addresses(Aws::Vector<Aws::String>&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); }
167 inline NetworkInterface& WithIpv6Addresses(Aws::Vector<Aws::String>&& value) { SetIpv6Addresses(std::move(value)); return *this;}
168 inline NetworkInterface& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
169 inline NetworkInterface& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; }
170 inline NetworkInterface& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
172
174
178 inline const Aws::Vector<SecurityGroup>& GetSecurityGroups() const{ return m_securityGroups; }
179 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
180 inline void SetSecurityGroups(const Aws::Vector<SecurityGroup>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
181 inline void SetSecurityGroups(Aws::Vector<SecurityGroup>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
183 inline NetworkInterface& WithSecurityGroups(Aws::Vector<SecurityGroup>&& value) { SetSecurityGroups(std::move(value)); return *this;}
184 inline NetworkInterface& AddSecurityGroups(const SecurityGroup& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
185 inline NetworkInterface& AddSecurityGroups(SecurityGroup&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
187 private:
188
189 Aws::String m_networkInterfaceId;
190 bool m_networkInterfaceIdHasBeenSet = false;
191
192 Aws::String m_subnetId;
193 bool m_subnetIdHasBeenSet = false;
194
195 Aws::String m_vpcId;
196 bool m_vpcIdHasBeenSet = false;
197
198 Aws::String m_privateDnsName;
199 bool m_privateDnsNameHasBeenSet = false;
200
201 Aws::String m_privateIpAddress;
202 bool m_privateIpAddressHasBeenSet = false;
203
204 Aws::Vector<PrivateIp> m_privateIpAddresses;
205 bool m_privateIpAddressesHasBeenSet = false;
206
207 Aws::String m_publicDnsName;
208 bool m_publicDnsNameHasBeenSet = false;
209
210 Aws::String m_publicIp;
211 bool m_publicIpHasBeenSet = false;
212
213 Aws::Vector<Aws::String> m_ipv6Addresses;
214 bool m_ipv6AddressesHasBeenSet = false;
215
216 Aws::Vector<SecurityGroup> m_securityGroups;
217 bool m_securityGroupsHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace Inspector
222} // namespace Aws
void SetSecurityGroups(Aws::Vector< SecurityGroup > &&value)
NetworkInterface & WithVpcId(const char *value)
NetworkInterface & WithPrivateDnsName(Aws::String &&value)
NetworkInterface & WithSubnetId(const Aws::String &value)
NetworkInterface & WithPrivateIpAddresses(Aws::Vector< PrivateIp > &&value)
void SetPublicDnsName(Aws::String &&value)
void SetPrivateIpAddresses(const Aws::Vector< PrivateIp > &value)
NetworkInterface & WithPrivateIpAddresses(const Aws::Vector< PrivateIp > &value)
const Aws::Vector< SecurityGroup > & GetSecurityGroups() const
NetworkInterface & WithSubnetId(Aws::String &&value)
NetworkInterface & WithPrivateDnsName(const Aws::String &value)
NetworkInterface & WithSecurityGroups(Aws::Vector< SecurityGroup > &&value)
void SetPrivateDnsName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetIpv6Addresses() const
NetworkInterface & WithPrivateIpAddress(const char *value)
NetworkInterface & AddIpv6Addresses(Aws::String &&value)
AWS_INSPECTOR_API NetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue)
void SetPrivateDnsName(const Aws::String &value)
NetworkInterface & WithNetworkInterfaceId(const Aws::String &value)
const Aws::String & GetSubnetId() const
NetworkInterface & WithNetworkInterfaceId(Aws::String &&value)
NetworkInterface & AddSecurityGroups(const SecurityGroup &value)
NetworkInterface & WithPublicDnsName(const char *value)
const Aws::String & GetPrivateIpAddress() const
void SetNetworkInterfaceId(const Aws::String &value)
NetworkInterface & WithPublicIp(const Aws::String &value)
void SetSecurityGroups(const Aws::Vector< SecurityGroup > &value)
void SetIpv6Addresses(const Aws::Vector< Aws::String > &value)
NetworkInterface & WithPublicIp(const char *value)
NetworkInterface & AddPrivateIpAddresses(const PrivateIp &value)
NetworkInterface & WithPrivateIpAddress(Aws::String &&value)
const Aws::Vector< PrivateIp > & GetPrivateIpAddresses() const
NetworkInterface & WithSubnetId(const char *value)
NetworkInterface & WithVpcId(const Aws::String &value)
NetworkInterface & AddIpv6Addresses(const Aws::String &value)
const Aws::String & GetPublicIp() const
void SetPublicIp(const Aws::String &value)
const Aws::String & GetPublicDnsName() const
void SetIpv6Addresses(Aws::Vector< Aws::String > &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkInterface & AddSecurityGroups(SecurityGroup &&value)
NetworkInterface & WithNetworkInterfaceId(const char *value)
NetworkInterface & WithPrivateIpAddress(const Aws::String &value)
void SetVpcId(const Aws::String &value)
const Aws::String & GetPrivateDnsName() const
void SetPrivateIpAddresses(Aws::Vector< PrivateIp > &&value)
NetworkInterface & WithVpcId(Aws::String &&value)
const Aws::String & GetVpcId() const
NetworkInterface & WithIpv6Addresses(Aws::Vector< Aws::String > &&value)
NetworkInterface & WithSecurityGroups(const Aws::Vector< SecurityGroup > &value)
NetworkInterface & AddIpv6Addresses(const char *value)
void SetNetworkInterfaceId(const char *value)
NetworkInterface & AddPrivateIpAddresses(PrivateIp &&value)
const Aws::String & GetNetworkInterfaceId() const
NetworkInterface & WithIpv6Addresses(const Aws::Vector< Aws::String > &value)
NetworkInterface & WithPublicIp(Aws::String &&value)
NetworkInterface & WithPublicDnsName(const Aws::String &value)
void SetSubnetId(const Aws::String &value)
NetworkInterface & WithPrivateDnsName(const char *value)
void SetPublicDnsName(const Aws::String &value)
void SetPrivateIpAddress(Aws::String &&value)
void SetPrivateIpAddress(const Aws::String &value)
void SetNetworkInterfaceId(Aws::String &&value)
NetworkInterface & WithPublicDnsName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue