/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Details about the network interface

See Also:

AWS * API Reference

*/ class AwsEc2NetworkInterfaceDetails { public: AWS_SECURITYHUB_API AwsEc2NetworkInterfaceDetails(); AWS_SECURITYHUB_API AwsEc2NetworkInterfaceDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2NetworkInterfaceDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The network interface attachment.

*/ inline const AwsEc2NetworkInterfaceAttachment& GetAttachment() const{ return m_attachment; } /** *

The network interface attachment.

*/ inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; } /** *

The network interface attachment.

*/ inline void SetAttachment(const AwsEc2NetworkInterfaceAttachment& value) { m_attachmentHasBeenSet = true; m_attachment = value; } /** *

The network interface attachment.

*/ inline void SetAttachment(AwsEc2NetworkInterfaceAttachment&& value) { m_attachmentHasBeenSet = true; m_attachment = std::move(value); } /** *

The network interface attachment.

*/ inline AwsEc2NetworkInterfaceDetails& WithAttachment(const AwsEc2NetworkInterfaceAttachment& value) { SetAttachment(value); return *this;} /** *

The network interface attachment.

*/ inline AwsEc2NetworkInterfaceDetails& WithAttachment(AwsEc2NetworkInterfaceAttachment&& value) { SetAttachment(std::move(value)); return *this;} /** *

The ID of the network interface.

*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *

The ID of the network interface.

*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *

The ID of the network interface.

*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *

The ID of the network interface.

*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *

The ID of the network interface.

*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *

The ID of the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *

The ID of the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *

The ID of the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *

Security groups for the network interface.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

Security groups for the network interface.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

Security groups for the network interface.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

Security groups for the network interface.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

Security groups for the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

Security groups for the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

Security groups for the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& AddSecurityGroups(const AwsEc2NetworkInterfaceSecurityGroup& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

Security groups for the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& AddSecurityGroups(AwsEc2NetworkInterfaceSecurityGroup&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *

Indicates whether traffic to or from the instance is validated.

*/ inline bool GetSourceDestCheck() const{ return m_sourceDestCheck; } /** *

Indicates whether traffic to or from the instance is validated.

*/ inline bool SourceDestCheckHasBeenSet() const { return m_sourceDestCheckHasBeenSet; } /** *

Indicates whether traffic to or from the instance is validated.

*/ inline void SetSourceDestCheck(bool value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = value; } /** *

Indicates whether traffic to or from the instance is validated.

*/ inline AwsEc2NetworkInterfaceDetails& WithSourceDestCheck(bool value) { SetSourceDestCheck(value); return *this;} /** *

The IPv6 addresses associated with the network interface.

*/ inline const Aws::Vector& GetIpV6Addresses() const{ return m_ipV6Addresses; } /** *

The IPv6 addresses associated with the network interface.

*/ inline bool IpV6AddressesHasBeenSet() const { return m_ipV6AddressesHasBeenSet; } /** *

The IPv6 addresses associated with the network interface.

*/ inline void SetIpV6Addresses(const Aws::Vector& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses = value; } /** *

The IPv6 addresses associated with the network interface.

*/ inline void SetIpV6Addresses(Aws::Vector&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses = std::move(value); } /** *

The IPv6 addresses associated with the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithIpV6Addresses(const Aws::Vector& value) { SetIpV6Addresses(value); return *this;} /** *

The IPv6 addresses associated with the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithIpV6Addresses(Aws::Vector&& value) { SetIpV6Addresses(std::move(value)); return *this;} /** *

The IPv6 addresses associated with the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& AddIpV6Addresses(const AwsEc2NetworkInterfaceIpV6AddressDetail& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(value); return *this; } /** *

The IPv6 addresses associated with the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& AddIpV6Addresses(AwsEc2NetworkInterfaceIpV6AddressDetail&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(std::move(value)); return *this; } /** *

The private IPv4 addresses associated with the network interface.

*/ inline const Aws::Vector& GetPrivateIpAddresses() const{ return m_privateIpAddresses; } /** *

The private IPv4 addresses associated with the network interface.

*/ inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; } /** *

The private IPv4 addresses associated with the network interface.

*/ inline void SetPrivateIpAddresses(const Aws::Vector& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; } /** *

The private IPv4 addresses associated with the network interface.

*/ inline void SetPrivateIpAddresses(Aws::Vector&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); } /** *

The private IPv4 addresses associated with the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithPrivateIpAddresses(const Aws::Vector& value) { SetPrivateIpAddresses(value); return *this;} /** *

The private IPv4 addresses associated with the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithPrivateIpAddresses(Aws::Vector&& value) { SetPrivateIpAddresses(std::move(value)); return *this;} /** *

The private IPv4 addresses associated with the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& AddPrivateIpAddresses(const AwsEc2NetworkInterfacePrivateIpAddressDetail& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *

The private IPv4 addresses associated with the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& AddPrivateIpAddresses(AwsEc2NetworkInterfacePrivateIpAddressDetail&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; } /** *

The public DNS name of the network interface.

*/ inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; } /** *

The public DNS name of the network interface.

*/ inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; } /** *

The public DNS name of the network interface.

*/ inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; } /** *

The public DNS name of the network interface.

*/ inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); } /** *

The public DNS name of the network interface.

*/ inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); } /** *

The public DNS name of the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;} /** *

The public DNS name of the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;} /** *

The public DNS name of the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;} /** *

The address of the Elastic IP address bound to the network interface.

*/ inline const Aws::String& GetPublicIp() const{ return m_publicIp; } /** *

The address of the Elastic IP address bound to the network interface.

*/ inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; } /** *

The address of the Elastic IP address bound to the network interface.

*/ inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; } /** *

The address of the Elastic IP address bound to the network interface.

*/ inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); } /** *

The address of the Elastic IP address bound to the network interface.

*/ inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); } /** *

The address of the Elastic IP address bound to the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;} /** *

The address of the Elastic IP address bound to the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;} /** *

The address of the Elastic IP address bound to the network interface.

*/ inline AwsEc2NetworkInterfaceDetails& WithPublicIp(const char* value) { SetPublicIp(value); return *this;} private: AwsEc2NetworkInterfaceAttachment m_attachment; bool m_attachmentHasBeenSet = false; Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; bool m_sourceDestCheck; bool m_sourceDestCheckHasBeenSet = false; Aws::Vector m_ipV6Addresses; bool m_ipV6AddressesHasBeenSet = false; Aws::Vector m_privateIpAddresses; bool m_privateIpAddressesHasBeenSet = false; Aws::String m_publicDnsName; bool m_publicDnsNameHasBeenSet = false; Aws::String m_publicIp; bool m_publicIpHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws