/*
 * 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>
    /// GetNodesSingleQemuSingleCloudinit200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getNodesSingleQemuSingleCloudinit_200_response_data_inner")]
    public partial class GetNodesSingleQemuSingleCloudinit200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleQemuSingleCloudinit200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="delete">Indicates a pending delete request if present and not 0..</param>
        /// <param name="key">Configuration option name..</param>
        /// <param name="pending">The new pending value..</param>
        /// <param name="value">Value as it was used to generate the current cloudinit image..</param>
        public GetNodesSingleQemuSingleCloudinit200ResponseDataInner(Int64 delete = default(Int64), string key = default(string), string pending = default(string), string value = default(string))
        {
            this.Delete = delete;
            this.Key = key;
            this.Pending = pending;
            this.Value = value;
        }

        /// <summary>
        /// Indicates a pending delete request if present and not 0.
        /// </summary>
        /// <value>Indicates a pending delete request if present and not 0.</value>
        [DataMember(Name = "delete", EmitDefaultValue = false)]
        public Int64 Delete { get; set; }

        /// <summary>
        /// Configuration option name.
        /// </summary>
        /// <value>Configuration option name.</value>
        [DataMember(Name = "key", EmitDefaultValue = false)]
        public string Key { get; set; }

        /// <summary>
        /// The new pending value.
        /// </summary>
        /// <value>The new pending value.</value>
        [DataMember(Name = "pending", EmitDefaultValue = false)]
        public string Pending { get; set; }

        /// <summary>
        /// Value as it was used to generate the current cloudinit image.
        /// </summary>
        /// <value>Value as it was used to generate the current cloudinit image.</value>
        [DataMember(Name = "value", EmitDefaultValue = false)]
        public string Value { 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 GetNodesSingleQemuSingleCloudinit200ResponseDataInner {\n");
            sb.Append("  Delete: ").Append(Delete).Append("\n");
            sb.Append("  Key: ").Append(Key).Append("\n");
            sb.Append("  Pending: ").Append(Pending).Append("\n");
            sb.Append("  Value: ").Append(Value).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;
        }
    }

}
