/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about the network interfaceSee Also:
AWS
* API Reference
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::VectorSecurity groups for the network interface.
*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *Security groups for the network interface.
*/ inline void SetSecurityGroups(const Aws::VectorSecurity groups for the network interface.
*/ inline void SetSecurityGroups(Aws::VectorSecurity groups for the network interface.
*/ inline AwsEc2NetworkInterfaceDetails& WithSecurityGroups(const Aws::VectorSecurity groups for the network interface.
*/ inline AwsEc2NetworkInterfaceDetails& WithSecurityGroups(Aws::VectorSecurity 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::VectorThe 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::VectorThe IPv6 addresses associated with the network interface.
*/ inline void SetIpV6Addresses(Aws::VectorThe IPv6 addresses associated with the network interface.
*/ inline AwsEc2NetworkInterfaceDetails& WithIpV6Addresses(const Aws::VectorThe IPv6 addresses associated with the network interface.
*/ inline AwsEc2NetworkInterfaceDetails& WithIpV6Addresses(Aws::VectorThe 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::VectorThe 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::VectorThe private IPv4 addresses associated with the network interface.
*/ inline void SetPrivateIpAddresses(Aws::VectorThe private IPv4 addresses associated with the network interface.
*/ inline AwsEc2NetworkInterfaceDetails& WithPrivateIpAddresses(const Aws::VectorThe private IPv4 addresses associated with the network interface.
*/ inline AwsEc2NetworkInterfaceDetails& WithPrivateIpAddresses(Aws::VectorThe 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