/*
 * 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>
    /// GetNodesSingleQemuSingleAgentExecstatus200ResponseData
    /// </summary>
    [DataContract(Name = "getNodesSingleQemuSingleAgentExecstatus_200_response_data")]
    public partial class GetNodesSingleQemuSingleAgentExecstatus200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleQemuSingleAgentExecstatus200ResponseData" /> class.
        /// </summary>
        /// <param name="errData">stderr of the process.</param>
        /// <param name="errTruncated">true if stderr was not fully captured.</param>
        /// <param name="exitcode">process exit code if it was normally terminated..</param>
        /// <param name="exited">Tells if the given command has exited yet..</param>
        /// <param name="outData">stdout of the process.</param>
        /// <param name="outTruncated">true if stdout was not fully captured.</param>
        /// <param name="signal">signal number or exception code if the process was abnormally terminated..</param>
        public GetNodesSingleQemuSingleAgentExecstatus200ResponseData(string errData = default(string), Int64 errTruncated = default(Int64), Int64 exitcode = default(Int64), Int64 exited = default(Int64), string outData = default(string), Int64 outTruncated = default(Int64), Int64 signal = default(Int64))
        {
            this.ErrData = errData;
            this.ErrTruncated = errTruncated;
            this.Exitcode = exitcode;
            this.Exited = exited;
            this.OutData = outData;
            this.OutTruncated = outTruncated;
            this.Signal = signal;
        }

        /// <summary>
        /// stderr of the process
        /// </summary>
        /// <value>stderr of the process</value>
        [DataMember(Name = "err-data", EmitDefaultValue = false)]
        public string ErrData { get; set; }

        /// <summary>
        /// true if stderr was not fully captured
        /// </summary>
        /// <value>true if stderr was not fully captured</value>
        [DataMember(Name = "err-truncated", EmitDefaultValue = false)]
        public Int64 ErrTruncated { get; set; }

        /// <summary>
        /// process exit code if it was normally terminated.
        /// </summary>
        /// <value>process exit code if it was normally terminated.</value>
        [DataMember(Name = "exitcode", EmitDefaultValue = false)]
        public Int64 Exitcode { get; set; }

        /// <summary>
        /// Tells if the given command has exited yet.
        /// </summary>
        /// <value>Tells if the given command has exited yet.</value>
        [DataMember(Name = "exited", EmitDefaultValue = false)]
        public Int64 Exited { get; set; }

        /// <summary>
        /// stdout of the process
        /// </summary>
        /// <value>stdout of the process</value>
        [DataMember(Name = "out-data", EmitDefaultValue = false)]
        public string OutData { get; set; }

        /// <summary>
        /// true if stdout was not fully captured
        /// </summary>
        /// <value>true if stdout was not fully captured</value>
        [DataMember(Name = "out-truncated", EmitDefaultValue = false)]
        public Int64 OutTruncated { get; set; }

        /// <summary>
        /// signal number or exception code if the process was abnormally terminated.
        /// </summary>
        /// <value>signal number or exception code if the process was abnormally terminated.</value>
        [DataMember(Name = "signal", EmitDefaultValue = false)]
        public Int64 Signal { 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 GetNodesSingleQemuSingleAgentExecstatus200ResponseData {\n");
            sb.Append("  ErrData: ").Append(ErrData).Append("\n");
            sb.Append("  ErrTruncated: ").Append(ErrTruncated).Append("\n");
            sb.Append("  Exitcode: ").Append(Exitcode).Append("\n");
            sb.Append("  Exited: ").Append(Exited).Append("\n");
            sb.Append("  OutData: ").Append(OutData).Append("\n");
            sb.Append("  OutTruncated: ").Append(OutTruncated).Append("\n");
            sb.Append("  Signal: ").Append(Signal).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;
        }
    }

}
