/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Details about the network interface
///
public partial class AwsEc2NetworkInterfaceDetails
{
private AwsEc2NetworkInterfaceAttachment _attachment;
private List _ipV6Addresses = new List();
private string _networkInterfaceId;
private List _privateIpAddresses = new List();
private string _publicDnsName;
private string _publicIp;
private List _securityGroups = new List();
private bool? _sourceDestCheck;
///
/// Gets and sets the property Attachment.
///
/// The network interface attachment.
///
///
public AwsEc2NetworkInterfaceAttachment 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 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 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 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 PublicDnsName.
///
/// The public DNS name of the network interface.
///
///
public string PublicDnsName
{
get { return this._publicDnsName; }
set { this._publicDnsName = value; }
}
// Check to see if PublicDnsName property is set
internal bool IsSetPublicDnsName()
{
return this._publicDnsName != null;
}
///
/// Gets and sets the property PublicIp.
///
/// The address of the Elastic IP address bound to the network interface.
///
///
public string PublicIp
{
get { return this._publicIp; }
set { this._publicIp = value; }
}
// Check to see if PublicIp property is set
internal bool IsSetPublicIp()
{
return this._publicIp != null;
}
///
/// Gets and sets the property SecurityGroups.
///
/// Security groups for the network interface.
///
///
public List SecurityGroups
{
get { return this._securityGroups; }
set { this._securityGroups = value; }
}
// Check to see if SecurityGroups property is set
internal bool IsSetSecurityGroups()
{
return this._securityGroups != null && this._securityGroups.Count > 0;
}
///
/// Gets and sets the property SourceDestCheck.
///
/// Indicates whether traffic to or from the instance is validated.
///
///
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;
}
}
}