/*
 * 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>
    /// GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getNodesSingleCapabilitiesQemuCpu_200_response_data_inner")]
    public partial class GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="custom">True if this is a custom CPU model..</param>
        /// <param name="name">Name of the CPU model. Identifies it for subsequent API calls. Prefixed with &#39;custom-&#39; for custom models..</param>
        /// <param name="vendor">CPU vendor visible to the guest when this model is selected. Vendor of &#39;reported-model&#39; in case of custom models..</param>
        public GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner(Int64 custom = default(Int64), string name = default(string), string vendor = default(string))
        {
            this.Custom = custom;
            this.Name = name;
            this.Vendor = vendor;
        }

        /// <summary>
        /// True if this is a custom CPU model.
        /// </summary>
        /// <value>True if this is a custom CPU model.</value>
        [DataMember(Name = "custom", EmitDefaultValue = false)]
        public Int64 Custom { get; set; }

        /// <summary>
        /// Name of the CPU model. Identifies it for subsequent API calls. Prefixed with &#39;custom-&#39; for custom models.
        /// </summary>
        /// <value>Name of the CPU model. Identifies it for subsequent API calls. Prefixed with &#39;custom-&#39; for custom models.</value>
        [DataMember(Name = "name", EmitDefaultValue = false)]
        public string Name { get; set; }

        /// <summary>
        /// CPU vendor visible to the guest when this model is selected. Vendor of &#39;reported-model&#39; in case of custom models.
        /// </summary>
        /// <value>CPU vendor visible to the guest when this model is selected. Vendor of &#39;reported-model&#39; in case of custom models.</value>
        [DataMember(Name = "vendor", EmitDefaultValue = false)]
        public string Vendor { 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 GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner {\n");
            sb.Append("  Custom: ").Append(Custom).Append("\n");
            sb.Append("  Name: ").Append(Name).Append("\n");
            sb.Append("  Vendor: ").Append(Vendor).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;
        }
    }

}
