// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.workloads.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Gets or sets the PrometheusOS provider properties. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "providerType")
@JsonTypeName("PrometheusOS")
@Fluent
public final class PrometheusOSProviderInstanceProperties extends ProviderSpecificProperties {
    /*
     * URL of the Node Exporter endpoint
     */
    @JsonProperty(value = "prometheusUrl")
    private String prometheusUrl;

    /*
     * Gets or sets certificate preference if secure communication is enabled.
     */
    @JsonProperty(value = "sslPreference")
    private SslPreference sslPreference;

    /*
     * Gets or sets the blob URI to SSL certificate for the prometheus node exporter.
     */
    @JsonProperty(value = "sslCertificateUri")
    private String sslCertificateUri;

    /*
     * Gets or sets the SAP System Identifier
     */
    @JsonProperty(value = "sapSid")
    private String sapSid;

    /** Creates an instance of PrometheusOSProviderInstanceProperties class. */
    public PrometheusOSProviderInstanceProperties() {
    }

    /**
     * Get the prometheusUrl property: URL of the Node Exporter endpoint.
     *
     * @return the prometheusUrl value.
     */
    public String prometheusUrl() {
        return this.prometheusUrl;
    }

    /**
     * Set the prometheusUrl property: URL of the Node Exporter endpoint.
     *
     * @param prometheusUrl the prometheusUrl value to set.
     * @return the PrometheusOSProviderInstanceProperties object itself.
     */
    public PrometheusOSProviderInstanceProperties withPrometheusUrl(String prometheusUrl) {
        this.prometheusUrl = prometheusUrl;
        return this;
    }

    /**
     * Get the sslPreference property: Gets or sets certificate preference if secure communication is enabled.
     *
     * @return the sslPreference value.
     */
    public SslPreference sslPreference() {
        return this.sslPreference;
    }

    /**
     * Set the sslPreference property: Gets or sets certificate preference if secure communication is enabled.
     *
     * @param sslPreference the sslPreference value to set.
     * @return the PrometheusOSProviderInstanceProperties object itself.
     */
    public PrometheusOSProviderInstanceProperties withSslPreference(SslPreference sslPreference) {
        this.sslPreference = sslPreference;
        return this;
    }

    /**
     * Get the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the prometheus node
     * exporter.
     *
     * @return the sslCertificateUri value.
     */
    public String sslCertificateUri() {
        return this.sslCertificateUri;
    }

    /**
     * Set the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the prometheus node
     * exporter.
     *
     * @param sslCertificateUri the sslCertificateUri value to set.
     * @return the PrometheusOSProviderInstanceProperties object itself.
     */
    public PrometheusOSProviderInstanceProperties withSslCertificateUri(String sslCertificateUri) {
        this.sslCertificateUri = sslCertificateUri;
        return this;
    }

    /**
     * Get the sapSid property: Gets or sets the SAP System Identifier.
     *
     * @return the sapSid value.
     */
    public String sapSid() {
        return this.sapSid;
    }

    /**
     * Set the sapSid property: Gets or sets the SAP System Identifier.
     *
     * @param sapSid the sapSid value to set.
     * @return the PrometheusOSProviderInstanceProperties object itself.
     */
    public PrometheusOSProviderInstanceProperties withSapSid(String sapSid) {
        this.sapSid = sapSid;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
