/*
 * 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>
    /// GetNodesSingleTime200ResponseData
    /// </summary>
    [DataContract(Name = "getNodesSingleTime_200_response_data")]
    public partial class GetNodesSingleTime200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleTime200ResponseData" /> class.
        /// </summary>
        /// <param name="localtime">Seconds since 1970-01-01 00:00:00 (local time).</param>
        /// <param name="time">Seconds since 1970-01-01 00:00:00 UTC..</param>
        /// <param name="timezone">Time zone.</param>
        public GetNodesSingleTime200ResponseData(Int64 localtime = default(Int64), Int64 time = default(Int64), string timezone = default(string))
        {
            this.Localtime = localtime;
            this.Time = time;
            this.Timezone = timezone;
        }

        /// <summary>
        /// Seconds since 1970-01-01 00:00:00 (local time)
        /// </summary>
        /// <value>Seconds since 1970-01-01 00:00:00 (local time)</value>
        [DataMember(Name = "localtime", EmitDefaultValue = false)]
        public Int64 Localtime { get; set; }

        /// <summary>
        /// Seconds since 1970-01-01 00:00:00 UTC.
        /// </summary>
        /// <value>Seconds since 1970-01-01 00:00:00 UTC.</value>
        [DataMember(Name = "time", EmitDefaultValue = false)]
        public Int64 Time { get; set; }

        /// <summary>
        /// Time zone
        /// </summary>
        /// <value>Time zone</value>
        [DataMember(Name = "timezone", EmitDefaultValue = false)]
        public string Timezone { 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 GetNodesSingleTime200ResponseData {\n");
            sb.Append("  Localtime: ").Append(Localtime).Append("\n");
            sb.Append("  Time: ").Append(Time).Append("\n");
            sb.Append("  Timezone: ").Append(Timezone).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;
        }
    }

}
