/*
 * 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>
    /// Useful properties are listed, but not the full list.
    /// </summary>
    [DataContract(Name = "getClusterCephMetadata_200_response_data_mds__id_")]
    public partial class GetClusterCephMetadata200ResponseDataMdsId : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterCephMetadata200ResponseDataMdsId" /> class.
        /// </summary>
        /// <param name="addr">Bind addresses and ports..</param>
        /// <param name="cephRelease">Ceph release codename currently used..</param>
        /// <param name="cephVersion">Version info currently used by the service..</param>
        /// <param name="cephVersionShort">Short version (numerical) info currently used by the service..</param>
        /// <param name="hostname">Hostname on which the service is running..</param>
        /// <param name="memSwapKb">Memory of the service currently in swap..</param>
        /// <param name="memTotalKb">Memory consumption of the service..</param>
        /// <param name="name">Name of the service instance..</param>
        public GetClusterCephMetadata200ResponseDataMdsId(string addr = default(string), string cephRelease = default(string), string cephVersion = default(string), string cephVersionShort = default(string), string hostname = default(string), Int64 memSwapKb = default(Int64), Int64 memTotalKb = default(Int64), string name = default(string))
        {
            this.Addr = addr;
            this.CephRelease = cephRelease;
            this.CephVersion = cephVersion;
            this.CephVersionShort = cephVersionShort;
            this.Hostname = hostname;
            this.MemSwapKb = memSwapKb;
            this.MemTotalKb = memTotalKb;
            this.Name = name;
        }

        /// <summary>
        /// Bind addresses and ports.
        /// </summary>
        /// <value>Bind addresses and ports.</value>
        [DataMember(Name = "addr", EmitDefaultValue = false)]
        public string Addr { get; set; }

        /// <summary>
        /// Ceph release codename currently used.
        /// </summary>
        /// <value>Ceph release codename currently used.</value>
        [DataMember(Name = "ceph_release", EmitDefaultValue = false)]
        public string CephRelease { get; set; }

        /// <summary>
        /// Version info currently used by the service.
        /// </summary>
        /// <value>Version info currently used by the service.</value>
        [DataMember(Name = "ceph_version", EmitDefaultValue = false)]
        public string CephVersion { get; set; }

        /// <summary>
        /// Short version (numerical) info currently used by the service.
        /// </summary>
        /// <value>Short version (numerical) info currently used by the service.</value>
        [DataMember(Name = "ceph_version_short", EmitDefaultValue = false)]
        public string CephVersionShort { get; set; }

        /// <summary>
        /// Hostname on which the service is running.
        /// </summary>
        /// <value>Hostname on which the service is running.</value>
        [DataMember(Name = "hostname", EmitDefaultValue = false)]
        public string Hostname { get; set; }

        /// <summary>
        /// Memory of the service currently in swap.
        /// </summary>
        /// <value>Memory of the service currently in swap.</value>
        [DataMember(Name = "mem_swap_kb", EmitDefaultValue = false)]
        public Int64 MemSwapKb { get; set; }

        /// <summary>
        /// Memory consumption of the service.
        /// </summary>
        /// <value>Memory consumption of the service.</value>
        [DataMember(Name = "mem_total_kb", EmitDefaultValue = false)]
        public Int64 MemTotalKb { get; set; }

        /// <summary>
        /// Name of the service instance.
        /// </summary>
        /// <value>Name of the service instance.</value>
        [DataMember(Name = "name", EmitDefaultValue = false)]
        public string Name { 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 GetClusterCephMetadata200ResponseDataMdsId {\n");
            sb.Append("  Addr: ").Append(Addr).Append("\n");
            sb.Append("  CephRelease: ").Append(CephRelease).Append("\n");
            sb.Append("  CephVersion: ").Append(CephVersion).Append("\n");
            sb.Append("  CephVersionShort: ").Append(CephVersionShort).Append("\n");
            sb.Append("  Hostname: ").Append(Hostname).Append("\n");
            sb.Append("  MemSwapKb: ").Append(MemSwapKb).Append("\n");
            sb.Append("  MemTotalKb: ").Append(MemTotalKb).Append("\n");
            sb.Append("  Name: ").Append(Name).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;
        }
    }

}
