/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.EC2.Model { /// /// Describes a network interface. /// public partial class NetworkInterface { private NetworkInterfaceAssociation _association; private NetworkInterfaceAttachment _attachment; private string _availabilityZone; private bool? _denyAllIgwTraffic; private string _description; private List _groups = new List(); private NetworkInterfaceType _interfaceType; private List _ipv4Prefixes = new List(); private string _ipv6Address; private List _ipv6Addresses = new List(); private bool? _ipv6Native; private List _ipv6Prefixes = new List(); private string _macAddress; private string _networkInterfaceId; private string _outpostArn; private string _ownerId; private string _privateDnsName; private string _privateIpAddress; private List _privateIpAddresses = new List(); private string _requesterId; private bool? _requesterManaged; private bool? _sourceDestCheck; private NetworkInterfaceStatus _status; private string _subnetId; private List _tagSet = new List(); private string _vpcId; /// /// Gets and sets the property Association. /// /// The association information for an Elastic IP address (IPv4) associated with the network /// interface. /// /// public NetworkInterfaceAssociation Association { get { return this._association; } set { this._association = value; } } // Check to see if Association property is set internal bool IsSetAssociation() { return this._association != null; } /// /// Gets and sets the property Attachment. /// /// The network interface attachment. /// /// public NetworkInterfaceAttachment Attachment { get { return this._attachment; } set { this._attachment = value; } } // Check to see if Attachment property is set internal bool IsSetAttachment() { return this._attachment != null; } /// /// Gets and sets the property AvailabilityZone. /// /// The Availability Zone. /// /// public string AvailabilityZone { get { return this._availabilityZone; } set { this._availabilityZone = value; } } // Check to see if AvailabilityZone property is set internal bool IsSetAvailabilityZone() { return this._availabilityZone != null; } /// /// Gets and sets the property DenyAllIgwTraffic. /// /// Indicates whether a network interface with an IPv6 address is unreachable from the /// public internet. If the value is true, inbound traffic from the internet /// is dropped and you cannot assign an elastic IP address to the network interface. The /// network interface is reachable from peered VPCs and resources connected through a /// transit gateway, including on-premises networks. /// /// public bool DenyAllIgwTraffic { get { return this._denyAllIgwTraffic.GetValueOrDefault(); } set { this._denyAllIgwTraffic = value; } } // Check to see if DenyAllIgwTraffic property is set internal bool IsSetDenyAllIgwTraffic() { return this._denyAllIgwTraffic.HasValue; } /// /// Gets and sets the property Description. /// /// A description. /// /// public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property Groups. /// /// Any security groups for the network interface. /// /// public List Groups { get { return this._groups; } set { this._groups = value; } } // Check to see if Groups property is set internal bool IsSetGroups() { return this._groups != null && this._groups.Count > 0; } /// /// Gets and sets the property InterfaceType. /// /// The type of network interface. /// /// public NetworkInterfaceType InterfaceType { get { return this._interfaceType; } set { this._interfaceType = value; } } // Check to see if InterfaceType property is set internal bool IsSetInterfaceType() { return this._interfaceType != null; } /// /// Gets and sets the property Ipv4Prefixes. /// /// The IPv4 prefixes that are assigned to the network interface. /// /// public List Ipv4Prefixes { get { return this._ipv4Prefixes; } set { this._ipv4Prefixes = value; } } // Check to see if Ipv4Prefixes property is set internal bool IsSetIpv4Prefixes() { return this._ipv4Prefixes != null && this._ipv4Prefixes.Count > 0; } /// /// Gets and sets the property Ipv6Address. /// /// The IPv6 globally unique address associated with the network interface. /// /// public string Ipv6Address { get { return this._ipv6Address; } set { this._ipv6Address = value; } } // Check to see if Ipv6Address property is set internal bool IsSetIpv6Address() { return this._ipv6Address != null; } /// /// Gets and sets the property Ipv6Addresses. /// /// The IPv6 addresses associated with the network interface. /// /// public List Ipv6Addresses { get { return this._ipv6Addresses; } set { this._ipv6Addresses = value; } } // Check to see if Ipv6Addresses property is set internal bool IsSetIpv6Addresses() { return this._ipv6Addresses != null && this._ipv6Addresses.Count > 0; } /// /// Gets and sets the property Ipv6Native. /// /// Indicates whether this is an IPv6 only network interface. /// /// public bool Ipv6Native { get { return this._ipv6Native.GetValueOrDefault(); } set { this._ipv6Native = value; } } // Check to see if Ipv6Native property is set internal bool IsSetIpv6Native() { return this._ipv6Native.HasValue; } /// /// Gets and sets the property Ipv6Prefixes. /// /// The IPv6 prefixes that are assigned to the network interface. /// /// public List Ipv6Prefixes { get { return this._ipv6Prefixes; } set { this._ipv6Prefixes = value; } } // Check to see if Ipv6Prefixes property is set internal bool IsSetIpv6Prefixes() { return this._ipv6Prefixes != null && this._ipv6Prefixes.Count > 0; } /// /// Gets and sets the property MacAddress. /// /// The MAC address. /// /// public string MacAddress { get { return this._macAddress; } set { this._macAddress = value; } } // Check to see if MacAddress property is set internal bool IsSetMacAddress() { return this._macAddress != null; } /// /// Gets and sets the property NetworkInterfaceId. /// /// The ID of the network interface. /// /// public string NetworkInterfaceId { get { return this._networkInterfaceId; } set { this._networkInterfaceId = value; } } // Check to see if NetworkInterfaceId property is set internal bool IsSetNetworkInterfaceId() { return this._networkInterfaceId != null; } /// /// Gets and sets the property OutpostArn. /// /// The Amazon Resource Name (ARN) of the Outpost. /// /// public string OutpostArn { get { return this._outpostArn; } set { this._outpostArn = value; } } // Check to see if OutpostArn property is set internal bool IsSetOutpostArn() { return this._outpostArn != null; } /// /// Gets and sets the property OwnerId. /// /// The Amazon Web Services account ID of the owner of the network interface. /// /// public string OwnerId { get { return this._ownerId; } set { this._ownerId = value; } } // Check to see if OwnerId property is set internal bool IsSetOwnerId() { return this._ownerId != null; } /// /// Gets and sets the property PrivateDnsName. /// /// The private DNS name. /// /// public string PrivateDnsName { get { return this._privateDnsName; } set { this._privateDnsName = value; } } // Check to see if PrivateDnsName property is set internal bool IsSetPrivateDnsName() { return this._privateDnsName != null; } /// /// Gets and sets the property PrivateIpAddress. /// /// The IPv4 address of the network interface within the subnet. /// /// public string PrivateIpAddress { get { return this._privateIpAddress; } set { this._privateIpAddress = value; } } // Check to see if PrivateIpAddress property is set internal bool IsSetPrivateIpAddress() { return this._privateIpAddress != null; } /// /// Gets and sets the property PrivateIpAddresses. /// /// The private IPv4 addresses associated with the network interface. /// /// public List PrivateIpAddresses { get { return this._privateIpAddresses; } set { this._privateIpAddresses = value; } } // Check to see if PrivateIpAddresses property is set internal bool IsSetPrivateIpAddresses() { return this._privateIpAddresses != null && this._privateIpAddresses.Count > 0; } /// /// Gets and sets the property RequesterId. /// /// The alias or Amazon Web Services account ID of the principal or service that created /// the network interface. /// /// public string RequesterId { get { return this._requesterId; } set { this._requesterId = value; } } // Check to see if RequesterId property is set internal bool IsSetRequesterId() { return this._requesterId != null; } /// /// Gets and sets the property RequesterManaged. /// /// Indicates whether the network interface is being managed by Amazon Web Services. /// /// public bool RequesterManaged { get { return this._requesterManaged.GetValueOrDefault(); } set { this._requesterManaged = value; } } // Check to see if RequesterManaged property is set internal bool IsSetRequesterManaged() { return this._requesterManaged.HasValue; } /// /// Gets and sets the property SourceDestCheck. /// /// Indicates whether source/destination checking is enabled. /// /// public bool SourceDestCheck { get { return this._sourceDestCheck.GetValueOrDefault(); } set { this._sourceDestCheck = value; } } // Check to see if SourceDestCheck property is set internal bool IsSetSourceDestCheck() { return this._sourceDestCheck.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the network interface. /// /// public NetworkInterfaceStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property SubnetId. /// /// The ID of the subnet. /// /// public string SubnetId { get { return this._subnetId; } set { this._subnetId = value; } } // Check to see if SubnetId property is set internal bool IsSetSubnetId() { return this._subnetId != null; } /// /// Gets and sets the property TagSet. /// /// Any tags assigned to the network interface. /// /// public List TagSet { get { return this._tagSet; } set { this._tagSet = value; } } // Check to see if TagSet property is set internal bool IsSetTagSet() { return this._tagSet != null && this._tagSet.Count > 0; } /// /// Gets and sets the property VpcId. /// /// The ID of the VPC. /// /// public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } } }