/*
 * 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>
    /// GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner
    /// </summary>
    [DataContract(Name = "getClusterBackupSingleIncludedvolumes_200_response_data_children_inner")]
    public partial class GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner" /> class.
        /// </summary>
        /// <param name="children">The volumes of the guest with the information if they will be included in backups..</param>
        /// <param name="id">VMID of the guest..</param>
        /// <param name="name">Name of the guest.</param>
        /// <param name="type">Type of the guest, VM, CT or unknown for removed but not purged guests..</param>
        public GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner(List<GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner> children = default(List<GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner>), Int64 id = default(Int64), string name = default(string), string type = default(string))
        {
            this.Children = children;
            this.Id = id;
            this.Name = name;
            this.Type = type;
        }

        /// <summary>
        /// The volumes of the guest with the information if they will be included in backups.
        /// </summary>
        /// <value>The volumes of the guest with the information if they will be included in backups.</value>
        [DataMember(Name = "children", EmitDefaultValue = false)]
        public List<GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner> Children { get; set; }

        /// <summary>
        /// VMID of the guest.
        /// </summary>
        /// <value>VMID of the guest.</value>
        [DataMember(Name = "id", EmitDefaultValue = false)]
        public Int64 Id { get; set; }

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

        /// <summary>
        /// Type of the guest, VM, CT or unknown for removed but not purged guests.
        /// </summary>
        /// <value>Type of the guest, VM, CT or unknown for removed but not purged guests.</value>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { 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 GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner {\n");
            sb.Append("  Children: ").Append(Children).Append("\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Name: ").Append(Name).Append("\n");
            sb.Append("  Type: ").Append(Type).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;
        }
    }

}
