/*
 * 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>
    /// GetClusterSdnFabricsNode200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getClusterSdnFabricsNode_200_response_data_inner")]
    public partial class GetClusterSdnFabricsNode200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterSdnFabricsNode200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="digest">Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications..</param>
        /// <param name="fabricId">Identifier for SDN fabrics.</param>
        /// <param name="interfaces">interfaces.</param>
        /// <param name="ip">IPv4 address for this node.</param>
        /// <param name="ip6">IPv6 address for this node.</param>
        /// <param name="lockToken">the token for unlocking the global SDN configuration.</param>
        /// <param name="nodeId">Identifier for nodes in an SDN fabric.</param>
        /// <param name="protocol">Type of configuration entry in an SDN Fabric section config.</param>
        public GetClusterSdnFabricsNode200ResponseDataInner(string digest = default(string), string fabricId = default(string), List<string> interfaces = default(List<string>), string ip = default(string), string ip6 = default(string), string lockToken = default(string), string nodeId = default(string), string protocol = default(string))
        {
            this.Digest = digest;
            this.FabricId = fabricId;
            this.Interfaces = interfaces;
            this.Ip = ip;
            this.Ip6 = ip6;
            this.LockToken = lockToken;
            this.NodeId = nodeId;
            this.Protocol = protocol;
        }

        /// <summary>
        /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
        /// </summary>
        /// <value>Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.</value>
        [DataMember(Name = "digest", EmitDefaultValue = false)]
        public string Digest { get; set; }

        /// <summary>
        /// Identifier for SDN fabrics
        /// </summary>
        /// <value>Identifier for SDN fabrics</value>
        [DataMember(Name = "fabric_id", EmitDefaultValue = false)]
        public string FabricId { get; set; }

        /// <summary>
        /// Gets or Sets Interfaces
        /// </summary>
        [DataMember(Name = "interfaces", EmitDefaultValue = false)]
        public List<string> Interfaces { get; set; }

        /// <summary>
        /// IPv4 address for this node
        /// </summary>
        /// <value>IPv4 address for this node</value>
        [DataMember(Name = "ip", EmitDefaultValue = false)]
        public string Ip { get; set; }

        /// <summary>
        /// IPv6 address for this node
        /// </summary>
        /// <value>IPv6 address for this node</value>
        [DataMember(Name = "ip6", EmitDefaultValue = false)]
        public string Ip6 { get; set; }

        /// <summary>
        /// the token for unlocking the global SDN configuration
        /// </summary>
        /// <value>the token for unlocking the global SDN configuration</value>
        [DataMember(Name = "lock-token", EmitDefaultValue = false)]
        public string LockToken { get; set; }

        /// <summary>
        /// Identifier for nodes in an SDN fabric
        /// </summary>
        /// <value>Identifier for nodes in an SDN fabric</value>
        [DataMember(Name = "node_id", EmitDefaultValue = false)]
        public string NodeId { get; set; }

        /// <summary>
        /// Type of configuration entry in an SDN Fabric section config
        /// </summary>
        /// <value>Type of configuration entry in an SDN Fabric section config</value>
        [DataMember(Name = "protocol", EmitDefaultValue = false)]
        public string Protocol { 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 GetClusterSdnFabricsNode200ResponseDataInner {\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  FabricId: ").Append(FabricId).Append("\n");
            sb.Append("  Interfaces: ").Append(Interfaces).Append("\n");
            sb.Append("  Ip: ").Append(Ip).Append("\n");
            sb.Append("  Ip6: ").Append(Ip6).Append("\n");
            sb.Append("  LockToken: ").Append(LockToken).Append("\n");
            sb.Append("  NodeId: ").Append(NodeId).Append("\n");
            sb.Append("  Protocol: ").Append(Protocol).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;
        }
    }

}
