/*
 * 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>
    /// GetNodesSingleCephMds200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getNodesSingleCephMds_200_response_data_inner")]
    public partial class GetNodesSingleCephMds200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleCephMds200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="addr">addr.</param>
        /// <param name="host">host.</param>
        /// <param name="name">The name (ID) for the MDS.</param>
        /// <param name="rank">rank.</param>
        /// <param name="standbyReplay">If true, the standby MDS is polling the active MDS for faster recovery (hot standby)..</param>
        /// <param name="state">State of the MDS.</param>
        public GetNodesSingleCephMds200ResponseDataInner(string addr = default(string), string host = default(string), string name = default(string), Int64 rank = default(Int64), Int64 standbyReplay = default(Int64), string state = default(string))
        {
            this.Addr = addr;
            this.Host = host;
            this.Name = name;
            this.Rank = rank;
            this.StandbyReplay = standbyReplay;
            this.State = state;
        }

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

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

        /// <summary>
        /// The name (ID) for the MDS
        /// </summary>
        /// <value>The name (ID) for the MDS</value>
        [DataMember(Name = "name", EmitDefaultValue = false)]
        public string Name { get; set; }

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

        /// <summary>
        /// If true, the standby MDS is polling the active MDS for faster recovery (hot standby).
        /// </summary>
        /// <value>If true, the standby MDS is polling the active MDS for faster recovery (hot standby).</value>
        [DataMember(Name = "standby_replay", EmitDefaultValue = false)]
        public Int64 StandbyReplay { get; set; }

        /// <summary>
        /// State of the MDS
        /// </summary>
        /// <value>State of the MDS</value>
        [DataMember(Name = "state", EmitDefaultValue = false)]
        public string State { 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 GetNodesSingleCephMds200ResponseDataInner {\n");
            sb.Append("  Addr: ").Append(Addr).Append("\n");
            sb.Append("  Host: ").Append(Host).Append("\n");
            sb.Append("  Name: ").Append(Name).Append("\n");
            sb.Append("  Rank: ").Append(Rank).Append("\n");
            sb.Append("  StandbyReplay: ").Append(StandbyReplay).Append("\n");
            sb.Append("  State: ").Append(State).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;
        }
    }

}
