/*
 * 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>
    /// CreateAccessTicket200ResponseData
    /// </summary>
    [DataContract(Name = "createAccessTicket_200_response_data")]
    public partial class CreateAccessTicket200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateAccessTicket200ResponseData" /> class.
        /// </summary>
        /// <param name="cSRFPreventionToken">cSRFPreventionToken.</param>
        /// <param name="clustername">clustername.</param>
        /// <param name="ticket">ticket.</param>
        /// <param name="username">username.</param>
        public CreateAccessTicket200ResponseData(string cSRFPreventionToken = default(string), string clustername = default(string), string ticket = default(string), string username = default(string))
        {
            this.CSRFPreventionToken = cSRFPreventionToken;
            this.Clustername = clustername;
            this.Ticket = ticket;
            this.Username = username;
        }

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

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

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

        /// <summary>
        /// Gets or Sets Username
        /// </summary>
        [DataMember(Name = "username", EmitDefaultValue = false)]
        public string Username { 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 CreateAccessTicket200ResponseData {\n");
            sb.Append("  CSRFPreventionToken: ").Append(CSRFPreventionToken).Append("\n");
            sb.Append("  Clustername: ").Append(Clustername).Append("\n");
            sb.Append("  Ticket: ").Append(Ticket).Append("\n");
            sb.Append("  Username: ").Append(Username).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;
        }
    }

}
