/*
 * 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>
    /// UpdateClusterMetricsServerSingleRequest
    /// </summary>
    [DataContract(Name = "UpdateClusterMetricsServerSingleRequest")]
    public partial class UpdateClusterMetricsServerSingleRequest : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateClusterMetricsServerSingleRequest" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected UpdateClusterMetricsServerSingleRequest() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateClusterMetricsServerSingleRequest" /> class.
        /// </summary>
        /// <param name="apiPathPrefix">apiPathPrefix.</param>
        /// <param name="bucket">bucket.</param>
        /// <param name="delete">delete.</param>
        /// <param name="digest">digest.</param>
        /// <param name="disable">disable.</param>
        /// <param name="influxdbproto">influxdbproto.</param>
        /// <param name="maxBodySize">maxBodySize.</param>
        /// <param name="mtu">mtu.</param>
        /// <param name="organization">organization.</param>
        /// <param name="otelCompression">otelCompression.</param>
        /// <param name="otelHeaders">otelHeaders.</param>
        /// <param name="otelMaxBodySize">otelMaxBodySize.</param>
        /// <param name="otelPath">otelPath.</param>
        /// <param name="otelProtocol">otelProtocol.</param>
        /// <param name="otelResourceAttributes">otelResourceAttributes.</param>
        /// <param name="otelTimeout">otelTimeout.</param>
        /// <param name="otelVerifySsl">otelVerifySsl.</param>
        /// <param name="path">path.</param>
        /// <param name="port">port (required).</param>
        /// <param name="proto">proto.</param>
        /// <param name="server">server (required).</param>
        /// <param name="timeout">timeout.</param>
        /// <param name="token">token.</param>
        /// <param name="verifyCertificate">verifyCertificate.</param>
        public UpdateClusterMetricsServerSingleRequest(string apiPathPrefix = default(string), string bucket = default(string), string delete = default(string), string digest = default(string), bool disable = default(bool), string influxdbproto = default(string), int maxBodySize = default(int), int mtu = default(int), string organization = default(string), string otelCompression = default(string), string otelHeaders = default(string), int otelMaxBodySize = default(int), string otelPath = default(string), string otelProtocol = default(string), string otelResourceAttributes = default(string), int otelTimeout = default(int), bool otelVerifySsl = default(bool), string path = default(string), int port = default(int), string proto = default(string), string server = default(string), int timeout = default(int), string token = default(string), bool verifyCertificate = default(bool))
        {
            this.Port = port;
            // to ensure "server" is required (not null)
            if (server == null)
            {
                throw new ArgumentNullException("server is a required property for UpdateClusterMetricsServerSingleRequest and cannot be null");
            }
            this.Server = server;
            this.ApiPathPrefix = apiPathPrefix;
            this.Bucket = bucket;
            this.Delete = delete;
            this.Digest = digest;
            this.Disable = disable;
            this.Influxdbproto = influxdbproto;
            this.MaxBodySize = maxBodySize;
            this.Mtu = mtu;
            this.Organization = organization;
            this.OtelCompression = otelCompression;
            this.OtelHeaders = otelHeaders;
            this.OtelMaxBodySize = otelMaxBodySize;
            this.OtelPath = otelPath;
            this.OtelProtocol = otelProtocol;
            this.OtelResourceAttributes = otelResourceAttributes;
            this.OtelTimeout = otelTimeout;
            this.OtelVerifySsl = otelVerifySsl;
            this.Path = path;
            this.Proto = proto;
            this.Timeout = timeout;
            this.Token = token;
            this.VerifyCertificate = verifyCertificate;
        }

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

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

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

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

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

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

        /// <summary>
        /// Gets or Sets MaxBodySize
        /// </summary>
        [DataMember(Name = "max-body-size", EmitDefaultValue = false)]
        public int MaxBodySize { get; set; }

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

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

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

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

        /// <summary>
        /// Gets or Sets OtelMaxBodySize
        /// </summary>
        [DataMember(Name = "otel-max-body-size", EmitDefaultValue = false)]
        public int OtelMaxBodySize { get; set; }

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

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

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

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

        /// <summary>
        /// Gets or Sets OtelVerifySsl
        /// </summary>
        [DataMember(Name = "otel-verify-ssl", EmitDefaultValue = true)]
        public bool OtelVerifySsl { get; set; }

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

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

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

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

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

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

        /// <summary>
        /// Gets or Sets VerifyCertificate
        /// </summary>
        [DataMember(Name = "verify-certificate", EmitDefaultValue = true)]
        public bool VerifyCertificate { 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 UpdateClusterMetricsServerSingleRequest {\n");
            sb.Append("  ApiPathPrefix: ").Append(ApiPathPrefix).Append("\n");
            sb.Append("  Bucket: ").Append(Bucket).Append("\n");
            sb.Append("  Delete: ").Append(Delete).Append("\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  Disable: ").Append(Disable).Append("\n");
            sb.Append("  Influxdbproto: ").Append(Influxdbproto).Append("\n");
            sb.Append("  MaxBodySize: ").Append(MaxBodySize).Append("\n");
            sb.Append("  Mtu: ").Append(Mtu).Append("\n");
            sb.Append("  Organization: ").Append(Organization).Append("\n");
            sb.Append("  OtelCompression: ").Append(OtelCompression).Append("\n");
            sb.Append("  OtelHeaders: ").Append(OtelHeaders).Append("\n");
            sb.Append("  OtelMaxBodySize: ").Append(OtelMaxBodySize).Append("\n");
            sb.Append("  OtelPath: ").Append(OtelPath).Append("\n");
            sb.Append("  OtelProtocol: ").Append(OtelProtocol).Append("\n");
            sb.Append("  OtelResourceAttributes: ").Append(OtelResourceAttributes).Append("\n");
            sb.Append("  OtelTimeout: ").Append(OtelTimeout).Append("\n");
            sb.Append("  OtelVerifySsl: ").Append(OtelVerifySsl).Append("\n");
            sb.Append("  Path: ").Append(Path).Append("\n");
            sb.Append("  Port: ").Append(Port).Append("\n");
            sb.Append("  Proto: ").Append(Proto).Append("\n");
            sb.Append("  Server: ").Append(Server).Append("\n");
            sb.Append("  Timeout: ").Append(Timeout).Append("\n");
            sb.Append("  Token: ").Append(Token).Append("\n");
            sb.Append("  VerifyCertificate: ").Append(VerifyCertificate).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;
        }
    }

}
