/*
* 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 InstanceNetworkInterface
{
private InstanceNetworkInterfaceAssociation _association;
private InstanceNetworkInterfaceAttachment _attachment;
private string _description;
private List _groups = new List();
private string _interfaceType;
private List _ipv4Prefixes = new List();
private List _ipv6Addresses = new List();
private List _ipv6Prefixes = new List();
private string _macAddress;
private string _networkInterfaceId;
private string _ownerId;
private string _privateDnsName;
private string _privateIpAddress;
private List _privateIpAddresses = new List();
private bool? _sourceDestCheck;
private NetworkInterfaceStatus _status;
private string _subnetId;
private string _vpcId;
///
/// Gets and sets the property Association.
///
/// The association information for an Elastic IPv4 associated with the network interface.
///
///
public InstanceNetworkInterfaceAssociation 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 InstanceNetworkInterfaceAttachment 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 Description.
///
/// The 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.
///
/// The security groups.
///
///
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.
///
///
///
/// Valid values: interface
| efa
| trunk
///
///
public string 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 delegated 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 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 Ipv6Prefixes.
///
/// The IPv6 delegated 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 OwnerId.
///
/// The ID of the Amazon Web Services account that created 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 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 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;
}
}
}