/*
 * 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>
    /// CreateClusterAcmePluginsRequest
    /// </summary>
    [DataContract(Name = "CreateClusterAcmePluginsRequest")]
    public partial class CreateClusterAcmePluginsRequest : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateClusterAcmePluginsRequest" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected CreateClusterAcmePluginsRequest() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateClusterAcmePluginsRequest" /> class.
        /// </summary>
        /// <param name="api">api.</param>
        /// <param name="data">data.</param>
        /// <param name="disable">disable.</param>
        /// <param name="id">id (required).</param>
        /// <param name="nodes">nodes.</param>
        /// <param name="type">type (required).</param>
        /// <param name="validationDelay">validationDelay.</param>
        public CreateClusterAcmePluginsRequest(string api = default(string), string data = default(string), bool disable = default(bool), string id = default(string), string nodes = default(string), string type = default(string), int validationDelay = default(int))
        {
            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new ArgumentNullException("id is a required property for CreateClusterAcmePluginsRequest and cannot be null");
            }
            this.Id = id;
            // to ensure "type" is required (not null)
            if (type == null)
            {
                throw new ArgumentNullException("type is a required property for CreateClusterAcmePluginsRequest and cannot be null");
            }
            this.Type = type;
            this.Api = api;
            this.Data = data;
            this.Disable = disable;
            this.Nodes = nodes;
            this.ValidationDelay = validationDelay;
        }

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

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

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

        /// <summary>
        /// Gets or Sets Id
        /// </summary>
        [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
        public string Id { get; set; }

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

        /// <summary>
        /// Gets or Sets Type
        /// </summary>
        [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
        public string Type { get; set; }

        /// <summary>
        /// Gets or Sets ValidationDelay
        /// </summary>
        [DataMember(Name = "validation-delay", EmitDefaultValue = false)]
        public int ValidationDelay { 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 CreateClusterAcmePluginsRequest {\n");
            sb.Append("  Api: ").Append(Api).Append("\n");
            sb.Append("  Data: ").Append(Data).Append("\n");
            sb.Append("  Disable: ").Append(Disable).Append("\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Nodes: ").Append(Nodes).Append("\n");
            sb.Append("  Type: ").Append(Type).Append("\n");
            sb.Append("  ValidationDelay: ").Append(ValidationDelay).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;
        }
    }

}
