/*
 * 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>
    /// GetClusterFirewallOptions200ResponseData
    /// </summary>
    [DataContract(Name = "getClusterFirewallOptions_200_response_data")]
    public partial class GetClusterFirewallOptions200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterFirewallOptions200ResponseData" /> class.
        /// </summary>
        /// <param name="ebtables">Enable ebtables rules cluster wide..</param>
        /// <param name="enable">Enable or disable the firewall cluster wide..</param>
        /// <param name="logRatelimit">Log ratelimiting settings.</param>
        /// <param name="policyForward">Forward policy..</param>
        /// <param name="policyIn">Input policy..</param>
        /// <param name="policyOut">Output policy..</param>
        public GetClusterFirewallOptions200ResponseData(Int64 ebtables = default(Int64), Int64 enable = default(Int64), string logRatelimit = default(string), string policyForward = default(string), string policyIn = default(string), string policyOut = default(string))
        {
            this.Ebtables = ebtables;
            this.Enable = enable;
            this.LogRatelimit = logRatelimit;
            this.PolicyForward = policyForward;
            this.PolicyIn = policyIn;
            this.PolicyOut = policyOut;
        }

        /// <summary>
        /// Enable ebtables rules cluster wide.
        /// </summary>
        /// <value>Enable ebtables rules cluster wide.</value>
        [DataMember(Name = "ebtables", EmitDefaultValue = false)]
        public Int64 Ebtables { get; set; }

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

        /// <summary>
        /// Log ratelimiting settings
        /// </summary>
        /// <value>Log ratelimiting settings</value>
        [DataMember(Name = "log_ratelimit", EmitDefaultValue = false)]
        public string LogRatelimit { get; set; }

        /// <summary>
        /// Forward policy.
        /// </summary>
        /// <value>Forward policy.</value>
        [DataMember(Name = "policy_forward", EmitDefaultValue = false)]
        public string PolicyForward { 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>
        /// 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 GetClusterFirewallOptions200ResponseData {\n");
            sb.Append("  Ebtables: ").Append(Ebtables).Append("\n");
            sb.Append("  Enable: ").Append(Enable).Append("\n");
            sb.Append("  LogRatelimit: ").Append(LogRatelimit).Append("\n");
            sb.Append("  PolicyForward: ").Append(PolicyForward).Append("\n");
            sb.Append("  PolicyIn: ").Append(PolicyIn).Append("\n");
            sb.Append("  PolicyOut: ").Append(PolicyOut).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;
        }
    }

}
