/*
 * 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>
    /// GetNodes200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getNodes_200_response_data_inner")]
    public partial class GetNodes200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodes200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="cpu">CPU utilization..</param>
        /// <param name="level">Support level..</param>
        /// <param name="maxcpu">Number of available CPUs..</param>
        /// <param name="maxmem">Number of available memory in bytes..</param>
        /// <param name="mem">Used memory in bytes..</param>
        /// <param name="node">The cluster node name..</param>
        /// <param name="sslFingerprint">The SSL fingerprint for the node certificate..</param>
        /// <param name="status">Node status..</param>
        /// <param name="uptime">Node uptime in seconds..</param>
        public GetNodes200ResponseDataInner(decimal cpu = default(decimal), string level = default(string), Int64 maxcpu = default(Int64), Int64 maxmem = default(Int64), Int64 mem = default(Int64), string node = default(string), string sslFingerprint = default(string), string status = default(string), Int64 uptime = default(Int64))
        {
            this.Cpu = cpu;
            this.Level = level;
            this.Maxcpu = maxcpu;
            this.Maxmem = maxmem;
            this.Mem = mem;
            this.Node = node;
            this.SslFingerprint = sslFingerprint;
            this.Status = status;
            this.Uptime = uptime;
        }

        /// <summary>
        /// CPU utilization.
        /// </summary>
        /// <value>CPU utilization.</value>
        [DataMember(Name = "cpu", EmitDefaultValue = false)]
        public decimal Cpu { get; set; }

        /// <summary>
        /// Support level.
        /// </summary>
        /// <value>Support level.</value>
        [DataMember(Name = "level", EmitDefaultValue = false)]
        public string Level { get; set; }

        /// <summary>
        /// Number of available CPUs.
        /// </summary>
        /// <value>Number of available CPUs.</value>
        [DataMember(Name = "maxcpu", EmitDefaultValue = false)]
        public Int64 Maxcpu { get; set; }

        /// <summary>
        /// Number of available memory in bytes.
        /// </summary>
        /// <value>Number of available memory in bytes.</value>
        [DataMember(Name = "maxmem", EmitDefaultValue = false)]
        public Int64 Maxmem { get; set; }

        /// <summary>
        /// Used memory in bytes.
        /// </summary>
        /// <value>Used memory in bytes.</value>
        [DataMember(Name = "mem", EmitDefaultValue = false)]
        public Int64 Mem { get; set; }

        /// <summary>
        /// The cluster node name.
        /// </summary>
        /// <value>The cluster node name.</value>
        [DataMember(Name = "node", EmitDefaultValue = false)]
        public string Node { get; set; }

        /// <summary>
        /// The SSL fingerprint for the node certificate.
        /// </summary>
        /// <value>The SSL fingerprint for the node certificate.</value>
        [DataMember(Name = "ssl_fingerprint", EmitDefaultValue = false)]
        public string SslFingerprint { get; set; }

        /// <summary>
        /// Node status.
        /// </summary>
        /// <value>Node status.</value>
        [DataMember(Name = "status", EmitDefaultValue = false)]
        public string Status { get; set; }

        /// <summary>
        /// Node uptime in seconds.
        /// </summary>
        /// <value>Node uptime in seconds.</value>
        [DataMember(Name = "uptime", EmitDefaultValue = false)]
        public Int64 Uptime { 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 GetNodes200ResponseDataInner {\n");
            sb.Append("  Cpu: ").Append(Cpu).Append("\n");
            sb.Append("  Level: ").Append(Level).Append("\n");
            sb.Append("  Maxcpu: ").Append(Maxcpu).Append("\n");
            sb.Append("  Maxmem: ").Append(Maxmem).Append("\n");
            sb.Append("  Mem: ").Append(Mem).Append("\n");
            sb.Append("  Node: ").Append(Node).Append("\n");
            sb.Append("  SslFingerprint: ").Append(SslFingerprint).Append("\n");
            sb.Append("  Status: ").Append(Status).Append("\n");
            sb.Append("  Uptime: ").Append(Uptime).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;
        }
    }

}
