/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the network interfaces interacting with an EC2
* instance. This data type is used as one of the elements of the
* AssetAttributes data type.See Also:
AWS
* API Reference
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 NetworkInterface& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *The ID of the network interface.
*/ inline NetworkInterface& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *The ID of the network interface.
*/ inline NetworkInterface& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *The ID of a subnet associated with the network interface.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The ID of a subnet associated with the network interface.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The ID of a subnet associated with the network interface.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The ID of a subnet associated with the network interface.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The ID of a subnet associated with the network interface.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The ID of a subnet associated with the network interface.
*/ inline NetworkInterface& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of a subnet associated with the network interface.
*/ inline NetworkInterface& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of a subnet associated with the network interface.
*/ inline NetworkInterface& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *The ID of a VPC associated with the network interface.
*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *The ID of a VPC associated with the network interface.
*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *The ID of a VPC associated with the network interface.
*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *The ID of a VPC associated with the network interface.
*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *The ID of a VPC associated with the network interface.
*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *The ID of a VPC associated with the network interface.
*/ inline NetworkInterface& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *The ID of a VPC associated with the network interface.
*/ inline NetworkInterface& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *The ID of a VPC associated with the network interface.
*/ inline NetworkInterface& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *The name of a private DNS associated with the network interface.
*/ inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; } /** *The name of a private DNS associated with the network interface.
*/ inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; } /** *The name of a private DNS associated with the network interface.
*/ inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; } /** *The name of a private DNS associated with the network interface.
*/ inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); } /** *The name of a private DNS associated with the network interface.
*/ inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); } /** *The name of a private DNS associated with the network interface.
*/ inline NetworkInterface& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;} /** *The name of a private DNS associated with the network interface.
*/ inline NetworkInterface& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;} /** *The name of a private DNS associated with the network interface.
*/ inline NetworkInterface& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;} /** *The private IP address associated with the network interface.
*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *The private IP address associated with the network interface.
*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *The private IP address associated with the network interface.
*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *The private IP address associated with the network interface.
*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *The private IP address associated with the network interface.
*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *The private IP address associated with the network interface.
*/ inline NetworkInterface& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *The private IP address associated with the network interface.
*/ inline NetworkInterface& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *The private IP address associated with the network interface.
*/ inline NetworkInterface& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} /** *A list of the private IP addresses associated with the network interface. * Includes the privateDnsName and privateIpAddress.
*/ inline const Aws::VectorA list of the private IP addresses associated with the network interface. * Includes the privateDnsName and privateIpAddress.
*/ inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; } /** *A list of the private IP addresses associated with the network interface. * Includes the privateDnsName and privateIpAddress.
*/ inline void SetPrivateIpAddresses(const Aws::VectorA list of the private IP addresses associated with the network interface. * Includes the privateDnsName and privateIpAddress.
*/ inline void SetPrivateIpAddresses(Aws::VectorA list of the private IP addresses associated with the network interface. * Includes the privateDnsName and privateIpAddress.
*/ inline NetworkInterface& WithPrivateIpAddresses(const Aws::VectorA list of the private IP addresses associated with the network interface. * Includes the privateDnsName and privateIpAddress.
*/ inline NetworkInterface& WithPrivateIpAddresses(Aws::VectorA list of the private IP addresses associated with the network interface. * Includes the privateDnsName and privateIpAddress.
*/ inline NetworkInterface& AddPrivateIpAddresses(const PrivateIp& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *A list of the private IP addresses associated with the network interface. * Includes the privateDnsName and privateIpAddress.
*/ inline NetworkInterface& AddPrivateIpAddresses(PrivateIp&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; } /** *The name of a public DNS associated with the network interface.
*/ inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; } /** *The name of a public DNS associated with the network interface.
*/ inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; } /** *The name of a public DNS associated with the network interface.
*/ inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; } /** *The name of a public DNS associated with the network interface.
*/ inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); } /** *The name of a public DNS associated with the network interface.
*/ inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); } /** *The name of a public DNS associated with the network interface.
*/ inline NetworkInterface& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;} /** *The name of a public DNS associated with the network interface.
*/ inline NetworkInterface& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;} /** *The name of a public DNS associated with the network interface.
*/ inline NetworkInterface& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;} /** *The public IP address from which the network interface is reachable.
*/ inline const Aws::String& GetPublicIp() const{ return m_publicIp; } /** *The public IP address from which the network interface is reachable.
*/ inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; } /** *The public IP address from which the network interface is reachable.
*/ inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; } /** *The public IP address from which the network interface is reachable.
*/ inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); } /** *The public IP address from which the network interface is reachable.
*/ inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); } /** *The public IP address from which the network interface is reachable.
*/ inline NetworkInterface& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;} /** *The public IP address from which the network interface is reachable.
*/ inline NetworkInterface& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;} /** *The public IP address from which the network interface is reachable.
*/ inline NetworkInterface& WithPublicIp(const char* value) { SetPublicIp(value); return *this;} /** *The IP addresses associated with the network interface.
*/ inline const Aws::VectorThe IP addresses associated with the network interface.
*/ inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; } /** *The IP addresses associated with the network interface.
*/ inline void SetIpv6Addresses(const Aws::VectorThe IP addresses associated with the network interface.
*/ inline void SetIpv6Addresses(Aws::VectorThe IP addresses associated with the network interface.
*/ inline NetworkInterface& WithIpv6Addresses(const Aws::VectorThe IP addresses associated with the network interface.
*/ inline NetworkInterface& WithIpv6Addresses(Aws::VectorThe IP addresses associated with the network interface.
*/ inline NetworkInterface& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *The IP addresses associated with the network interface.
*/ inline NetworkInterface& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; } /** *The IP addresses associated with the network interface.
*/ inline NetworkInterface& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *A list of the security groups associated with the network interface. Includes * the groupId and groupName.
*/ inline const Aws::VectorA list of the security groups associated with the network interface. Includes * the groupId and groupName.
*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *A list of the security groups associated with the network interface. Includes * the groupId and groupName.
*/ inline void SetSecurityGroups(const Aws::VectorA list of the security groups associated with the network interface. Includes * the groupId and groupName.
*/ inline void SetSecurityGroups(Aws::VectorA list of the security groups associated with the network interface. Includes * the groupId and groupName.
*/ inline NetworkInterface& WithSecurityGroups(const Aws::VectorA list of the security groups associated with the network interface. Includes * the groupId and groupName.
*/ inline NetworkInterface& WithSecurityGroups(Aws::VectorA list of the security groups associated with the network interface. Includes * the groupId and groupName.
*/ inline NetworkInterface& AddSecurityGroups(const SecurityGroup& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *A list of the security groups associated with the network interface. Includes * the groupId and groupName.
*/ inline NetworkInterface& AddSecurityGroups(SecurityGroup&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } private: Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet = false; Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet = false; Aws::Vector