/*
 * 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>
    /// UpdateNodeFirewallOptionsRequest
    /// </summary>
    [DataContract(Name = "UpdateNodeFirewallOptionsRequest")]
    public partial class UpdateNodeFirewallOptionsRequest : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateNodeFirewallOptionsRequest" /> class.
        /// </summary>
        /// <param name="delete">delete.</param>
        /// <param name="digest">digest.</param>
        /// <param name="enable">enable.</param>
        /// <param name="logLevelForward">logLevelForward.</param>
        /// <param name="logLevelIn">logLevelIn.</param>
        /// <param name="logLevelOut">logLevelOut.</param>
        /// <param name="logNfConntrack">logNfConntrack.</param>
        /// <param name="ndp">ndp.</param>
        /// <param name="nfConntrackAllowInvalid">nfConntrackAllowInvalid.</param>
        /// <param name="nfConntrackHelpers">nfConntrackHelpers.</param>
        /// <param name="nfConntrackMax">nfConntrackMax.</param>
        /// <param name="nfConntrackTcpTimeoutEstablished">nfConntrackTcpTimeoutEstablished.</param>
        /// <param name="nfConntrackTcpTimeoutSynRecv">nfConntrackTcpTimeoutSynRecv.</param>
        /// <param name="nftables">nftables.</param>
        /// <param name="nosmurfs">nosmurfs.</param>
        /// <param name="protectionSynflood">protectionSynflood.</param>
        /// <param name="protectionSynfloodBurst">protectionSynfloodBurst.</param>
        /// <param name="protectionSynfloodRate">protectionSynfloodRate.</param>
        /// <param name="smurfLogLevel">smurfLogLevel.</param>
        /// <param name="tcpFlagsLogLevel">tcpFlagsLogLevel.</param>
        /// <param name="tcpflags">tcpflags.</param>
        public UpdateNodeFirewallOptionsRequest(string delete = default(string), string digest = default(string), bool enable = default(bool), string logLevelForward = default(string), string logLevelIn = default(string), string logLevelOut = default(string), bool logNfConntrack = default(bool), bool ndp = default(bool), bool nfConntrackAllowInvalid = default(bool), string nfConntrackHelpers = default(string), int nfConntrackMax = default(int), int nfConntrackTcpTimeoutEstablished = default(int), int nfConntrackTcpTimeoutSynRecv = default(int), bool nftables = default(bool), bool nosmurfs = default(bool), bool protectionSynflood = default(bool), int protectionSynfloodBurst = default(int), int protectionSynfloodRate = default(int), string smurfLogLevel = default(string), string tcpFlagsLogLevel = default(string), bool tcpflags = default(bool))
        {
            this.Delete = delete;
            this.Digest = digest;
            this.Enable = enable;
            this.LogLevelForward = logLevelForward;
            this.LogLevelIn = logLevelIn;
            this.LogLevelOut = logLevelOut;
            this.LogNfConntrack = logNfConntrack;
            this.Ndp = ndp;
            this.NfConntrackAllowInvalid = nfConntrackAllowInvalid;
            this.NfConntrackHelpers = nfConntrackHelpers;
            this.NfConntrackMax = nfConntrackMax;
            this.NfConntrackTcpTimeoutEstablished = nfConntrackTcpTimeoutEstablished;
            this.NfConntrackTcpTimeoutSynRecv = nfConntrackTcpTimeoutSynRecv;
            this.Nftables = nftables;
            this.Nosmurfs = nosmurfs;
            this.ProtectionSynflood = protectionSynflood;
            this.ProtectionSynfloodBurst = protectionSynfloodBurst;
            this.ProtectionSynfloodRate = protectionSynfloodRate;
            this.SmurfLogLevel = smurfLogLevel;
            this.TcpFlagsLogLevel = tcpFlagsLogLevel;
            this.Tcpflags = tcpflags;
        }

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

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

        /// <summary>
        /// Gets or Sets Enable
        /// </summary>
        [DataMember(Name = "enable", EmitDefaultValue = true)]
        public bool Enable { get; set; }

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

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

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

        /// <summary>
        /// Gets or Sets LogNfConntrack
        /// </summary>
        [DataMember(Name = "log_nf_conntrack", EmitDefaultValue = true)]
        public bool LogNfConntrack { get; set; }

        /// <summary>
        /// Gets or Sets Ndp
        /// </summary>
        [DataMember(Name = "ndp", EmitDefaultValue = true)]
        public bool Ndp { get; set; }

        /// <summary>
        /// Gets or Sets NfConntrackAllowInvalid
        /// </summary>
        [DataMember(Name = "nf_conntrack_allow_invalid", EmitDefaultValue = true)]
        public bool NfConntrackAllowInvalid { get; set; }

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

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

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

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

        /// <summary>
        /// Gets or Sets Nftables
        /// </summary>
        [DataMember(Name = "nftables", EmitDefaultValue = true)]
        public bool Nftables { get; set; }

        /// <summary>
        /// Gets or Sets Nosmurfs
        /// </summary>
        [DataMember(Name = "nosmurfs", EmitDefaultValue = true)]
        public bool Nosmurfs { get; set; }

        /// <summary>
        /// Gets or Sets ProtectionSynflood
        /// </summary>
        [DataMember(Name = "protection_synflood", EmitDefaultValue = true)]
        public bool ProtectionSynflood { get; set; }

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

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

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

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

        /// <summary>
        /// Gets or Sets Tcpflags
        /// </summary>
        [DataMember(Name = "tcpflags", EmitDefaultValue = true)]
        public bool Tcpflags { 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 UpdateNodeFirewallOptionsRequest {\n");
            sb.Append("  Delete: ").Append(Delete).Append("\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  Enable: ").Append(Enable).Append("\n");
            sb.Append("  LogLevelForward: ").Append(LogLevelForward).Append("\n");
            sb.Append("  LogLevelIn: ").Append(LogLevelIn).Append("\n");
            sb.Append("  LogLevelOut: ").Append(LogLevelOut).Append("\n");
            sb.Append("  LogNfConntrack: ").Append(LogNfConntrack).Append("\n");
            sb.Append("  Ndp: ").Append(Ndp).Append("\n");
            sb.Append("  NfConntrackAllowInvalid: ").Append(NfConntrackAllowInvalid).Append("\n");
            sb.Append("  NfConntrackHelpers: ").Append(NfConntrackHelpers).Append("\n");
            sb.Append("  NfConntrackMax: ").Append(NfConntrackMax).Append("\n");
            sb.Append("  NfConntrackTcpTimeoutEstablished: ").Append(NfConntrackTcpTimeoutEstablished).Append("\n");
            sb.Append("  NfConntrackTcpTimeoutSynRecv: ").Append(NfConntrackTcpTimeoutSynRecv).Append("\n");
            sb.Append("  Nftables: ").Append(Nftables).Append("\n");
            sb.Append("  Nosmurfs: ").Append(Nosmurfs).Append("\n");
            sb.Append("  ProtectionSynflood: ").Append(ProtectionSynflood).Append("\n");
            sb.Append("  ProtectionSynfloodBurst: ").Append(ProtectionSynfloodBurst).Append("\n");
            sb.Append("  ProtectionSynfloodRate: ").Append(ProtectionSynfloodRate).Append("\n");
            sb.Append("  SmurfLogLevel: ").Append(SmurfLogLevel).Append("\n");
            sb.Append("  TcpFlagsLogLevel: ").Append(TcpFlagsLogLevel).Append("\n");
            sb.Append("  Tcpflags: ").Append(Tcpflags).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;
        }
    }

}
