/*
 * 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>
    /// UpdateVMFirewallOptionsRequest
    /// </summary>
    [DataContract(Name = "UpdateVMFirewallOptionsRequest")]
    public partial class UpdateVMFirewallOptionsRequest : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateVMFirewallOptionsRequest" /> class.
        /// </summary>
        /// <param name="delete">delete.</param>
        /// <param name="dhcp">dhcp.</param>
        /// <param name="digest">digest.</param>
        /// <param name="enable">enable.</param>
        /// <param name="ipfilter">ipfilter.</param>
        /// <param name="logLevelIn">logLevelIn.</param>
        /// <param name="logLevelOut">logLevelOut.</param>
        /// <param name="macfilter">macfilter.</param>
        /// <param name="ndp">ndp.</param>
        /// <param name="policyIn">policyIn.</param>
        /// <param name="policyOut">policyOut.</param>
        /// <param name="radv">radv.</param>
        public UpdateVMFirewallOptionsRequest(string delete = default(string), bool dhcp = default(bool), string digest = default(string), bool enable = default(bool), bool ipfilter = default(bool), string logLevelIn = default(string), string logLevelOut = default(string), bool macfilter = default(bool), bool ndp = default(bool), string policyIn = default(string), string policyOut = default(string), bool radv = default(bool))
        {
            this.Delete = delete;
            this.Dhcp = dhcp;
            this.Digest = digest;
            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>
        /// Gets or Sets Delete
        /// </summary>
        [DataMember(Name = "delete", EmitDefaultValue = false)]
        public string Delete { get; set; }

        /// <summary>
        /// Gets or Sets Dhcp
        /// </summary>
        [DataMember(Name = "dhcp", EmitDefaultValue = true)]
        public bool Dhcp { 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 Ipfilter
        /// </summary>
        [DataMember(Name = "ipfilter", EmitDefaultValue = true)]
        public bool Ipfilter { 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 Macfilter
        /// </summary>
        [DataMember(Name = "macfilter", EmitDefaultValue = true)]
        public bool Macfilter { get; set; }

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

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

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

        /// <summary>
        /// Gets or Sets Radv
        /// </summary>
        [DataMember(Name = "radv", EmitDefaultValue = true)]
        public bool 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 UpdateVMFirewallOptionsRequest {\n");
            sb.Append("  Delete: ").Append(Delete).Append("\n");
            sb.Append("  Dhcp: ").Append(Dhcp).Append("\n");
            sb.Append("  Digest: ").Append(Digest).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;
        }
    }

}
