/*
 * ProxMox VE API
 *
 * ProxMox VE API
 *
 * The version of the OpenAPI document: 2.0
 * Contact: support@lumaserv.com
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */


using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter;

namespace ProxmoxSharp.Model
{
    /// <summary>
    /// Changes that have not yet been applied to the running configuration.
    /// </summary>
    [DataContract(Name = "getClusterSDNVnets_200_response_data_inner_pending")]
    public partial class GetClusterSDNVnets200ResponseDataInnerPending : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterSDNVnets200ResponseDataInnerPending" /> class.
        /// </summary>
        /// <param name="alias">Alias name of the VNet..</param>
        /// <param name="isolatePorts">If true, sets the isolated property for all interfaces on the bridge of this VNet..</param>
        /// <param name="tag">VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones)..</param>
        /// <param name="vlanaware">Allow VLANs to pass through this VNet..</param>
        /// <param name="zone">Name of the zone this VNet belongs to..</param>
        public GetClusterSDNVnets200ResponseDataInnerPending(string alias = default(string), Int64 isolatePorts = default(Int64), Int64 tag = default(Int64), Int64 vlanaware = default(Int64), string zone = default(string))
        {
            this.Alias = alias;
            this.IsolatePorts = isolatePorts;
            this.Tag = tag;
            this.Vlanaware = vlanaware;
            this.Zone = zone;
        }

        /// <summary>
        /// Alias name of the VNet.
        /// </summary>
        /// <value>Alias name of the VNet.</value>
        [DataMember(Name = "alias", EmitDefaultValue = false)]
        public string Alias { get; set; }

        /// <summary>
        /// If true, sets the isolated property for all interfaces on the bridge of this VNet.
        /// </summary>
        /// <value>If true, sets the isolated property for all interfaces on the bridge of this VNet.</value>
        [DataMember(Name = "isolate-ports", EmitDefaultValue = false)]
        public Int64 IsolatePorts { get; set; }

        /// <summary>
        /// VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones).
        /// </summary>
        /// <value>VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones).</value>
        [DataMember(Name = "tag", EmitDefaultValue = false)]
        public Int64 Tag { get; set; }

        /// <summary>
        /// Allow VLANs to pass through this VNet.
        /// </summary>
        /// <value>Allow VLANs to pass through this VNet.</value>
        [DataMember(Name = "vlanaware", EmitDefaultValue = false)]
        public Int64 Vlanaware { get; set; }

        /// <summary>
        /// Name of the zone this VNet belongs to.
        /// </summary>
        /// <value>Name of the zone this VNet belongs to.</value>
        [DataMember(Name = "zone", EmitDefaultValue = false)]
        public string Zone { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("class GetClusterSDNVnets200ResponseDataInnerPending {\n");
            sb.Append("  Alias: ").Append(Alias).Append("\n");
            sb.Append("  IsolatePorts: ").Append(IsolatePorts).Append("\n");
            sb.Append("  Tag: ").Append(Tag).Append("\n");
            sb.Append("  Vlanaware: ").Append(Vlanaware).Append("\n");
            sb.Append("  Zone: ").Append(Zone).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
