/*
 * 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>
    /// TFA Entry.
    /// </summary>
    [DataContract(Name = "getAccessTfa_200_response_data_inner_entries_inner")]
    public partial class GetAccessTfa200ResponseDataInnerEntriesInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetAccessTfa200ResponseDataInnerEntriesInner" /> class.
        /// </summary>
        /// <param name="created">Creation time of this entry as unix epoch..</param>
        /// <param name="description">User chosen description for this entry..</param>
        /// <param name="enable">Whether this TFA entry is currently enabled..</param>
        /// <param name="id">The id used to reference this entry..</param>
        /// <param name="type">TFA Entry Type..</param>
        public GetAccessTfa200ResponseDataInnerEntriesInner(Int64 created = default(Int64), string description = default(string), Int64 enable = default(Int64), string id = default(string), string type = default(string))
        {
            this.Created = created;
            this.Description = description;
            this.Enable = enable;
            this.Id = id;
            this.Type = type;
        }

        /// <summary>
        /// Creation time of this entry as unix epoch.
        /// </summary>
        /// <value>Creation time of this entry as unix epoch.</value>
        [DataMember(Name = "created", EmitDefaultValue = false)]
        public Int64 Created { get; set; }

        /// <summary>
        /// User chosen description for this entry.
        /// </summary>
        /// <value>User chosen description for this entry.</value>
        [DataMember(Name = "description", EmitDefaultValue = false)]
        public string Description { get; set; }

        /// <summary>
        /// Whether this TFA entry is currently enabled.
        /// </summary>
        /// <value>Whether this TFA entry is currently enabled.</value>
        [DataMember(Name = "enable", EmitDefaultValue = false)]
        public Int64 Enable { get; set; }

        /// <summary>
        /// The id used to reference this entry.
        /// </summary>
        /// <value>The id used to reference this entry.</value>
        [DataMember(Name = "id", EmitDefaultValue = false)]
        public string Id { get; set; }

        /// <summary>
        /// TFA Entry Type.
        /// </summary>
        /// <value>TFA Entry Type.</value>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { 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 GetAccessTfa200ResponseDataInnerEntriesInner {\n");
            sb.Append("  Created: ").Append(Created).Append("\n");
            sb.Append("  Description: ").Append(Description).Append("\n");
            sb.Append("  Enable: ").Append(Enable).Append("\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Type: ").Append(Type).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;
        }
    }

}
