/*
 * 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>
    /// GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getNodesSingleCapabilitiesQemuMachines_200_response_data_inner")]
    public partial class GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="changes">Notable changes of a version, currently only set for +pveX versions..</param>
        /// <param name="id">Full name of machine type and version..</param>
        /// <param name="type">The machine type..</param>
        /// <param name="varVersion">The machine version..</param>
        public GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner(string changes = default(string), string id = default(string), string type = default(string), string varVersion = default(string))
        {
            this.Changes = changes;
            this.Id = id;
            this.Type = type;
            this.VarVersion = varVersion;
        }

        /// <summary>
        /// Notable changes of a version, currently only set for +pveX versions.
        /// </summary>
        /// <value>Notable changes of a version, currently only set for +pveX versions.</value>
        [DataMember(Name = "changes", EmitDefaultValue = false)]
        public string Changes { get; set; }

        /// <summary>
        /// Full name of machine type and version.
        /// </summary>
        /// <value>Full name of machine type and version.</value>
        [DataMember(Name = "id", EmitDefaultValue = false)]
        public string Id { get; set; }

        /// <summary>
        /// The machine type.
        /// </summary>
        /// <value>The machine type.</value>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { get; set; }

        /// <summary>
        /// The machine version.
        /// </summary>
        /// <value>The machine version.</value>
        [DataMember(Name = "version", EmitDefaultValue = false)]
        public string VarVersion { 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 GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner {\n");
            sb.Append("  Changes: ").Append(Changes).Append("\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Type: ").Append(Type).Append("\n");
            sb.Append("  VarVersion: ").Append(VarVersion).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;
        }
    }

}
