/*
 * 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>
    /// StartVMRequest
    /// </summary>
    [DataContract(Name = "StartVMRequest")]
    public partial class StartVMRequest : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="StartVMRequest" /> class.
        /// </summary>
        /// <param name="forceCpu">forceCpu.</param>
        /// <param name="machine">machine.</param>
        /// <param name="migratedfrom">migratedfrom.</param>
        /// <param name="migrationNetwork">migrationNetwork.</param>
        /// <param name="migrationType">migrationType.</param>
        /// <param name="netsHostMtu">netsHostMtu.</param>
        /// <param name="skiplock">skiplock.</param>
        /// <param name="stateuri">stateuri.</param>
        /// <param name="targetstorage">targetstorage.</param>
        /// <param name="timeout">timeout.</param>
        /// <param name="withConntrackState">withConntrackState.</param>
        public StartVMRequest(string forceCpu = default(string), string machine = default(string), string migratedfrom = default(string), string migrationNetwork = default(string), string migrationType = default(string), string netsHostMtu = default(string), bool skiplock = default(bool), string stateuri = default(string), string targetstorage = default(string), int timeout = default(int), bool withConntrackState = default(bool))
        {
            this.ForceCpu = forceCpu;
            this.Machine = machine;
            this.Migratedfrom = migratedfrom;
            this.MigrationNetwork = migrationNetwork;
            this.MigrationType = migrationType;
            this.NetsHostMtu = netsHostMtu;
            this.Skiplock = skiplock;
            this.Stateuri = stateuri;
            this.Targetstorage = targetstorage;
            this.Timeout = timeout;
            this.WithConntrackState = withConntrackState;
        }

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

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

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

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

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

        /// <summary>
        /// Gets or Sets NetsHostMtu
        /// </summary>
        [DataMember(Name = "nets-host-mtu", EmitDefaultValue = false)]
        public string NetsHostMtu { get; set; }

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

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

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

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

        /// <summary>
        /// Gets or Sets WithConntrackState
        /// </summary>
        [DataMember(Name = "with-conntrack-state", EmitDefaultValue = true)]
        public bool WithConntrackState { 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 StartVMRequest {\n");
            sb.Append("  ForceCpu: ").Append(ForceCpu).Append("\n");
            sb.Append("  Machine: ").Append(Machine).Append("\n");
            sb.Append("  Migratedfrom: ").Append(Migratedfrom).Append("\n");
            sb.Append("  MigrationNetwork: ").Append(MigrationNetwork).Append("\n");
            sb.Append("  MigrationType: ").Append(MigrationType).Append("\n");
            sb.Append("  NetsHostMtu: ").Append(NetsHostMtu).Append("\n");
            sb.Append("  Skiplock: ").Append(Skiplock).Append("\n");
            sb.Append("  Stateuri: ").Append(Stateuri).Append("\n");
            sb.Append("  Targetstorage: ").Append(Targetstorage).Append("\n");
            sb.Append("  Timeout: ").Append(Timeout).Append("\n");
            sb.Append("  WithConntrackState: ").Append(WithConntrackState).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;
        }
    }

}
