/*
 * 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>
    /// UpdateClusterSdnFabricsFabricSingleRequest
    /// </summary>
    [DataContract(Name = "UpdateClusterSdnFabricsFabricSingleRequest")]
    public partial class UpdateClusterSdnFabricsFabricSingleRequest : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateClusterSdnFabricsFabricSingleRequest" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected UpdateClusterSdnFabricsFabricSingleRequest() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateClusterSdnFabricsFabricSingleRequest" /> class.
        /// </summary>
        /// <param name="area">area.</param>
        /// <param name="csnpInterval">csnpInterval.</param>
        /// <param name="delete">delete (required).</param>
        /// <param name="digest">digest.</param>
        /// <param name="helloInterval">helloInterval.</param>
        /// <param name="ip6Prefix">ip6Prefix.</param>
        /// <param name="ipPrefix">ipPrefix.</param>
        /// <param name="lockToken">lockToken.</param>
        /// <param name="protocol">protocol (required).</param>
        public UpdateClusterSdnFabricsFabricSingleRequest(string area = default(string), decimal csnpInterval = default(decimal), List<string> delete = default(List<string>), string digest = default(string), decimal helloInterval = default(decimal), string ip6Prefix = default(string), string ipPrefix = default(string), string lockToken = default(string), string protocol = default(string))
        {
            // to ensure "delete" is required (not null)
            if (delete == null)
            {
                throw new ArgumentNullException("delete is a required property for UpdateClusterSdnFabricsFabricSingleRequest and cannot be null");
            }
            this.Delete = delete;
            // to ensure "protocol" is required (not null)
            if (protocol == null)
            {
                throw new ArgumentNullException("protocol is a required property for UpdateClusterSdnFabricsFabricSingleRequest and cannot be null");
            }
            this.Protocol = protocol;
            this.Area = area;
            this.CsnpInterval = csnpInterval;
            this.Digest = digest;
            this.HelloInterval = helloInterval;
            this.Ip6Prefix = ip6Prefix;
            this.IpPrefix = ipPrefix;
            this.LockToken = lockToken;
        }

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

        /// <summary>
        /// Gets or Sets CsnpInterval
        /// </summary>
        [DataMember(Name = "csnp_interval", EmitDefaultValue = false)]
        public decimal CsnpInterval { get; set; }

        /// <summary>
        /// Gets or Sets Delete
        /// </summary>
        [DataMember(Name = "delete", IsRequired = true, EmitDefaultValue = true)]
        public List<string> Delete { get; set; }

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

        /// <summary>
        /// Gets or Sets HelloInterval
        /// </summary>
        [DataMember(Name = "hello_interval", EmitDefaultValue = false)]
        public decimal HelloInterval { get; set; }

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

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

        /// <summary>
        /// Gets or Sets LockToken
        /// </summary>
        [DataMember(Name = "lock-token", EmitDefaultValue = false)]
        public string LockToken { get; set; }

        /// <summary>
        /// Gets or Sets Protocol
        /// </summary>
        [DataMember(Name = "protocol", IsRequired = true, EmitDefaultValue = true)]
        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 UpdateClusterSdnFabricsFabricSingleRequest {\n");
            sb.Append("  Area: ").Append(Area).Append("\n");
            sb.Append("  CsnpInterval: ").Append(CsnpInterval).Append("\n");
            sb.Append("  Delete: ").Append(Delete).Append("\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  HelloInterval: ").Append(HelloInterval).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;
        }
    }

}
