/*
 * 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>
    /// GetClusterSdnFabricsFabric200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getClusterSdnFabricsFabric_200_response_data_inner")]
    public partial class GetClusterSdnFabricsFabric200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterSdnFabricsFabric200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="area">OSPF area. Either a IPv4 address or a 32-bit number. Gets validated in rust..</param>
        /// <param name="csnpInterval">The csnp_interval property for Openfabric.</param>
        /// <param name="digest">Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications..</param>
        /// <param name="helloInterval">The hello_interval property for Openfabric.</param>
        /// <param name="id">Identifier for SDN fabrics.</param>
        /// <param name="ip6Prefix">The IP prefix for Node IPs.</param>
        /// <param name="ipPrefix">The IP prefix for Node IPs.</param>
        /// <param name="lockToken">the token for unlocking the global SDN configuration.</param>
        /// <param name="protocol">Type of configuration entry in an SDN Fabric section config.</param>
        public GetClusterSdnFabricsFabric200ResponseDataInner(string area = default(string), decimal csnpInterval = default(decimal), string digest = default(string), decimal helloInterval = default(decimal), string id = default(string), string ip6Prefix = default(string), string ipPrefix = default(string), string lockToken = default(string), string protocol = default(string))
        {
            this.Area = area;
            this.CsnpInterval = csnpInterval;
            this.Digest = digest;
            this.HelloInterval = helloInterval;
            this.Id = id;
            this.Ip6Prefix = ip6Prefix;
            this.IpPrefix = ipPrefix;
            this.LockToken = lockToken;
            this.Protocol = protocol;
        }

        /// <summary>
        /// OSPF area. Either a IPv4 address or a 32-bit number. Gets validated in rust.
        /// </summary>
        /// <value>OSPF area. Either a IPv4 address or a 32-bit number. Gets validated in rust.</value>
        [DataMember(Name = "area", EmitDefaultValue = false)]
        public string Area { get; set; }

        /// <summary>
        /// The csnp_interval property for Openfabric
        /// </summary>
        /// <value>The csnp_interval property for Openfabric</value>
        [DataMember(Name = "csnp_interval", EmitDefaultValue = false)]
        public decimal CsnpInterval { get; set; }

        /// <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>
        /// The hello_interval property for Openfabric
        /// </summary>
        /// <value>The hello_interval property for Openfabric</value>
        [DataMember(Name = "hello_interval", EmitDefaultValue = false)]
        public decimal HelloInterval { get; set; }

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

        /// <summary>
        /// The IP prefix for Node IPs
        /// </summary>
        /// <value>The IP prefix for Node IPs</value>
        [DataMember(Name = "ip6_prefix", EmitDefaultValue = false)]
        public string Ip6Prefix { get; set; }

        /// <summary>
        /// The IP prefix for Node IPs
        /// </summary>
        /// <value>The IP prefix for Node IPs</value>
        [DataMember(Name = "ip_prefix", EmitDefaultValue = false)]
        public string IpPrefix { 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>
        /// 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 GetClusterSdnFabricsFabric200ResponseDataInner {\n");
            sb.Append("  Area: ").Append(Area).Append("\n");
            sb.Append("  CsnpInterval: ").Append(CsnpInterval).Append("\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  HelloInterval: ").Append(HelloInterval).Append("\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Ip6Prefix: ").Append(Ip6Prefix).Append("\n");
            sb.Append("  IpPrefix: ").Append(IpPrefix).Append("\n");
            sb.Append("  LockToken: ").Append(LockToken).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;
        }
    }

}
