/*
 * 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>
    /// GetClusterReplication200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getClusterReplication_200_response_data_inner")]
    public partial class GetClusterReplication200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterReplication200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="comment">Description..</param>
        /// <param name="disable">Flag to disable/deactivate the entry..</param>
        /// <param name="guest">Guest ID..</param>
        /// <param name="id">Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. &#39;&lt;GUEST&gt;-&lt;JOBNUM&gt;&#39;..</param>
        /// <param name="jobnum">Unique, sequential ID assigned to each job..</param>
        /// <param name="rate">Rate limit in mbps (megabytes per second) as floating point number..</param>
        /// <param name="removeJob">Mark the replication job for removal. The job will remove all local replication snapshots. When set to &#39;full&#39;, it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file..</param>
        /// <param name="schedule">Storage replication schedule. The format is a subset of &#x60;systemd&#x60; calendar events..</param>
        /// <param name="source">For internal use, to detect if the guest was stolen..</param>
        /// <param name="target">Target node..</param>
        /// <param name="type">Section type..</param>
        public GetClusterReplication200ResponseDataInner(string comment = default(string), Int64 disable = default(Int64), Int64 guest = default(Int64), string id = default(string), Int64 jobnum = default(Int64), decimal rate = default(decimal), string removeJob = default(string), string schedule = default(string), string source = default(string), string target = default(string), string type = default(string))
        {
            this.Comment = comment;
            this.Disable = disable;
            this.Guest = guest;
            this.Id = id;
            this.Jobnum = jobnum;
            this.Rate = rate;
            this.RemoveJob = removeJob;
            this.Schedule = schedule;
            this.Source = source;
            this.Target = target;
            this.Type = type;
        }

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

        /// <summary>
        /// Flag to disable/deactivate the entry.
        /// </summary>
        /// <value>Flag to disable/deactivate the entry.</value>
        [DataMember(Name = "disable", EmitDefaultValue = false)]
        public Int64 Disable { get; set; }

        /// <summary>
        /// Guest ID.
        /// </summary>
        /// <value>Guest ID.</value>
        [DataMember(Name = "guest", EmitDefaultValue = false)]
        public Int64 Guest { get; set; }

        /// <summary>
        /// Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. &#39;&lt;GUEST&gt;-&lt;JOBNUM&gt;&#39;.
        /// </summary>
        /// <value>Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. &#39;&lt;GUEST&gt;-&lt;JOBNUM&gt;&#39;.</value>
        [DataMember(Name = "id", EmitDefaultValue = false)]
        public string Id { get; set; }

        /// <summary>
        /// Unique, sequential ID assigned to each job.
        /// </summary>
        /// <value>Unique, sequential ID assigned to each job.</value>
        [DataMember(Name = "jobnum", EmitDefaultValue = false)]
        public Int64 Jobnum { get; set; }

        /// <summary>
        /// Rate limit in mbps (megabytes per second) as floating point number.
        /// </summary>
        /// <value>Rate limit in mbps (megabytes per second) as floating point number.</value>
        [DataMember(Name = "rate", EmitDefaultValue = false)]
        public decimal Rate { get; set; }

        /// <summary>
        /// Mark the replication job for removal. The job will remove all local replication snapshots. When set to &#39;full&#39;, it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.
        /// </summary>
        /// <value>Mark the replication job for removal. The job will remove all local replication snapshots. When set to &#39;full&#39;, it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.</value>
        [DataMember(Name = "remove_job", EmitDefaultValue = false)]
        public string RemoveJob { get; set; }

        /// <summary>
        /// Storage replication schedule. The format is a subset of &#x60;systemd&#x60; calendar events.
        /// </summary>
        /// <value>Storage replication schedule. The format is a subset of &#x60;systemd&#x60; calendar events.</value>
        [DataMember(Name = "schedule", EmitDefaultValue = false)]
        public string Schedule { get; set; }

        /// <summary>
        /// For internal use, to detect if the guest was stolen.
        /// </summary>
        /// <value>For internal use, to detect if the guest was stolen.</value>
        [DataMember(Name = "source", EmitDefaultValue = false)]
        public string Source { get; set; }

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

        /// <summary>
        /// Section type.
        /// </summary>
        /// <value>Section type.</value>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { 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 GetClusterReplication200ResponseDataInner {\n");
            sb.Append("  Comment: ").Append(Comment).Append("\n");
            sb.Append("  Disable: ").Append(Disable).Append("\n");
            sb.Append("  Guest: ").Append(Guest).Append("\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Jobnum: ").Append(Jobnum).Append("\n");
            sb.Append("  Rate: ").Append(Rate).Append("\n");
            sb.Append("  RemoveJob: ").Append(RemoveJob).Append("\n");
            sb.Append("  Schedule: ").Append(Schedule).Append("\n");
            sb.Append("  Source: ").Append(Source).Append("\n");
            sb.Append("  Target: ").Append(Target).Append("\n");
            sb.Append("  Type: ").Append(Type).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;
        }
    }

}
