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/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/PrivateIpAddressDetails.h>
11#include <aws/guardduty/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 GuardDuty
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GUARDDUTY_API NetworkInterface();
39 AWS_GUARDDUTY_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetIpv6Addresses() const{ return m_ipv6Addresses; }
49 inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
50 inline void SetIpv6Addresses(const Aws::Vector<Aws::String>& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; }
51 inline void SetIpv6Addresses(Aws::Vector<Aws::String>&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); }
52 inline NetworkInterface& WithIpv6Addresses(const Aws::Vector<Aws::String>& value) { SetIpv6Addresses(value); return *this;}
53 inline NetworkInterface& WithIpv6Addresses(Aws::Vector<Aws::String>&& value) { SetIpv6Addresses(std::move(value)); return *this;}
54 inline NetworkInterface& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
55 inline NetworkInterface& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; }
56 inline NetworkInterface& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
58
60
63 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
64 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
65 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
66 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
67 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
68 inline NetworkInterface& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
69 inline NetworkInterface& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
70 inline NetworkInterface& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
72
74
77 inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
78 inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
79 inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
80 inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
81 inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
82 inline NetworkInterface& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
83 inline NetworkInterface& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
84 inline NetworkInterface& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
86
88
91 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
92 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
93 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
94 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
95 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
96 inline NetworkInterface& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
97 inline NetworkInterface& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
98 inline NetworkInterface& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
100
102
105 inline const Aws::Vector<PrivateIpAddressDetails>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
106 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
107 inline void SetPrivateIpAddresses(const Aws::Vector<PrivateIpAddressDetails>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
108 inline void SetPrivateIpAddresses(Aws::Vector<PrivateIpAddressDetails>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); }
111 inline NetworkInterface& AddPrivateIpAddresses(const PrivateIpAddressDetails& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
112 inline NetworkInterface& AddPrivateIpAddresses(PrivateIpAddressDetails&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; }
114
116
119 inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
120 inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
121 inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
122 inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); }
123 inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
124 inline NetworkInterface& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;}
125 inline NetworkInterface& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;}
126 inline NetworkInterface& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
128
130
133 inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
134 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
135 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
136 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
137 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
138 inline NetworkInterface& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
139 inline NetworkInterface& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
140 inline NetworkInterface& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
142
144
147 inline const Aws::Vector<SecurityGroup>& GetSecurityGroups() const{ return m_securityGroups; }
148 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
149 inline void SetSecurityGroups(const Aws::Vector<SecurityGroup>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
150 inline void SetSecurityGroups(Aws::Vector<SecurityGroup>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
152 inline NetworkInterface& WithSecurityGroups(Aws::Vector<SecurityGroup>&& value) { SetSecurityGroups(std::move(value)); return *this;}
153 inline NetworkInterface& AddSecurityGroups(const SecurityGroup& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
154 inline NetworkInterface& AddSecurityGroups(SecurityGroup&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
156
158
161 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
162 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
163 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
164 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
165 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
166 inline NetworkInterface& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
167 inline NetworkInterface& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
168 inline NetworkInterface& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
170
172
175 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
176 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
177 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
178 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
179 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
180 inline NetworkInterface& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
181 inline NetworkInterface& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
182 inline NetworkInterface& WithVpcId(const char* value) { SetVpcId(value); return *this;}
184 private:
185
186 Aws::Vector<Aws::String> m_ipv6Addresses;
187 bool m_ipv6AddressesHasBeenSet = false;
188
189 Aws::String m_networkInterfaceId;
190 bool m_networkInterfaceIdHasBeenSet = false;
191
192 Aws::String m_privateDnsName;
193 bool m_privateDnsNameHasBeenSet = false;
194
195 Aws::String m_privateIpAddress;
196 bool m_privateIpAddressHasBeenSet = false;
197
198 Aws::Vector<PrivateIpAddressDetails> m_privateIpAddresses;
199 bool m_privateIpAddressesHasBeenSet = false;
200
201 Aws::String m_publicDnsName;
202 bool m_publicDnsNameHasBeenSet = false;
203
204 Aws::String m_publicIp;
205 bool m_publicIpHasBeenSet = false;
206
207 Aws::Vector<SecurityGroup> m_securityGroups;
208 bool m_securityGroupsHasBeenSet = false;
209
210 Aws::String m_subnetId;
211 bool m_subnetIdHasBeenSet = false;
212
213 Aws::String m_vpcId;
214 bool m_vpcIdHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace GuardDuty
219} // namespace Aws
void SetSecurityGroups(Aws::Vector< SecurityGroup > &&value)
void SetPrivateDnsName(Aws::String &&value)
NetworkInterface & WithPublicDnsName(Aws::String &&value)
const Aws::String & GetPrivateDnsName() const
void SetNetworkInterfaceId(const Aws::String &value)
const Aws::String & GetPublicIp() const
void SetPrivateIpAddress(const Aws::String &value)
NetworkInterface & WithPublicIp(const Aws::String &value)
void SetPublicIp(const Aws::String &value)
void SetPublicDnsName(Aws::String &&value)
NetworkInterface & WithPublicIp(const char *value)
NetworkInterface & AddIpv6Addresses(const Aws::String &value)
const Aws::Vector< SecurityGroup > & GetSecurityGroups() const
NetworkInterface & WithPrivateDnsName(const char *value)
NetworkInterface & WithPrivateDnsName(const Aws::String &value)
NetworkInterface & WithSubnetId(const char *value)
void SetNetworkInterfaceId(Aws::String &&value)
NetworkInterface & WithPrivateDnsName(Aws::String &&value)
NetworkInterface & WithIpv6Addresses(Aws::Vector< Aws::String > &&value)
void SetPrivateIpAddresses(Aws::Vector< PrivateIpAddressDetails > &&value)
NetworkInterface & WithSubnetId(Aws::String &&value)
NetworkInterface & WithVpcId(Aws::String &&value)
NetworkInterface & WithVpcId(const Aws::String &value)
AWS_GUARDDUTY_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue)
NetworkInterface & WithSecurityGroups(const Aws::Vector< SecurityGroup > &value)
NetworkInterface & WithPrivateIpAddresses(Aws::Vector< PrivateIpAddressDetails > &&value)
void SetPrivateDnsName(const Aws::String &value)
NetworkInterface & WithPrivateIpAddress(const char *value)
void SetPrivateIpAddress(const char *value)
void SetNetworkInterfaceId(const char *value)
void SetIpv6Addresses(const Aws::Vector< Aws::String > &value)
NetworkInterface & AddIpv6Addresses(const char *value)
void SetPrivateIpAddresses(const Aws::Vector< PrivateIpAddressDetails > &value)
NetworkInterface & AddPrivateIpAddresses(const PrivateIpAddressDetails &value)
const Aws::Vector< Aws::String > & GetIpv6Addresses() const
void SetSecurityGroups(const Aws::Vector< SecurityGroup > &value)
const Aws::String & GetPrivateIpAddress() const
void SetSubnetId(const Aws::String &value)
AWS_GUARDDUTY_API NetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkInterface & WithVpcId(const char *value)
NetworkInterface & WithPublicDnsName(const Aws::String &value)
const Aws::String & GetPublicDnsName() const
NetworkInterface & WithNetworkInterfaceId(Aws::String &&value)
const Aws::String & GetSubnetId() const
NetworkInterface & WithPrivateIpAddress(const Aws::String &value)
NetworkInterface & WithPrivateIpAddresses(const Aws::Vector< PrivateIpAddressDetails > &value)
NetworkInterface & WithSecurityGroups(Aws::Vector< SecurityGroup > &&value)
NetworkInterface & WithPublicDnsName(const char *value)
NetworkInterface & AddPrivateIpAddresses(PrivateIpAddressDetails &&value)
NetworkInterface & WithIpv6Addresses(const Aws::Vector< Aws::String > &value)
void SetVpcId(const Aws::String &value)
const Aws::Vector< PrivateIpAddressDetails > & GetPrivateIpAddresses() const
NetworkInterface & WithNetworkInterfaceId(const Aws::String &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkInterface & AddSecurityGroups(SecurityGroup &&value)
const Aws::String & GetNetworkInterfaceId() const
NetworkInterface & WithPublicIp(Aws::String &&value)
NetworkInterface & AddSecurityGroups(const SecurityGroup &value)
NetworkInterface & AddIpv6Addresses(Aws::String &&value)
NetworkInterface & WithSubnetId(const Aws::String &value)
NetworkInterface & WithPrivateIpAddress(Aws::String &&value)
void SetIpv6Addresses(Aws::Vector< Aws::String > &&value)
NetworkInterface & WithNetworkInterfaceId(const char *value)
void SetPublicDnsName(const Aws::String &value)
void SetPrivateIpAddress(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