/*
 * 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>
    /// UnlinkVMDiskImagesRequest
    /// </summary>
    [DataContract(Name = "UnlinkVMDiskImagesRequest")]
    public partial class UnlinkVMDiskImagesRequest : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UnlinkVMDiskImagesRequest" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected UnlinkVMDiskImagesRequest() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="UnlinkVMDiskImagesRequest" /> class.
        /// </summary>
        /// <param name="force">force.</param>
        /// <param name="idlist">idlist (required).</param>
        public UnlinkVMDiskImagesRequest(bool force = default(bool), string idlist = default(string))
        {
            // to ensure "idlist" is required (not null)
            if (idlist == null)
            {
                throw new ArgumentNullException("idlist is a required property for UnlinkVMDiskImagesRequest and cannot be null");
            }
            this.Idlist = idlist;
            this.Force = force;
        }

        /// <summary>
        /// Gets or Sets Force
        /// </summary>
        [DataMember(Name = "force", EmitDefaultValue = true)]
        public bool Force { get; set; }

        /// <summary>
        /// Gets or Sets Idlist
        /// </summary>
        [DataMember(Name = "idlist", IsRequired = true, EmitDefaultValue = true)]
        public string Idlist { 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 UnlinkVMDiskImagesRequest {\n");
            sb.Append("  Force: ").Append(Force).Append("\n");
            sb.Append("  Idlist: ").Append(Idlist).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;
        }
    }

}
