/*
 * 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>
    /// GetNodeFirewallOptions200ResponseData
    /// </summary>
    [DataContract(Name = "getNodeFirewallOptions_200_response_data")]
    public partial class GetNodeFirewallOptions200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodeFirewallOptions200ResponseData" /> class.
        /// </summary>
        /// <param name="enable">Enable host firewall rules..</param>
        /// <param name="logLevelForward">Log level for forwarded traffic..</param>
        /// <param name="logLevelIn">Log level for incoming traffic..</param>
        /// <param name="logLevelOut">Log level for outgoing traffic..</param>
        /// <param name="logNfConntrack">Enable logging of conntrack information..</param>
        /// <param name="ndp">Enable NDP (Neighbor Discovery Protocol)..</param>
        /// <param name="nfConntrackAllowInvalid">Allow invalid packets on connection tracking..</param>
        /// <param name="nfConntrackHelpers">Enable conntrack helpers for specific protocols. Supported protocols: amanda, ftp, irc, netbios-ns, pptp, sane, sip, snmp, tftp.</param>
        /// <param name="nfConntrackMax">Maximum number of tracked connections..</param>
        /// <param name="nfConntrackTcpTimeoutEstablished">Conntrack established timeout..</param>
        /// <param name="nfConntrackTcpTimeoutSynRecv">Conntrack syn recv timeout..</param>
        /// <param name="nftables">Enable nftables based firewall (tech preview).</param>
        /// <param name="nosmurfs">Enable SMURFS filter..</param>
        /// <param name="protectionSynflood">Enable synflood protection.</param>
        /// <param name="protectionSynfloodBurst">Synflood protection rate burst by ip src..</param>
        /// <param name="protectionSynfloodRate">Synflood protection rate syn/sec by ip src..</param>
        /// <param name="smurfLogLevel">Log level for SMURFS filter..</param>
        /// <param name="tcpFlagsLogLevel">Log level for illegal tcp flags filter..</param>
        /// <param name="tcpflags">Filter illegal combinations of TCP flags..</param>
        public GetNodeFirewallOptions200ResponseData(Int64 enable = default(Int64), string logLevelForward = default(string), string logLevelIn = default(string), string logLevelOut = default(string), Int64 logNfConntrack = default(Int64), Int64 ndp = default(Int64), Int64 nfConntrackAllowInvalid = default(Int64), string nfConntrackHelpers = default(string), Int64 nfConntrackMax = default(Int64), Int64 nfConntrackTcpTimeoutEstablished = default(Int64), Int64 nfConntrackTcpTimeoutSynRecv = default(Int64), Int64 nftables = default(Int64), Int64 nosmurfs = default(Int64), Int64 protectionSynflood = default(Int64), Int64 protectionSynfloodBurst = default(Int64), Int64 protectionSynfloodRate = default(Int64), string smurfLogLevel = default(string), string tcpFlagsLogLevel = default(string), Int64 tcpflags = default(Int64))
        {
            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>
        /// Enable host firewall rules.
        /// </summary>
        /// <value>Enable host firewall rules.</value>
        [DataMember(Name = "enable", EmitDefaultValue = false)]
        public Int64 Enable { get; set; }

        /// <summary>
        /// Log level for forwarded traffic.
        /// </summary>
        /// <value>Log level for forwarded traffic.</value>
        [DataMember(Name = "log_level_forward", EmitDefaultValue = false)]
        public string LogLevelForward { get; set; }

        /// <summary>
        /// Log level for incoming traffic.
        /// </summary>
        /// <value>Log level for incoming traffic.</value>
        [DataMember(Name = "log_level_in", EmitDefaultValue = false)]
        public string LogLevelIn { get; set; }

        /// <summary>
        /// Log level for outgoing traffic.
        /// </summary>
        /// <value>Log level for outgoing traffic.</value>
        [DataMember(Name = "log_level_out", EmitDefaultValue = false)]
        public string LogLevelOut { get; set; }

        /// <summary>
        /// Enable logging of conntrack information.
        /// </summary>
        /// <value>Enable logging of conntrack information.</value>
        [DataMember(Name = "log_nf_conntrack", EmitDefaultValue = false)]
        public Int64 LogNfConntrack { get; set; }

        /// <summary>
        /// Enable NDP (Neighbor Discovery Protocol).
        /// </summary>
        /// <value>Enable NDP (Neighbor Discovery Protocol).</value>
        [DataMember(Name = "ndp", EmitDefaultValue = false)]
        public Int64 Ndp { get; set; }

        /// <summary>
        /// Allow invalid packets on connection tracking.
        /// </summary>
        /// <value>Allow invalid packets on connection tracking.</value>
        [DataMember(Name = "nf_conntrack_allow_invalid", EmitDefaultValue = false)]
        public Int64 NfConntrackAllowInvalid { get; set; }

        /// <summary>
        /// Enable conntrack helpers for specific protocols. Supported protocols: amanda, ftp, irc, netbios-ns, pptp, sane, sip, snmp, tftp
        /// </summary>
        /// <value>Enable conntrack helpers for specific protocols. Supported protocols: amanda, ftp, irc, netbios-ns, pptp, sane, sip, snmp, tftp</value>
        [DataMember(Name = "nf_conntrack_helpers", EmitDefaultValue = false)]
        public string NfConntrackHelpers { get; set; }

        /// <summary>
        /// Maximum number of tracked connections.
        /// </summary>
        /// <value>Maximum number of tracked connections.</value>
        [DataMember(Name = "nf_conntrack_max", EmitDefaultValue = false)]
        public Int64 NfConntrackMax { get; set; }

        /// <summary>
        /// Conntrack established timeout.
        /// </summary>
        /// <value>Conntrack established timeout.</value>
        [DataMember(Name = "nf_conntrack_tcp_timeout_established", EmitDefaultValue = false)]
        public Int64 NfConntrackTcpTimeoutEstablished { get; set; }

        /// <summary>
        /// Conntrack syn recv timeout.
        /// </summary>
        /// <value>Conntrack syn recv timeout.</value>
        [DataMember(Name = "nf_conntrack_tcp_timeout_syn_recv", EmitDefaultValue = false)]
        public Int64 NfConntrackTcpTimeoutSynRecv { get; set; }

        /// <summary>
        /// Enable nftables based firewall (tech preview)
        /// </summary>
        /// <value>Enable nftables based firewall (tech preview)</value>
        [DataMember(Name = "nftables", EmitDefaultValue = false)]
        public Int64 Nftables { get; set; }

        /// <summary>
        /// Enable SMURFS filter.
        /// </summary>
        /// <value>Enable SMURFS filter.</value>
        [DataMember(Name = "nosmurfs", EmitDefaultValue = false)]
        public Int64 Nosmurfs { get; set; }

        /// <summary>
        /// Enable synflood protection
        /// </summary>
        /// <value>Enable synflood protection</value>
        [DataMember(Name = "protection_synflood", EmitDefaultValue = false)]
        public Int64 ProtectionSynflood { get; set; }

        /// <summary>
        /// Synflood protection rate burst by ip src.
        /// </summary>
        /// <value>Synflood protection rate burst by ip src.</value>
        [DataMember(Name = "protection_synflood_burst", EmitDefaultValue = false)]
        public Int64 ProtectionSynfloodBurst { get; set; }

        /// <summary>
        /// Synflood protection rate syn/sec by ip src.
        /// </summary>
        /// <value>Synflood protection rate syn/sec by ip src.</value>
        [DataMember(Name = "protection_synflood_rate", EmitDefaultValue = false)]
        public Int64 ProtectionSynfloodRate { get; set; }

        /// <summary>
        /// Log level for SMURFS filter.
        /// </summary>
        /// <value>Log level for SMURFS filter.</value>
        [DataMember(Name = "smurf_log_level", EmitDefaultValue = false)]
        public string SmurfLogLevel { get; set; }

        /// <summary>
        /// Log level for illegal tcp flags filter.
        /// </summary>
        /// <value>Log level for illegal tcp flags filter.</value>
        [DataMember(Name = "tcp_flags_log_level", EmitDefaultValue = false)]
        public string TcpFlagsLogLevel { get; set; }

        /// <summary>
        /// Filter illegal combinations of TCP flags.
        /// </summary>
        /// <value>Filter illegal combinations of TCP flags.</value>
        [DataMember(Name = "tcpflags", EmitDefaultValue = false)]
        public Int64 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 GetNodeFirewallOptions200ResponseData {\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;
        }
    }

}
