/*
 * 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>
    /// GetClusterSDNControllers200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getClusterSDNControllers_200_response_data_inner")]
    public partial class GetClusterSDNControllers200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterSDNControllers200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="asn">The local ASN of the controller. BGP &amp; EVPN only..</param>
        /// <param name="bgpMultipathAsRelax">Consider different AS paths of equal length for multipath computation. BGP only..</param>
        /// <param name="controller">Name of the controller..</param>
        /// <param name="digest">Digest of the controller section..</param>
        /// <param name="ebgp">Enable eBGP (remote-as external). BGP only..</param>
        /// <param name="ebgpMultihop">Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only..</param>
        /// <param name="isisDomain">Name of the IS-IS domain. IS-IS only..</param>
        /// <param name="isisIfaces">Comma-separated list of interfaces where IS-IS should be active. IS-IS only..</param>
        /// <param name="isisNet">Network Entity title for this node in the IS-IS network. IS-IS only..</param>
        /// <param name="loopback">Name of the loopback/dummy interface that provides the Router-IP. BGP only..</param>
        /// <param name="node">Node(s) where this controller is active..</param>
        /// <param name="peers">Comma-separated list of the peers IP addresses..</param>
        /// <param name="pending">pending.</param>
        /// <param name="state">State of the SDN configuration object..</param>
        /// <param name="type">Type of the controller.</param>
        public GetClusterSDNControllers200ResponseDataInner(Int64 asn = default(Int64), Int64 bgpMultipathAsRelax = default(Int64), string controller = default(string), string digest = default(string), Int64 ebgp = default(Int64), Int64 ebgpMultihop = default(Int64), string isisDomain = default(string), string isisIfaces = default(string), string isisNet = default(string), string loopback = default(string), string node = default(string), string peers = default(string), GetClusterSDNControllers200ResponseDataInnerPending pending = default(GetClusterSDNControllers200ResponseDataInnerPending), string state = default(string), string type = default(string))
        {
            this.Asn = asn;
            this.BgpMultipathAsRelax = bgpMultipathAsRelax;
            this.Controller = controller;
            this.Digest = digest;
            this.Ebgp = ebgp;
            this.EbgpMultihop = ebgpMultihop;
            this.IsisDomain = isisDomain;
            this.IsisIfaces = isisIfaces;
            this.IsisNet = isisNet;
            this.Loopback = loopback;
            this.Node = node;
            this.Peers = peers;
            this.Pending = pending;
            this.State = state;
            this.Type = type;
        }

        /// <summary>
        /// The local ASN of the controller. BGP &amp; EVPN only.
        /// </summary>
        /// <value>The local ASN of the controller. BGP &amp; EVPN only.</value>
        [DataMember(Name = "asn", EmitDefaultValue = false)]
        public Int64 Asn { get; set; }

        /// <summary>
        /// Consider different AS paths of equal length for multipath computation. BGP only.
        /// </summary>
        /// <value>Consider different AS paths of equal length for multipath computation. BGP only.</value>
        [DataMember(Name = "bgp-multipath-as-relax", EmitDefaultValue = false)]
        public Int64 BgpMultipathAsRelax { get; set; }

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

        /// <summary>
        /// Digest of the controller section.
        /// </summary>
        /// <value>Digest of the controller section.</value>
        [DataMember(Name = "digest", EmitDefaultValue = false)]
        public string Digest { get; set; }

        /// <summary>
        /// Enable eBGP (remote-as external). BGP only.
        /// </summary>
        /// <value>Enable eBGP (remote-as external). BGP only.</value>
        [DataMember(Name = "ebgp", EmitDefaultValue = false)]
        public Int64 Ebgp { get; set; }

        /// <summary>
        /// Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only.
        /// </summary>
        /// <value>Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only.</value>
        [DataMember(Name = "ebgp-multihop", EmitDefaultValue = false)]
        public Int64 EbgpMultihop { get; set; }

        /// <summary>
        /// Name of the IS-IS domain. IS-IS only.
        /// </summary>
        /// <value>Name of the IS-IS domain. IS-IS only.</value>
        [DataMember(Name = "isis-domain", EmitDefaultValue = false)]
        public string IsisDomain { get; set; }

        /// <summary>
        /// Comma-separated list of interfaces where IS-IS should be active. IS-IS only.
        /// </summary>
        /// <value>Comma-separated list of interfaces where IS-IS should be active. IS-IS only.</value>
        [DataMember(Name = "isis-ifaces", EmitDefaultValue = false)]
        public string IsisIfaces { get; set; }

        /// <summary>
        /// Network Entity title for this node in the IS-IS network. IS-IS only.
        /// </summary>
        /// <value>Network Entity title for this node in the IS-IS network. IS-IS only.</value>
        [DataMember(Name = "isis-net", EmitDefaultValue = false)]
        public string IsisNet { get; set; }

        /// <summary>
        /// Name of the loopback/dummy interface that provides the Router-IP. BGP only.
        /// </summary>
        /// <value>Name of the loopback/dummy interface that provides the Router-IP. BGP only.</value>
        [DataMember(Name = "loopback", EmitDefaultValue = false)]
        public string Loopback { get; set; }

        /// <summary>
        /// Node(s) where this controller is active.
        /// </summary>
        /// <value>Node(s) where this controller is active.</value>
        [DataMember(Name = "node", EmitDefaultValue = false)]
        public string Node { get; set; }

        /// <summary>
        /// Comma-separated list of the peers IP addresses.
        /// </summary>
        /// <value>Comma-separated list of the peers IP addresses.</value>
        [DataMember(Name = "peers", EmitDefaultValue = false)]
        public string Peers { get; set; }

        /// <summary>
        /// Gets or Sets Pending
        /// </summary>
        [DataMember(Name = "pending", EmitDefaultValue = false)]
        public GetClusterSDNControllers200ResponseDataInnerPending 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>
        /// Type of the controller
        /// </summary>
        /// <value>Type of the controller</value>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { 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 GetClusterSDNControllers200ResponseDataInner {\n");
            sb.Append("  Asn: ").Append(Asn).Append("\n");
            sb.Append("  BgpMultipathAsRelax: ").Append(BgpMultipathAsRelax).Append("\n");
            sb.Append("  Controller: ").Append(Controller).Append("\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  Ebgp: ").Append(Ebgp).Append("\n");
            sb.Append("  EbgpMultihop: ").Append(EbgpMultihop).Append("\n");
            sb.Append("  IsisDomain: ").Append(IsisDomain).Append("\n");
            sb.Append("  IsisIfaces: ").Append(IsisIfaces).Append("\n");
            sb.Append("  IsisNet: ").Append(IsisNet).Append("\n");
            sb.Append("  Loopback: ").Append(Loopback).Append("\n");
            sb.Append("  Node: ").Append(Node).Append("\n");
            sb.Append("  Peers: ").Append(Peers).Append("\n");
            sb.Append("  Pending: ").Append(Pending).Append("\n");
            sb.Append("  State: ").Append(State).Append("\n");
            sb.Append("  Type: ").Append(Type).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;
        }
    }

}
