/*
 * 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>
    /// GetNodesSingleAptRepositories200ResponseDataInfosInner
    /// </summary>
    [DataContract(Name = "getNodesSingleAptRepositories_200_response_data_infos_inner")]
    public partial class GetNodesSingleAptRepositories200ResponseDataInfosInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleAptRepositories200ResponseDataInfosInner" /> class.
        /// </summary>
        /// <param name="index">Index of the associated repository within the file..</param>
        /// <param name="kind">Kind of the information (e.g. warning)..</param>
        /// <param name="message">Information message..</param>
        /// <param name="path">Path to the associated file..</param>
        /// <param name="property">Property from which the info originates..</param>
        public GetNodesSingleAptRepositories200ResponseDataInfosInner(string index = default(string), string kind = default(string), string message = default(string), string path = default(string), string property = default(string))
        {
            this.Index = index;
            this.Kind = kind;
            this.Message = message;
            this.Path = path;
            this.Property = property;
        }

        /// <summary>
        /// Index of the associated repository within the file.
        /// </summary>
        /// <value>Index of the associated repository within the file.</value>
        [DataMember(Name = "index", EmitDefaultValue = false)]
        public string Index { get; set; }

        /// <summary>
        /// Kind of the information (e.g. warning).
        /// </summary>
        /// <value>Kind of the information (e.g. warning).</value>
        [DataMember(Name = "kind", EmitDefaultValue = false)]
        public string Kind { get; set; }

        /// <summary>
        /// Information message.
        /// </summary>
        /// <value>Information message.</value>
        [DataMember(Name = "message", EmitDefaultValue = false)]
        public string Message { get; set; }

        /// <summary>
        /// Path to the associated file.
        /// </summary>
        /// <value>Path to the associated file.</value>
        [DataMember(Name = "path", EmitDefaultValue = false)]
        public string Path { get; set; }

        /// <summary>
        /// Property from which the info originates.
        /// </summary>
        /// <value>Property from which the info originates.</value>
        [DataMember(Name = "property", EmitDefaultValue = false)]
        public string Property { 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 GetNodesSingleAptRepositories200ResponseDataInfosInner {\n");
            sb.Append("  Index: ").Append(Index).Append("\n");
            sb.Append("  Kind: ").Append(Kind).Append("\n");
            sb.Append("  Message: ").Append(Message).Append("\n");
            sb.Append("  Path: ").Append(Path).Append("\n");
            sb.Append("  Property: ").Append(Property).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;
        }
    }

}
