/*
 * 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>
    /// GetNodesSingleServices200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getNodesSingleServices_200_response_data_inner")]
    public partial class GetNodesSingleServices200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleServices200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="activeState">Current state of the service process (systemd ActiveState)..</param>
        /// <param name="desc">Description of the service..</param>
        /// <param name="name">Short identifier for the service (e.g., \&quot;pveproxy\&quot;)..</param>
        /// <param name="service">Systemd unit name (e.g., pveproxy)..</param>
        /// <param name="state">Execution status of the service (systemd SubState)..</param>
        /// <param name="unitState">Whether the service is enabled (systemd UnitFileState)..</param>
        public GetNodesSingleServices200ResponseDataInner(string activeState = default(string), string desc = default(string), string name = default(string), string service = default(string), string state = default(string), string unitState = default(string))
        {
            this.ActiveState = activeState;
            this.Desc = desc;
            this.Name = name;
            this.Service = service;
            this.State = state;
            this.UnitState = unitState;
        }

        /// <summary>
        /// Current state of the service process (systemd ActiveState).
        /// </summary>
        /// <value>Current state of the service process (systemd ActiveState).</value>
        [DataMember(Name = "active-state", EmitDefaultValue = false)]
        public string ActiveState { get; set; }

        /// <summary>
        /// Description of the service.
        /// </summary>
        /// <value>Description of the service.</value>
        [DataMember(Name = "desc", EmitDefaultValue = false)]
        public string Desc { get; set; }

        /// <summary>
        /// Short identifier for the service (e.g., \&quot;pveproxy\&quot;).
        /// </summary>
        /// <value>Short identifier for the service (e.g., \&quot;pveproxy\&quot;).</value>
        [DataMember(Name = "name", EmitDefaultValue = false)]
        public string Name { get; set; }

        /// <summary>
        /// Systemd unit name (e.g., pveproxy).
        /// </summary>
        /// <value>Systemd unit name (e.g., pveproxy).</value>
        [DataMember(Name = "service", EmitDefaultValue = false)]
        public string Service { get; set; }

        /// <summary>
        /// Execution status of the service (systemd SubState).
        /// </summary>
        /// <value>Execution status of the service (systemd SubState).</value>
        [DataMember(Name = "state", EmitDefaultValue = false)]
        public string State { get; set; }

        /// <summary>
        /// Whether the service is enabled (systemd UnitFileState).
        /// </summary>
        /// <value>Whether the service is enabled (systemd UnitFileState).</value>
        [DataMember(Name = "unit-state", EmitDefaultValue = false)]
        public string UnitState { 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 GetNodesSingleServices200ResponseDataInner {\n");
            sb.Append("  ActiveState: ").Append(ActiveState).Append("\n");
            sb.Append("  Desc: ").Append(Desc).Append("\n");
            sb.Append("  Name: ").Append(Name).Append("\n");
            sb.Append("  Service: ").Append(Service).Append("\n");
            sb.Append("  State: ").Append(State).Append("\n");
            sb.Append("  UnitState: ").Append(UnitState).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;
        }
    }

}
