/*
 * 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>
    /// CreateClusterJobsRealmsyncSingleRequest
    /// </summary>
    [DataContract(Name = "CreateClusterJobsRealmsyncSingleRequest")]
    public partial class CreateClusterJobsRealmsyncSingleRequest : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateClusterJobsRealmsyncSingleRequest" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected CreateClusterJobsRealmsyncSingleRequest() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateClusterJobsRealmsyncSingleRequest" /> class.
        /// </summary>
        /// <param name="comment">comment.</param>
        /// <param name="enableNew">enableNew.</param>
        /// <param name="enabled">enabled.</param>
        /// <param name="realm">realm.</param>
        /// <param name="removeVanished">removeVanished.</param>
        /// <param name="schedule">schedule (required).</param>
        /// <param name="scope">scope.</param>
        public CreateClusterJobsRealmsyncSingleRequest(string comment = default(string), bool enableNew = default(bool), bool enabled = default(bool), string realm = default(string), string removeVanished = default(string), string schedule = default(string), string scope = default(string))
        {
            // to ensure "schedule" is required (not null)
            if (schedule == null)
            {
                throw new ArgumentNullException("schedule is a required property for CreateClusterJobsRealmsyncSingleRequest and cannot be null");
            }
            this.Schedule = schedule;
            this.Comment = comment;
            this.EnableNew = enableNew;
            this.Enabled = enabled;
            this.Realm = realm;
            this.RemoveVanished = removeVanished;
            this.Scope = scope;
        }

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

        /// <summary>
        /// Gets or Sets EnableNew
        /// </summary>
        [DataMember(Name = "enable-new", EmitDefaultValue = true)]
        public bool EnableNew { get; set; }

        /// <summary>
        /// Gets or Sets Enabled
        /// </summary>
        [DataMember(Name = "enabled", EmitDefaultValue = true)]
        public bool Enabled { get; set; }

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

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

        /// <summary>
        /// Gets or Sets Schedule
        /// </summary>
        [DataMember(Name = "schedule", IsRequired = true, EmitDefaultValue = true)]
        public string Schedule { get; set; }

        /// <summary>
        /// Gets or Sets Scope
        /// </summary>
        [DataMember(Name = "scope", EmitDefaultValue = false)]
        public string Scope { 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 CreateClusterJobsRealmsyncSingleRequest {\n");
            sb.Append("  Comment: ").Append(Comment).Append("\n");
            sb.Append("  EnableNew: ").Append(EnableNew).Append("\n");
            sb.Append("  Enabled: ").Append(Enabled).Append("\n");
            sb.Append("  Realm: ").Append(Realm).Append("\n");
            sb.Append("  RemoveVanished: ").Append(RemoveVanished).Append("\n");
            sb.Append("  Schedule: ").Append(Schedule).Append("\n");
            sb.Append("  Scope: ").Append(Scope).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;
        }
    }

}
