/*
 * 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>
    /// GetNodesSingleSubscription200ResponseData
    /// </summary>
    [DataContract(Name = "getNodesSingleSubscription_200_response_data")]
    public partial class GetNodesSingleSubscription200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleSubscription200ResponseData" /> class.
        /// </summary>
        /// <param name="checktime">Timestamp of the last check done..</param>
        /// <param name="key">The subscription key, if set and permitted to access..</param>
        /// <param name="level">A short code for the subscription level..</param>
        /// <param name="message">A more human readable status message..</param>
        /// <param name="nextduedate">Next due date of the set subscription..</param>
        /// <param name="productname">Human readable productname of the set subscription..</param>
        /// <param name="regdate">Register date of the set subscription..</param>
        /// <param name="serverid">The server ID, if permitted to access..</param>
        /// <param name="signature">Signature for offline keys.</param>
        /// <param name="sockets">The number of sockets for this host..</param>
        /// <param name="status">The current subscription status..</param>
        /// <param name="url">URL to the web shop..</param>
        public GetNodesSingleSubscription200ResponseData(Int64 checktime = default(Int64), string key = default(string), string level = default(string), string message = default(string), string nextduedate = default(string), string productname = default(string), string regdate = default(string), string serverid = default(string), string signature = default(string), Int64 sockets = default(Int64), string status = default(string), string url = default(string))
        {
            this.Checktime = checktime;
            this.Key = key;
            this.Level = level;
            this.Message = message;
            this.Nextduedate = nextduedate;
            this.Productname = productname;
            this.Regdate = regdate;
            this.Serverid = serverid;
            this.Signature = signature;
            this.Sockets = sockets;
            this.Status = status;
            this.Url = url;
        }

        /// <summary>
        /// Timestamp of the last check done.
        /// </summary>
        /// <value>Timestamp of the last check done.</value>
        [DataMember(Name = "checktime", EmitDefaultValue = false)]
        public Int64 Checktime { get; set; }

        /// <summary>
        /// The subscription key, if set and permitted to access.
        /// </summary>
        /// <value>The subscription key, if set and permitted to access.</value>
        [DataMember(Name = "key", EmitDefaultValue = false)]
        public string Key { get; set; }

        /// <summary>
        /// A short code for the subscription level.
        /// </summary>
        /// <value>A short code for the subscription level.</value>
        [DataMember(Name = "level", EmitDefaultValue = false)]
        public string Level { get; set; }

        /// <summary>
        /// A more human readable status message.
        /// </summary>
        /// <value>A more human readable status message.</value>
        [DataMember(Name = "message", EmitDefaultValue = false)]
        public string Message { get; set; }

        /// <summary>
        /// Next due date of the set subscription.
        /// </summary>
        /// <value>Next due date of the set subscription.</value>
        [DataMember(Name = "nextduedate", EmitDefaultValue = false)]
        public string Nextduedate { get; set; }

        /// <summary>
        /// Human readable productname of the set subscription.
        /// </summary>
        /// <value>Human readable productname of the set subscription.</value>
        [DataMember(Name = "productname", EmitDefaultValue = false)]
        public string Productname { get; set; }

        /// <summary>
        /// Register date of the set subscription.
        /// </summary>
        /// <value>Register date of the set subscription.</value>
        [DataMember(Name = "regdate", EmitDefaultValue = false)]
        public string Regdate { get; set; }

        /// <summary>
        /// The server ID, if permitted to access.
        /// </summary>
        /// <value>The server ID, if permitted to access.</value>
        [DataMember(Name = "serverid", EmitDefaultValue = false)]
        public string Serverid { get; set; }

        /// <summary>
        /// Signature for offline keys
        /// </summary>
        /// <value>Signature for offline keys</value>
        [DataMember(Name = "signature", EmitDefaultValue = false)]
        public string Signature { get; set; }

        /// <summary>
        /// The number of sockets for this host.
        /// </summary>
        /// <value>The number of sockets for this host.</value>
        [DataMember(Name = "sockets", EmitDefaultValue = false)]
        public Int64 Sockets { get; set; }

        /// <summary>
        /// The current subscription status.
        /// </summary>
        /// <value>The current subscription status.</value>
        [DataMember(Name = "status", EmitDefaultValue = false)]
        public string Status { get; set; }

        /// <summary>
        /// URL to the web shop.
        /// </summary>
        /// <value>URL to the web shop.</value>
        [DataMember(Name = "url", EmitDefaultValue = false)]
        public string Url { 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 GetNodesSingleSubscription200ResponseData {\n");
            sb.Append("  Checktime: ").Append(Checktime).Append("\n");
            sb.Append("  Key: ").Append(Key).Append("\n");
            sb.Append("  Level: ").Append(Level).Append("\n");
            sb.Append("  Message: ").Append(Message).Append("\n");
            sb.Append("  Nextduedate: ").Append(Nextduedate).Append("\n");
            sb.Append("  Productname: ").Append(Productname).Append("\n");
            sb.Append("  Regdate: ").Append(Regdate).Append("\n");
            sb.Append("  Serverid: ").Append(Serverid).Append("\n");
            sb.Append("  Signature: ").Append(Signature).Append("\n");
            sb.Append("  Sockets: ").Append(Sockets).Append("\n");
            sb.Append("  Status: ").Append(Status).Append("\n");
            sb.Append("  Url: ").Append(Url).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;
        }
    }

}
