/*
 * 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>
    /// GetAccessUsers200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getAccessUsers_200_response_data_inner")]
    public partial class GetAccessUsers200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetAccessUsers200ResponseDataInner" /> 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="realmType">The type of the users realm.</param>
        /// <param name="tfaLockedUntil">Contains a timestamp until when a user is locked out of 2nd factors..</param>
        /// <param name="tokens">tokens.</param>
        /// <param name="totpLocked">True if the user is currently locked out of TOTP factors..</param>
        /// <param name="userid">Full User ID, in the &#x60;name@realm&#x60; format..</param>
        public GetAccessUsers200ResponseDataInner(string comment = default(string), string email = default(string), Int64 enable = default(Int64), Int64 expire = default(Int64), string firstname = default(string), string groups = default(string), string keys = default(string), string lastname = default(string), string realmType = default(string), Int64 tfaLockedUntil = default(Int64), List<GetAccessUsers200ResponseDataInnerTokensInner> tokens = default(List<GetAccessUsers200ResponseDataInnerTokensInner>), Int64 totpLocked = default(Int64), string userid = default(string))
        {
            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.RealmType = realmType;
            this.TfaLockedUntil = tfaLockedUntil;
            this.Tokens = tokens;
            this.TotpLocked = totpLocked;
            this.Userid = userid;
        }

        /// <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 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>
        /// The type of the users realm
        /// </summary>
        /// <value>The type of the users realm</value>
        [DataMember(Name = "realm-type", EmitDefaultValue = false)]
        public string RealmType { get; set; }

        /// <summary>
        /// Contains a timestamp until when a user is locked out of 2nd factors.
        /// </summary>
        /// <value>Contains a timestamp until when a user is locked out of 2nd factors.</value>
        [DataMember(Name = "tfa-locked-until", EmitDefaultValue = false)]
        public Int64 TfaLockedUntil { get; set; }

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

        /// <summary>
        /// True if the user is currently locked out of TOTP factors.
        /// </summary>
        /// <value>True if the user is currently locked out of TOTP factors.</value>
        [DataMember(Name = "totp-locked", EmitDefaultValue = false)]
        public Int64 TotpLocked { get; set; }

        /// <summary>
        /// Full User ID, in the &#x60;name@realm&#x60; format.
        /// </summary>
        /// <value>Full User ID, in the &#x60;name@realm&#x60; format.</value>
        [DataMember(Name = "userid", EmitDefaultValue = false)]
        public string Userid { 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 GetAccessUsers200ResponseDataInner {\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("  RealmType: ").Append(RealmType).Append("\n");
            sb.Append("  TfaLockedUntil: ").Append(TfaLockedUntil).Append("\n");
            sb.Append("  Tokens: ").Append(Tokens).Append("\n");
            sb.Append("  TotpLocked: ").Append(TotpLocked).Append("\n");
            sb.Append("  Userid: ").Append(Userid).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;
        }
    }

}
