/*
 * 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>
    /// GetClusterAcmePlugins200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getClusterAcmePlugins_200_response_data_inner")]
    public partial class GetClusterAcmePlugins200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterAcmePlugins200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="api">API plugin name.</param>
        /// <param name="data">DNS plugin data. (base64 encoded).</param>
        /// <param name="digest">Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications..</param>
        /// <param name="disable">Flag to disable the config..</param>
        /// <param name="nodes">List of cluster node names..</param>
        /// <param name="plugin">Unique identifier for ACME plugin instance..</param>
        /// <param name="type">ACME challenge type..</param>
        /// <param name="validationDelay">Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records..</param>
        public GetClusterAcmePlugins200ResponseDataInner(string api = default(string), string data = default(string), string digest = default(string), Int64 disable = default(Int64), string nodes = default(string), string plugin = default(string), string type = default(string), Int64 validationDelay = default(Int64))
        {
            this.Api = api;
            this.Data = data;
            this.Digest = digest;
            this.Disable = disable;
            this.Nodes = nodes;
            this.Plugin = plugin;
            this.Type = type;
            this.ValidationDelay = validationDelay;
        }

        /// <summary>
        /// API plugin name
        /// </summary>
        /// <value>API plugin name</value>
        [DataMember(Name = "api", EmitDefaultValue = false)]
        public string Api { get; set; }

        /// <summary>
        /// DNS plugin data. (base64 encoded)
        /// </summary>
        /// <value>DNS plugin data. (base64 encoded)</value>
        [DataMember(Name = "data", EmitDefaultValue = false)]
        public string Data { get; set; }

        /// <summary>
        /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
        /// </summary>
        /// <value>Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.</value>
        [DataMember(Name = "digest", EmitDefaultValue = false)]
        public string Digest { get; set; }

        /// <summary>
        /// Flag to disable the config.
        /// </summary>
        /// <value>Flag to disable the config.</value>
        [DataMember(Name = "disable", EmitDefaultValue = false)]
        public Int64 Disable { get; set; }

        /// <summary>
        /// List of cluster node names.
        /// </summary>
        /// <value>List of cluster node names.</value>
        [DataMember(Name = "nodes", EmitDefaultValue = false)]
        public string Nodes { get; set; }

        /// <summary>
        /// Unique identifier for ACME plugin instance.
        /// </summary>
        /// <value>Unique identifier for ACME plugin instance.</value>
        [DataMember(Name = "plugin", EmitDefaultValue = false)]
        public string Plugin { get; set; }

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

        /// <summary>
        /// Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.
        /// </summary>
        /// <value>Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.</value>
        [DataMember(Name = "validation-delay", EmitDefaultValue = false)]
        public Int64 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 GetClusterAcmePlugins200ResponseDataInner {\n");
            sb.Append("  Api: ").Append(Api).Append("\n");
            sb.Append("  Data: ").Append(Data).Append("\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  Disable: ").Append(Disable).Append("\n");
            sb.Append("  Nodes: ").Append(Nodes).Append("\n");
            sb.Append("  Plugin: ").Append(Plugin).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;
        }
    }

}
