private/api/Nutanix/Powershell/Models/SubnetResourcesDefStatus.cs

namespace Nutanix.Powershell.Models
{
    using static Microsoft.Rest.ClientRuntime.Extensions;
    /// <summary>Subnet creation/modification status.</summary>
    public partial class SubnetResourcesDefStatus : Nutanix.Powershell.Models.ISubnetResourcesDefStatus, Microsoft.Rest.ClientRuntime.IValidates
    {
        /// <summary>Backing field for <see cref="IpConfig" /> property.</summary>
        private Nutanix.Powershell.Models.IIpConfig _ipConfig;

        /// <summary>IP config.</summary>
        public Nutanix.Powershell.Models.IIpConfig IpConfig
        {
            get
            {
                return this._ipConfig;
            }
            set
            {
                this._ipConfig = value;
            }
        }
        /// <summary>Backing field for <see cref="NetworkFunctionChainReference" /> property.</summary>
        private Nutanix.Powershell.Models.INetworkFunctionChainReference _networkFunctionChainReference;

        /// <summary>The reference to a network_function_chain</summary>
        public Nutanix.Powershell.Models.INetworkFunctionChainReference NetworkFunctionChainReference
        {
            get
            {
                return this._networkFunctionChainReference;
            }
            set
            {
                this._networkFunctionChainReference = value;
            }
        }
        /// <summary>Backing field for <see cref="SubnetType" /> property.</summary>
        private string _subnetType;

        public string SubnetType
        {
            get
            {
                return this._subnetType;
            }
            set
            {
                this._subnetType = value;
            }
        }
        /// <summary>Backing field for <see cref="VlanId" /> property.</summary>
        private int? _vlanId;

        public int? VlanId
        {
            get
            {
                return this._vlanId;
            }
            set
            {
                this._vlanId = value;
            }
        }
        /// <summary>Backing field for <see cref="VswitchName" /> property.</summary>
        private string _vswitchName;

        public string VswitchName
        {
            get
            {
                return this._vswitchName;
            }
            set
            {
                this._vswitchName = value;
            }
        }
        /// <summary>Creates an new <see cref="SubnetResourcesDefStatus" /> instance.</summary>
        public SubnetResourcesDefStatus()
        {
        }
        /// <summary>Validates that this object meets the validation criteria.</summary>
        /// <param name="eventListener">an <see cref="Microsoft.Rest.ClientRuntime.IEventListener" /> instance that will receive validation
        /// events.</param>
        /// <returns>
        /// A <see cref="System.Threading.Tasks.Task" /> that will be complete when validation is completed.
        /// </returns>
        public async System.Threading.Tasks.Task Validate(Microsoft.Rest.ClientRuntime.IEventListener eventListener)
        {
            await eventListener.AssertObjectIsValid(nameof(IpConfig), IpConfig);
            await eventListener.AssertObjectIsValid(nameof(NetworkFunctionChainReference), NetworkFunctionChainReference);
        }
    }
    /// Subnet creation/modification status.
    public partial interface ISubnetResourcesDefStatus : Microsoft.Rest.ClientRuntime.IJsonSerializable {
        Nutanix.Powershell.Models.IIpConfig IpConfig { get; set; }
        Nutanix.Powershell.Models.INetworkFunctionChainReference NetworkFunctionChainReference { get; set; }
        string SubnetType { get; set; }
        int? VlanId { get; set; }
        string VswitchName { get; set; }
    }
}