/*
 * 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>
    /// Meta-information about the currently booted kernel of this node.
    /// </summary>
    [DataContract(Name = "getNodesSingleStatus_200_response_data_current_kernel")]
    public partial class GetNodesSingleStatus200ResponseDataCurrentKernel : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleStatus200ResponseDataCurrentKernel" /> class.
        /// </summary>
        /// <param name="machine">Hardware (architecture) type.</param>
        /// <param name="release">OS kernel release (e.g., \&quot;6.8.0\&quot;).</param>
        /// <param name="sysname">OS kernel name (e.g., \&quot;Linux\&quot;).</param>
        /// <param name="varVersion">OS kernel version with build info.</param>
        public GetNodesSingleStatus200ResponseDataCurrentKernel(string machine = default(string), string release = default(string), string sysname = default(string), string varVersion = default(string))
        {
            this.Machine = machine;
            this.Release = release;
            this.Sysname = sysname;
            this.VarVersion = varVersion;
        }

        /// <summary>
        /// Hardware (architecture) type
        /// </summary>
        /// <value>Hardware (architecture) type</value>
        [DataMember(Name = "machine", EmitDefaultValue = false)]
        public string Machine { get; set; }

        /// <summary>
        /// OS kernel release (e.g., \&quot;6.8.0\&quot;)
        /// </summary>
        /// <value>OS kernel release (e.g., \&quot;6.8.0\&quot;)</value>
        [DataMember(Name = "release", EmitDefaultValue = false)]
        public string Release { get; set; }

        /// <summary>
        /// OS kernel name (e.g., \&quot;Linux\&quot;)
        /// </summary>
        /// <value>OS kernel name (e.g., \&quot;Linux\&quot;)</value>
        [DataMember(Name = "sysname", EmitDefaultValue = false)]
        public string Sysname { get; set; }

        /// <summary>
        /// OS kernel version with build info
        /// </summary>
        /// <value>OS kernel version with build info</value>
        [DataMember(Name = "version", EmitDefaultValue = false)]
        public string VarVersion { 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 GetNodesSingleStatus200ResponseDataCurrentKernel {\n");
            sb.Append("  Machine: ").Append(Machine).Append("\n");
            sb.Append("  Release: ").Append(Release).Append("\n");
            sb.Append("  Sysname: ").Append(Sysname).Append("\n");
            sb.Append("  VarVersion: ").Append(VarVersion).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;
        }
    }

}
