/* * 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 { /// /// Contains the output of DescribeNetworkInterfaceAttribute. /// public partial class DescribeNetworkInterfaceAttributeResponse : AmazonWebServiceResponse { private NetworkInterfaceAttachment _attachment; private string _description; private List _groups = new List(); private string _networkInterfaceId; private bool? _sourceDestCheck; /// /// Gets and sets the property Attachment. /// /// The attachment (if any) of the network interface. /// /// 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 Description. /// /// The description of the network interface. /// /// 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 associated with 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 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 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; } } }