AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEc2NetworkInterfaceDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/AwsEc2NetworkInterfaceAttachment.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityhub/model/AwsEc2NetworkInterfaceSecurityGroup.h>
12#include <aws/securityhub/model/AwsEc2NetworkInterfaceIpV6AddressDetail.h>
13#include <aws/securityhub/model/AwsEc2NetworkInterfacePrivateIpAddressDetail.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_SECURITYHUB_API AwsEc2NetworkInterfaceDetails();
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const AwsEc2NetworkInterfaceAttachment& GetAttachment() const{ return m_attachment; }
50 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
51 inline void SetAttachment(const AwsEc2NetworkInterfaceAttachment& value) { m_attachmentHasBeenSet = true; m_attachment = value; }
52 inline void SetAttachment(AwsEc2NetworkInterfaceAttachment&& value) { m_attachmentHasBeenSet = true; m_attachment = std::move(value); }
56
58
61 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
62 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
63 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
64 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
65 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
68 inline AwsEc2NetworkInterfaceDetails& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
70
72
75 inline const Aws::Vector<AwsEc2NetworkInterfaceSecurityGroup>& GetSecurityGroups() const{ return m_securityGroups; }
76 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
77 inline void SetSecurityGroups(const Aws::Vector<AwsEc2NetworkInterfaceSecurityGroup>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
78 inline void SetSecurityGroups(Aws::Vector<AwsEc2NetworkInterfaceSecurityGroup>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
81 inline AwsEc2NetworkInterfaceDetails& AddSecurityGroups(const AwsEc2NetworkInterfaceSecurityGroup& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
82 inline AwsEc2NetworkInterfaceDetails& AddSecurityGroups(AwsEc2NetworkInterfaceSecurityGroup&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
84
86
89 inline bool GetSourceDestCheck() const{ return m_sourceDestCheck; }
90 inline bool SourceDestCheckHasBeenSet() const { return m_sourceDestCheckHasBeenSet; }
91 inline void SetSourceDestCheck(bool value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = value; }
92 inline AwsEc2NetworkInterfaceDetails& WithSourceDestCheck(bool value) { SetSourceDestCheck(value); return *this;}
94
96
99 inline const Aws::Vector<AwsEc2NetworkInterfaceIpV6AddressDetail>& GetIpV6Addresses() const{ return m_ipV6Addresses; }
100 inline bool IpV6AddressesHasBeenSet() const { return m_ipV6AddressesHasBeenSet; }
101 inline void SetIpV6Addresses(const Aws::Vector<AwsEc2NetworkInterfaceIpV6AddressDetail>& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses = value; }
102 inline void SetIpV6Addresses(Aws::Vector<AwsEc2NetworkInterfaceIpV6AddressDetail>&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses = std::move(value); }
105 inline AwsEc2NetworkInterfaceDetails& AddIpV6Addresses(const AwsEc2NetworkInterfaceIpV6AddressDetail& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(value); return *this; }
106 inline AwsEc2NetworkInterfaceDetails& AddIpV6Addresses(AwsEc2NetworkInterfaceIpV6AddressDetail&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(std::move(value)); return *this; }
108
110
113 inline const Aws::Vector<AwsEc2NetworkInterfacePrivateIpAddressDetail>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
114 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
115 inline void SetPrivateIpAddresses(const Aws::Vector<AwsEc2NetworkInterfacePrivateIpAddressDetail>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
116 inline void SetPrivateIpAddresses(Aws::Vector<AwsEc2NetworkInterfacePrivateIpAddressDetail>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); }
119 inline AwsEc2NetworkInterfaceDetails& AddPrivateIpAddresses(const AwsEc2NetworkInterfacePrivateIpAddressDetail& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
120 inline AwsEc2NetworkInterfaceDetails& AddPrivateIpAddresses(AwsEc2NetworkInterfacePrivateIpAddressDetail&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; }
122
124
127 inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
128 inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
129 inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
130 inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); }
131 inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
133 inline AwsEc2NetworkInterfaceDetails& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;}
134 inline AwsEc2NetworkInterfaceDetails& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
136
138
141 inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
142 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
143 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
144 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
145 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
146 inline AwsEc2NetworkInterfaceDetails& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
147 inline AwsEc2NetworkInterfaceDetails& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
148 inline AwsEc2NetworkInterfaceDetails& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
150 private:
151
153 bool m_attachmentHasBeenSet = false;
154
155 Aws::String m_networkInterfaceId;
156 bool m_networkInterfaceIdHasBeenSet = false;
157
159 bool m_securityGroupsHasBeenSet = false;
160
161 bool m_sourceDestCheck;
162 bool m_sourceDestCheckHasBeenSet = false;
163
165 bool m_ipV6AddressesHasBeenSet = false;
166
168 bool m_privateIpAddressesHasBeenSet = false;
169
170 Aws::String m_publicDnsName;
171 bool m_publicDnsNameHasBeenSet = false;
172
173 Aws::String m_publicIp;
174 bool m_publicIpHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace SecurityHub
179} // namespace Aws
AwsEc2NetworkInterfaceDetails & WithPublicDnsName(const Aws::String &value)
const Aws::Vector< AwsEc2NetworkInterfacePrivateIpAddressDetail > & GetPrivateIpAddresses() const
AwsEc2NetworkInterfaceDetails & WithPublicDnsName(const char *value)
const AwsEc2NetworkInterfaceAttachment & GetAttachment() const
void SetSecurityGroups(const Aws::Vector< AwsEc2NetworkInterfaceSecurityGroup > &value)
void SetPrivateIpAddresses(Aws::Vector< AwsEc2NetworkInterfacePrivateIpAddressDetail > &&value)
void SetAttachment(AwsEc2NetworkInterfaceAttachment &&value)
AwsEc2NetworkInterfaceDetails & WithNetworkInterfaceId(const char *value)
AwsEc2NetworkInterfaceDetails & WithPublicDnsName(Aws::String &&value)
AwsEc2NetworkInterfaceDetails & WithPrivateIpAddresses(Aws::Vector< AwsEc2NetworkInterfacePrivateIpAddressDetail > &&value)
AwsEc2NetworkInterfaceDetails & WithPublicIp(const Aws::String &value)
AwsEc2NetworkInterfaceDetails & AddIpV6Addresses(AwsEc2NetworkInterfaceIpV6AddressDetail &&value)
AwsEc2NetworkInterfaceDetails & WithIpV6Addresses(Aws::Vector< AwsEc2NetworkInterfaceIpV6AddressDetail > &&value)
AwsEc2NetworkInterfaceDetails & WithSecurityGroups(Aws::Vector< AwsEc2NetworkInterfaceSecurityGroup > &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2NetworkInterfaceDetails & WithPrivateIpAddresses(const Aws::Vector< AwsEc2NetworkInterfacePrivateIpAddressDetail > &value)
void SetIpV6Addresses(Aws::Vector< AwsEc2NetworkInterfaceIpV6AddressDetail > &&value)
AwsEc2NetworkInterfaceDetails & WithPublicIp(const char *value)
AwsEc2NetworkInterfaceDetails & AddSecurityGroups(const AwsEc2NetworkInterfaceSecurityGroup &value)
void SetSecurityGroups(Aws::Vector< AwsEc2NetworkInterfaceSecurityGroup > &&value)
AwsEc2NetworkInterfaceDetails & WithIpV6Addresses(const Aws::Vector< AwsEc2NetworkInterfaceIpV6AddressDetail > &value)
AwsEc2NetworkInterfaceDetails & AddSecurityGroups(AwsEc2NetworkInterfaceSecurityGroup &&value)
const Aws::Vector< AwsEc2NetworkInterfaceIpV6AddressDetail > & GetIpV6Addresses() const
AwsEc2NetworkInterfaceDetails & WithSecurityGroups(const Aws::Vector< AwsEc2NetworkInterfaceSecurityGroup > &value)
void SetIpV6Addresses(const Aws::Vector< AwsEc2NetworkInterfaceIpV6AddressDetail > &value)
void SetAttachment(const AwsEc2NetworkInterfaceAttachment &value)
AwsEc2NetworkInterfaceDetails & WithSourceDestCheck(bool value)
AwsEc2NetworkInterfaceDetails & WithNetworkInterfaceId(const Aws::String &value)
AwsEc2NetworkInterfaceDetails & WithPublicIp(Aws::String &&value)
AwsEc2NetworkInterfaceDetails & WithAttachment(AwsEc2NetworkInterfaceAttachment &&value)
const Aws::Vector< AwsEc2NetworkInterfaceSecurityGroup > & GetSecurityGroups() const
AwsEc2NetworkInterfaceDetails & WithAttachment(const AwsEc2NetworkInterfaceAttachment &value)
void SetPrivateIpAddresses(const Aws::Vector< AwsEc2NetworkInterfacePrivateIpAddressDetail > &value)
AWS_SECURITYHUB_API AwsEc2NetworkInterfaceDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkInterfaceDetails & AddPrivateIpAddresses(const AwsEc2NetworkInterfacePrivateIpAddressDetail &value)
AwsEc2NetworkInterfaceDetails & AddIpV6Addresses(const AwsEc2NetworkInterfaceIpV6AddressDetail &value)
AwsEc2NetworkInterfaceDetails & WithNetworkInterfaceId(Aws::String &&value)
AWS_SECURITYHUB_API AwsEc2NetworkInterfaceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkInterfaceDetails & AddPrivateIpAddresses(AwsEc2NetworkInterfacePrivateIpAddressDetail &&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