/*
 * 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>
    /// GetVMFirewallOptions200ResponseData
    /// </summary>
    [DataContract(Name = "getVMFirewallOptions_200_response_data")]
    public partial class GetVMFirewallOptions200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetVMFirewallOptions200ResponseData" /> class.
        /// </summary>
        /// <param name="dhcp">Enable DHCP..</param>
        /// <param name="enable">Enable/disable firewall rules..</param>
        /// <param name="ipfilter">Enable default IP filters. This is equivalent to adding an empty ipfilter-net&lt;id&gt; ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface&#39;s MAC address. For containers the configured IP addresses will be implicitly added..</param>
        /// <param name="logLevelIn">Log level for incoming traffic..</param>
        /// <param name="logLevelOut">Log level for outgoing traffic..</param>
        /// <param name="macfilter">Enable/disable MAC address filter..</param>
        /// <param name="ndp">Enable NDP (Neighbor Discovery Protocol)..</param>
        /// <param name="policyIn">Input policy..</param>
        /// <param name="policyOut">Output policy..</param>
        /// <param name="radv">Allow sending Router Advertisement..</param>
        public GetVMFirewallOptions200ResponseData(Int64 dhcp = default(Int64), Int64 enable = default(Int64), Int64 ipfilter = default(Int64), string logLevelIn = default(string), string logLevelOut = default(string), Int64 macfilter = default(Int64), Int64 ndp = default(Int64), string policyIn = default(string), string policyOut = default(string), Int64 radv = default(Int64))
        {
            this.Dhcp = dhcp;
            this.Enable = enable;
            this.Ipfilter = ipfilter;
            this.LogLevelIn = logLevelIn;
            this.LogLevelOut = logLevelOut;
            this.Macfilter = macfilter;
            this.Ndp = ndp;
            this.PolicyIn = policyIn;
            this.PolicyOut = policyOut;
            this.Radv = radv;
        }

        /// <summary>
        /// Enable DHCP.
        /// </summary>
        /// <value>Enable DHCP.</value>
        [DataMember(Name = "dhcp", EmitDefaultValue = false)]
        public Int64 Dhcp { get; set; }

        /// <summary>
        /// Enable/disable firewall rules.
        /// </summary>
        /// <value>Enable/disable firewall rules.</value>
        [DataMember(Name = "enable", EmitDefaultValue = false)]
        public Int64 Enable { get; set; }

        /// <summary>
        /// Enable default IP filters. This is equivalent to adding an empty ipfilter-net&lt;id&gt; ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface&#39;s MAC address. For containers the configured IP addresses will be implicitly added.
        /// </summary>
        /// <value>Enable default IP filters. This is equivalent to adding an empty ipfilter-net&lt;id&gt; ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface&#39;s MAC address. For containers the configured IP addresses will be implicitly added.</value>
        [DataMember(Name = "ipfilter", EmitDefaultValue = false)]
        public Int64 Ipfilter { 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/disable MAC address filter.
        /// </summary>
        /// <value>Enable/disable MAC address filter.</value>
        [DataMember(Name = "macfilter", EmitDefaultValue = false)]
        public Int64 Macfilter { 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>
        /// Input policy.
        /// </summary>
        /// <value>Input policy.</value>
        [DataMember(Name = "policy_in", EmitDefaultValue = false)]
        public string PolicyIn { get; set; }

        /// <summary>
        /// Output policy.
        /// </summary>
        /// <value>Output policy.</value>
        [DataMember(Name = "policy_out", EmitDefaultValue = false)]
        public string PolicyOut { get; set; }

        /// <summary>
        /// Allow sending Router Advertisement.
        /// </summary>
        /// <value>Allow sending Router Advertisement.</value>
        [DataMember(Name = "radv", EmitDefaultValue = false)]
        public Int64 Radv { 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 GetVMFirewallOptions200ResponseData {\n");
            sb.Append("  Dhcp: ").Append(Dhcp).Append("\n");
            sb.Append("  Enable: ").Append(Enable).Append("\n");
            sb.Append("  Ipfilter: ").Append(Ipfilter).Append("\n");
            sb.Append("  LogLevelIn: ").Append(LogLevelIn).Append("\n");
            sb.Append("  LogLevelOut: ").Append(LogLevelOut).Append("\n");
            sb.Append("  Macfilter: ").Append(Macfilter).Append("\n");
            sb.Append("  Ndp: ").Append(Ndp).Append("\n");
            sb.Append("  PolicyIn: ").Append(PolicyIn).Append("\n");
            sb.Append("  PolicyOut: ").Append(PolicyOut).Append("\n");
            sb.Append("  Radv: ").Append(Radv).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;
        }
    }

}
