/*
 * 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>
    /// GetNodeTasks200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getNodeTasks_200_response_data_inner")]
    public partial class GetNodeTasks200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodeTasks200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="endtime">endtime.</param>
        /// <param name="id">id.</param>
        /// <param name="node">node.</param>
        /// <param name="pid">pid.</param>
        /// <param name="pstart">pstart.</param>
        /// <param name="starttime">starttime.</param>
        /// <param name="status">status.</param>
        /// <param name="type">type.</param>
        /// <param name="upid">upid.</param>
        /// <param name="user">user.</param>
        public GetNodeTasks200ResponseDataInner(Int64 endtime = default(Int64), string id = default(string), string node = default(string), Int64 pid = default(Int64), Int64 pstart = default(Int64), Int64 starttime = default(Int64), string status = default(string), string type = default(string), string upid = default(string), string user = default(string))
        {
            this.Endtime = endtime;
            this.Id = id;
            this.Node = node;
            this.Pid = pid;
            this.Pstart = pstart;
            this.Starttime = starttime;
            this.Status = status;
            this.Type = type;
            this.Upid = upid;
            this.User = user;
        }

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

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

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

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

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

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

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

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

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

        /// <summary>
        /// Gets or Sets User
        /// </summary>
        [DataMember(Name = "user", EmitDefaultValue = false)]
        public string User { 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 GetNodeTasks200ResponseDataInner {\n");
            sb.Append("  Endtime: ").Append(Endtime).Append("\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Node: ").Append(Node).Append("\n");
            sb.Append("  Pid: ").Append(Pid).Append("\n");
            sb.Append("  Pstart: ").Append(Pstart).Append("\n");
            sb.Append("  Starttime: ").Append(Starttime).Append("\n");
            sb.Append("  Status: ").Append(Status).Append("\n");
            sb.Append("  Type: ").Append(Type).Append("\n");
            sb.Append("  Upid: ").Append(Upid).Append("\n");
            sb.Append("  User: ").Append(User).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;
        }
    }

}
