/*
 * 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>
    /// GetClusterSDNVnets200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getClusterSDNVnets_200_response_data_inner")]
    public partial class GetClusterSDNVnets200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterSDNVnets200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="alias">Alias name of the VNet..</param>
        /// <param name="digest">Digest of the VNet section..</param>
        /// <param name="isolatePorts">If true, sets the isolated property for all interfaces on the bridge of this VNet..</param>
        /// <param name="pending">pending.</param>
        /// <param name="state">State of the SDN configuration object..</param>
        /// <param name="tag">VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones)..</param>
        /// <param name="type">Type of the VNet..</param>
        /// <param name="vlanaware">Allow VLANs to pass through this VNet..</param>
        /// <param name="vnet">Name of the VNet..</param>
        /// <param name="zone">Name of the zone this VNet belongs to..</param>
        public GetClusterSDNVnets200ResponseDataInner(string alias = default(string), string digest = default(string), Int64 isolatePorts = default(Int64), GetClusterSDNVnets200ResponseDataInnerPending pending = default(GetClusterSDNVnets200ResponseDataInnerPending), string state = default(string), Int64 tag = default(Int64), string type = default(string), Int64 vlanaware = default(Int64), string vnet = default(string), string zone = default(string))
        {
            this.Alias = alias;
            this.Digest = digest;
            this.IsolatePorts = isolatePorts;
            this.Pending = pending;
            this.State = state;
            this.Tag = tag;
            this.Type = type;
            this.Vlanaware = vlanaware;
            this.Vnet = vnet;
            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>
        /// Digest of the VNet section.
        /// </summary>
        /// <value>Digest of the VNet section.</value>
        [DataMember(Name = "digest", EmitDefaultValue = false)]
        public string Digest { 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>
        /// Gets or Sets Pending
        /// </summary>
        [DataMember(Name = "pending", EmitDefaultValue = false)]
        public GetClusterSDNVnets200ResponseDataInnerPending Pending { get; set; }

        /// <summary>
        /// State of the SDN configuration object.
        /// </summary>
        /// <value>State of the SDN configuration object.</value>
        [DataMember(Name = "state", EmitDefaultValue = false)]
        public string State { 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>
        /// Type of the VNet.
        /// </summary>
        /// <value>Type of the VNet.</value>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { 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 VNet.
        /// </summary>
        /// <value>Name of the VNet.</value>
        [DataMember(Name = "vnet", EmitDefaultValue = false)]
        public string Vnet { 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 GetClusterSDNVnets200ResponseDataInner {\n");
            sb.Append("  Alias: ").Append(Alias).Append("\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  IsolatePorts: ").Append(IsolatePorts).Append("\n");
            sb.Append("  Pending: ").Append(Pending).Append("\n");
            sb.Append("  State: ").Append(State).Append("\n");
            sb.Append("  Tag: ").Append(Tag).Append("\n");
            sb.Append("  Type: ").Append(Type).Append("\n");
            sb.Append("  Vlanaware: ").Append(Vlanaware).Append("\n");
            sb.Append("  Vnet: ").Append(Vnet).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;
        }
    }

}
