/*
 * 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>
    /// MigrateVM200ResponseData
    /// </summary>
    [DataContract(Name = "migrateVM_200_response_data")]
    public partial class MigrateVM200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MigrateVM200ResponseData" /> class.
        /// </summary>
        /// <param name="allowedNodes">List of nodes allowed for migration..</param>
        /// <param name="dependentHaResources">HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM..</param>
        /// <param name="hasDbusVmstate">Whether the VM host supports migrating additional VM state, such as conntrack entries..</param>
        /// <param name="localDisks">List local disks including CD-Rom, unused and not referenced disks.</param>
        /// <param name="localResources">List local resources (e.g. pci, usb) that block migration..</param>
        /// <param name="mappedResourceInfo">Object of mapped resources with additional information such if they&#39;re live migratable..</param>
        /// <param name="mappedResources">List of mapped resources e.g. pci, usb. Deprecated, use &#39;mapped-resource-info&#39; instead..</param>
        /// <param name="notAllowedNodes">notAllowedNodes.</param>
        /// <param name="running">Determines if the VM is running..</param>
        public MigrateVM200ResponseData(List<string> allowedNodes = default(List<string>), List<string> dependentHaResources = default(List<string>), Int64 hasDbusVmstate = default(Int64), List<MigrateVM200ResponseDataLocalDisksInner> localDisks = default(List<MigrateVM200ResponseDataLocalDisksInner>), List<string> localResources = default(List<string>), Object mappedResourceInfo = default(Object), List<string> mappedResources = default(List<string>), MigrateVM200ResponseDataNotAllowedNodes notAllowedNodes = default(MigrateVM200ResponseDataNotAllowedNodes), Int64 running = default(Int64))
        {
            this.AllowedNodes = allowedNodes;
            this.DependentHaResources = dependentHaResources;
            this.HasDbusVmstate = hasDbusVmstate;
            this.LocalDisks = localDisks;
            this.LocalResources = localResources;
            this.MappedResourceInfo = mappedResourceInfo;
            this.MappedResources = mappedResources;
            this.NotAllowedNodes = notAllowedNodes;
            this.Running = running;
        }

        /// <summary>
        /// List of nodes allowed for migration.
        /// </summary>
        /// <value>List of nodes allowed for migration.</value>
        [DataMember(Name = "allowed_nodes", EmitDefaultValue = false)]
        public List<string> AllowedNodes { get; set; }

        /// <summary>
        /// HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM.
        /// </summary>
        /// <value>HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM.</value>
        [DataMember(Name = "dependent-ha-resources", EmitDefaultValue = false)]
        public List<string> DependentHaResources { get; set; }

        /// <summary>
        /// Whether the VM host supports migrating additional VM state, such as conntrack entries.
        /// </summary>
        /// <value>Whether the VM host supports migrating additional VM state, such as conntrack entries.</value>
        [DataMember(Name = "has-dbus-vmstate", EmitDefaultValue = false)]
        public Int64 HasDbusVmstate { get; set; }

        /// <summary>
        /// List local disks including CD-Rom, unused and not referenced disks
        /// </summary>
        /// <value>List local disks including CD-Rom, unused and not referenced disks</value>
        [DataMember(Name = "local_disks", EmitDefaultValue = false)]
        public List<MigrateVM200ResponseDataLocalDisksInner> LocalDisks { get; set; }

        /// <summary>
        /// List local resources (e.g. pci, usb) that block migration.
        /// </summary>
        /// <value>List local resources (e.g. pci, usb) that block migration.</value>
        [DataMember(Name = "local_resources", EmitDefaultValue = false)]
        public List<string> LocalResources { get; set; }

        /// <summary>
        /// Object of mapped resources with additional information such if they&#39;re live migratable.
        /// </summary>
        /// <value>Object of mapped resources with additional information such if they&#39;re live migratable.</value>
        [DataMember(Name = "mapped-resource-info", EmitDefaultValue = false)]
        public Object MappedResourceInfo { get; set; }

        /// <summary>
        /// List of mapped resources e.g. pci, usb. Deprecated, use &#39;mapped-resource-info&#39; instead.
        /// </summary>
        /// <value>List of mapped resources e.g. pci, usb. Deprecated, use &#39;mapped-resource-info&#39; instead.</value>
        [DataMember(Name = "mapped-resources", EmitDefaultValue = false)]
        public List<string> MappedResources { get; set; }

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

        /// <summary>
        /// Determines if the VM is running.
        /// </summary>
        /// <value>Determines if the VM is running.</value>
        [DataMember(Name = "running", EmitDefaultValue = false)]
        public Int64 Running { 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 MigrateVM200ResponseData {\n");
            sb.Append("  AllowedNodes: ").Append(AllowedNodes).Append("\n");
            sb.Append("  DependentHaResources: ").Append(DependentHaResources).Append("\n");
            sb.Append("  HasDbusVmstate: ").Append(HasDbusVmstate).Append("\n");
            sb.Append("  LocalDisks: ").Append(LocalDisks).Append("\n");
            sb.Append("  LocalResources: ").Append(LocalResources).Append("\n");
            sb.Append("  MappedResourceInfo: ").Append(MappedResourceInfo).Append("\n");
            sb.Append("  MappedResources: ").Append(MappedResources).Append("\n");
            sb.Append("  NotAllowedNodes: ").Append(NotAllowedNodes).Append("\n");
            sb.Append("  Running: ").Append(Running).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;
        }
    }

}
