/*
 * 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>
    /// GetAccessTfa200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getAccessTfa_200_response_data_inner")]
    public partial class GetAccessTfa200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetAccessTfa200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="entries">entries.</param>
        /// <param name="tfaLockedUntil">Contains a timestamp until when a user is locked out of 2nd factors..</param>
        /// <param name="totpLocked">True if the user is currently locked out of TOTP factors..</param>
        /// <param name="userid">User this entry belongs to..</param>
        public GetAccessTfa200ResponseDataInner(List<GetAccessTfa200ResponseDataInnerEntriesInner> entries = default(List<GetAccessTfa200ResponseDataInnerEntriesInner>), Int64 tfaLockedUntil = default(Int64), Int64 totpLocked = default(Int64), string userid = default(string))
        {
            this.Entries = entries;
            this.TfaLockedUntil = tfaLockedUntil;
            this.TotpLocked = totpLocked;
            this.Userid = userid;
        }

        /// <summary>
        /// Gets or Sets Entries
        /// </summary>
        [DataMember(Name = "entries", EmitDefaultValue = false)]
        public List<GetAccessTfa200ResponseDataInnerEntriesInner> Entries { 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>
        /// 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>
        /// User this entry belongs to.
        /// </summary>
        /// <value>User this entry belongs to.</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 GetAccessTfa200ResponseDataInner {\n");
            sb.Append("  Entries: ").Append(Entries).Append("\n");
            sb.Append("  TfaLockedUntil: ").Append(TfaLockedUntil).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;
        }
    }

}
