/*
 * 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>
    /// GetClusterAcmeMeta200ResponseData
    /// </summary>
    [DataContract(Name = "getClusterAcmeMeta_200_response_data")]
    public partial class GetClusterAcmeMeta200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetClusterAcmeMeta200ResponseData" /> class.
        /// </summary>
        /// <param name="caaIdentities">Hostnames referring to the ACME servers..</param>
        /// <param name="externalAccountRequired">EAB Required.</param>
        /// <param name="termsOfService">ACME TermsOfService URL..</param>
        /// <param name="website">URL to more information about the ACME server..</param>
        public GetClusterAcmeMeta200ResponseData(List<string> caaIdentities = default(List<string>), Int64 externalAccountRequired = default(Int64), string termsOfService = default(string), string website = default(string))
        {
            this.CaaIdentities = caaIdentities;
            this.ExternalAccountRequired = externalAccountRequired;
            this.TermsOfService = termsOfService;
            this.Website = website;
        }

        /// <summary>
        /// Hostnames referring to the ACME servers.
        /// </summary>
        /// <value>Hostnames referring to the ACME servers.</value>
        [DataMember(Name = "caaIdentities", EmitDefaultValue = false)]
        public List<string> CaaIdentities { get; set; }

        /// <summary>
        /// EAB Required
        /// </summary>
        /// <value>EAB Required</value>
        [DataMember(Name = "externalAccountRequired", EmitDefaultValue = false)]
        public Int64 ExternalAccountRequired { get; set; }

        /// <summary>
        /// ACME TermsOfService URL.
        /// </summary>
        /// <value>ACME TermsOfService URL.</value>
        [DataMember(Name = "termsOfService", EmitDefaultValue = false)]
        public string TermsOfService { get; set; }

        /// <summary>
        /// URL to more information about the ACME server.
        /// </summary>
        /// <value>URL to more information about the ACME server.</value>
        [DataMember(Name = "website", EmitDefaultValue = false)]
        public string Website { 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 GetClusterAcmeMeta200ResponseData {\n");
            sb.Append("  CaaIdentities: ").Append(CaaIdentities).Append("\n");
            sb.Append("  ExternalAccountRequired: ").Append(ExternalAccountRequired).Append("\n");
            sb.Append("  TermsOfService: ").Append(TermsOfService).Append("\n");
            sb.Append("  Website: ").Append(Website).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;
        }
    }

}
