/*
 * 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>
    /// MigrateVM200ResponseDataLocalDisksInner
    /// </summary>
    [DataContract(Name = "migrateVM_200_response_data_local_disks_inner")]
    public partial class MigrateVM200ResponseDataLocalDisksInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MigrateVM200ResponseDataLocalDisksInner" /> class.
        /// </summary>
        /// <param name="cdrom">True if the disk is a cdrom..</param>
        /// <param name="isUnused">True if the disk is unused..</param>
        /// <param name="size">The size of the disk in bytes..</param>
        /// <param name="volid">The volid of the disk..</param>
        public MigrateVM200ResponseDataLocalDisksInner(Int64 cdrom = default(Int64), Int64 isUnused = default(Int64), Int64 size = default(Int64), string volid = default(string))
        {
            this.Cdrom = cdrom;
            this.IsUnused = isUnused;
            this.Size = size;
            this.Volid = volid;
        }

        /// <summary>
        /// True if the disk is a cdrom.
        /// </summary>
        /// <value>True if the disk is a cdrom.</value>
        [DataMember(Name = "cdrom", EmitDefaultValue = false)]
        public Int64 Cdrom { get; set; }

        /// <summary>
        /// True if the disk is unused.
        /// </summary>
        /// <value>True if the disk is unused.</value>
        [DataMember(Name = "is_unused", EmitDefaultValue = false)]
        public Int64 IsUnused { get; set; }

        /// <summary>
        /// The size of the disk in bytes.
        /// </summary>
        /// <value>The size of the disk in bytes.</value>
        [DataMember(Name = "size", EmitDefaultValue = false)]
        public Int64 Size { get; set; }

        /// <summary>
        /// The volid of the disk.
        /// </summary>
        /// <value>The volid of the disk.</value>
        [DataMember(Name = "volid", EmitDefaultValue = false)]
        public string Volid { 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 MigrateVM200ResponseDataLocalDisksInner {\n");
            sb.Append("  Cdrom: ").Append(Cdrom).Append("\n");
            sb.Append("  IsUnused: ").Append(IsUnused).Append("\n");
            sb.Append("  Size: ").Append(Size).Append("\n");
            sb.Append("  Volid: ").Append(Volid).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;
        }
    }

}
