/*
 * 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>
    /// GetAccessUsersSingle200ResponseData
    /// </summary>
    [DataContract(Name = "getAccessUsersSingle_200_response_data")]
    public partial class GetAccessUsersSingle200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetAccessUsersSingle200ResponseData" /> class.
        /// </summary>
        /// <param name="comment">comment.</param>
        /// <param name="email">email.</param>
        /// <param name="enable">Enable the account (default). You can set this to &#39;0&#39; to disable the account.</param>
        /// <param name="expire">Account expiration date (seconds since epoch). &#39;0&#39; means no expiration date..</param>
        /// <param name="firstname">firstname.</param>
        /// <param name="groups">groups.</param>
        /// <param name="keys">Keys for two factor auth (yubico)..</param>
        /// <param name="lastname">lastname.</param>
        /// <param name="tokens">tokens.</param>
        public GetAccessUsersSingle200ResponseData(string comment = default(string), string email = default(string), Int64 enable = default(Int64), Int64 expire = default(Int64), string firstname = default(string), List<string> groups = default(List<string>), string keys = default(string), string lastname = default(string), Object tokens = default(Object))
        {
            this.Comment = comment;
            this.Email = email;
            this.Enable = enable;
            this.Expire = expire;
            this.Firstname = firstname;
            this.Groups = groups;
            this.Keys = keys;
            this.Lastname = lastname;
            this.Tokens = tokens;
        }

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

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

        /// <summary>
        /// Enable the account (default). You can set this to &#39;0&#39; to disable the account
        /// </summary>
        /// <value>Enable the account (default). You can set this to &#39;0&#39; to disable the account</value>
        [DataMember(Name = "enable", EmitDefaultValue = false)]
        public Int64 Enable { get; set; }

        /// <summary>
        /// Account expiration date (seconds since epoch). &#39;0&#39; means no expiration date.
        /// </summary>
        /// <value>Account expiration date (seconds since epoch). &#39;0&#39; means no expiration date.</value>
        [DataMember(Name = "expire", EmitDefaultValue = false)]
        public Int64 Expire { get; set; }

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

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

        /// <summary>
        /// Keys for two factor auth (yubico).
        /// </summary>
        /// <value>Keys for two factor auth (yubico).</value>
        [DataMember(Name = "keys", EmitDefaultValue = false)]
        public string Keys { get; set; }

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

        /// <summary>
        /// Gets or Sets Tokens
        /// </summary>
        [DataMember(Name = "tokens", EmitDefaultValue = false)]
        public Object Tokens { 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 GetAccessUsersSingle200ResponseData {\n");
            sb.Append("  Comment: ").Append(Comment).Append("\n");
            sb.Append("  Email: ").Append(Email).Append("\n");
            sb.Append("  Enable: ").Append(Enable).Append("\n");
            sb.Append("  Expire: ").Append(Expire).Append("\n");
            sb.Append("  Firstname: ").Append(Firstname).Append("\n");
            sb.Append("  Groups: ").Append(Groups).Append("\n");
            sb.Append("  Keys: ").Append(Keys).Append("\n");
            sb.Append("  Lastname: ").Append(Lastname).Append("\n");
            sb.Append("  Tokens: ").Append(Tokens).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;
        }
    }

}
