/*
 * 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>
    /// CreateClusterAcmeAccountRequest
    /// </summary>
    [DataContract(Name = "CreateClusterAcmeAccountRequest")]
    public partial class CreateClusterAcmeAccountRequest : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateClusterAcmeAccountRequest" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected CreateClusterAcmeAccountRequest() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateClusterAcmeAccountRequest" /> class.
        /// </summary>
        /// <param name="contact">contact (required).</param>
        /// <param name="directory">directory.</param>
        /// <param name="eabHmacKey">eabHmacKey.</param>
        /// <param name="eabKid">eabKid.</param>
        /// <param name="name">name.</param>
        /// <param name="tosUrl">tosUrl.</param>
        public CreateClusterAcmeAccountRequest(string contact = default(string), string directory = default(string), string eabHmacKey = default(string), string eabKid = default(string), string name = default(string), string tosUrl = default(string))
        {
            // to ensure "contact" is required (not null)
            if (contact == null)
            {
                throw new ArgumentNullException("contact is a required property for CreateClusterAcmeAccountRequest and cannot be null");
            }
            this.Contact = contact;
            this.Directory = directory;
            this.EabHmacKey = eabHmacKey;
            this.EabKid = eabKid;
            this.Name = name;
            this.TosUrl = tosUrl;
        }

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

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

        /// <summary>
        /// Gets or Sets EabHmacKey
        /// </summary>
        [DataMember(Name = "eab-hmac-key", EmitDefaultValue = false)]
        public string EabHmacKey { get; set; }

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

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

        /// <summary>
        /// Gets or Sets TosUrl
        /// </summary>
        [DataMember(Name = "tos_url", EmitDefaultValue = false)]
        public string TosUrl { 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 CreateClusterAcmeAccountRequest {\n");
            sb.Append("  Contact: ").Append(Contact).Append("\n");
            sb.Append("  Directory: ").Append(Directory).Append("\n");
            sb.Append("  EabHmacKey: ").Append(EabHmacKey).Append("\n");
            sb.Append("  EabKid: ").Append(EabKid).Append("\n");
            sb.Append("  Name: ").Append(Name).Append("\n");
            sb.Append("  TosUrl: ").Append(TosUrl).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;
        }
    }

}
