/*
 * 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>
    /// GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner
    /// </summary>
    [DataContract(Name = "getClusterBackupSingleIncludedvolumes_200_response_data_children_inner_children_inner")]
    public partial class GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner" /> class.
        /// </summary>
        /// <param name="id">Configuration key of the volume..</param>
        /// <param name="included">Whether the volume is included in the backup or not..</param>
        /// <param name="name">Name of the volume..</param>
        /// <param name="reason">The reason why the volume is included (or excluded)..</param>
        public GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner(string id = default(string), Int64 included = default(Int64), string name = default(string), string reason = default(string))
        {
            this.Id = id;
            this.Included = included;
            this.Name = name;
            this.Reason = reason;
        }

        /// <summary>
        /// Configuration key of the volume.
        /// </summary>
        /// <value>Configuration key of the volume.</value>
        [DataMember(Name = "id", EmitDefaultValue = false)]
        public string Id { get; set; }

        /// <summary>
        /// Whether the volume is included in the backup or not.
        /// </summary>
        /// <value>Whether the volume is included in the backup or not.</value>
        [DataMember(Name = "included", EmitDefaultValue = false)]
        public Int64 Included { get; set; }

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

        /// <summary>
        /// The reason why the volume is included (or excluded).
        /// </summary>
        /// <value>The reason why the volume is included (or excluded).</value>
        [DataMember(Name = "reason", EmitDefaultValue = false)]
        public string Reason { 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 GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner {\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Included: ").Append(Included).Append("\n");
            sb.Append("  Name: ").Append(Name).Append("\n");
            sb.Append("  Reason: ").Append(Reason).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;
        }
    }

}
