/*
 * 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>
    /// GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner
    /// </summary>
    [DataContract(Name = "getNodesSingleDisksZfsSingle_200_response_data_children_inner")]
    public partial class GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner" /> class.
        /// </summary>
        /// <param name="cksum">cksum.</param>
        /// <param name="msg">An optional message about the vdev..</param>
        /// <param name="name">The name of the vdev or section..</param>
        /// <param name="read">read.</param>
        /// <param name="state">The state of the vdev..</param>
        /// <param name="write">write.</param>
        public GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner(decimal cksum = default(decimal), string msg = default(string), string name = default(string), decimal read = default(decimal), string state = default(string), decimal write = default(decimal))
        {
            this.Cksum = cksum;
            this.Msg = msg;
            this.Name = name;
            this.Read = read;
            this.State = state;
            this.Write = write;
        }

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

        /// <summary>
        /// An optional message about the vdev.
        /// </summary>
        /// <value>An optional message about the vdev.</value>
        [DataMember(Name = "msg", EmitDefaultValue = false)]
        public string Msg { get; set; }

        /// <summary>
        /// The name of the vdev or section.
        /// </summary>
        /// <value>The name of the vdev or section.</value>
        [DataMember(Name = "name", EmitDefaultValue = false)]
        public string Name { get; set; }

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

        /// <summary>
        /// The state of the vdev.
        /// </summary>
        /// <value>The state of the vdev.</value>
        [DataMember(Name = "state", EmitDefaultValue = false)]
        public string State { get; set; }

        /// <summary>
        /// Gets or Sets Write
        /// </summary>
        [DataMember(Name = "write", EmitDefaultValue = false)]
        public decimal Write { 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 GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner {\n");
            sb.Append("  Cksum: ").Append(Cksum).Append("\n");
            sb.Append("  Msg: ").Append(Msg).Append("\n");
            sb.Append("  Name: ").Append(Name).Append("\n");
            sb.Append("  Read: ").Append(Read).Append("\n");
            sb.Append("  State: ").Append(State).Append("\n");
            sb.Append("  Write: ").Append(Write).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;
        }
    }

}
