Class PrometheusHaClusterProviderInstanceProperties

java.lang.Object
com.azure.resourcemanager.workloads.models.ProviderSpecificProperties
com.azure.resourcemanager.workloads.models.PrometheusHaClusterProviderInstanceProperties

public final class PrometheusHaClusterProviderInstanceProperties extends ProviderSpecificProperties
Gets or sets the PrometheusHaCluster provider properties.
  • Constructor Details

    • PrometheusHaClusterProviderInstanceProperties

      public PrometheusHaClusterProviderInstanceProperties()
      Creates an instance of PrometheusHaClusterProviderInstanceProperties class.
  • Method Details

    • prometheusUrl

      public String prometheusUrl()
      Get the prometheusUrl property: URL of the Node Exporter endpoint.
      Returns:
      the prometheusUrl value.
    • withPrometheusUrl

      public PrometheusHaClusterProviderInstanceProperties withPrometheusUrl(String prometheusUrl)
      Set the prometheusUrl property: URL of the Node Exporter endpoint.
      Parameters:
      prometheusUrl - the prometheusUrl value to set.
      Returns:
      the PrometheusHaClusterProviderInstanceProperties object itself.
    • hostname

      public String hostname()
      Get the hostname property: Gets or sets the target machine name.
      Returns:
      the hostname value.
    • withHostname

      public PrometheusHaClusterProviderInstanceProperties withHostname(String hostname)
      Set the hostname property: Gets or sets the target machine name.
      Parameters:
      hostname - the hostname value to set.
      Returns:
      the PrometheusHaClusterProviderInstanceProperties object itself.
    • sid

      public String sid()
      Get the sid property: Gets or sets the cluster sid.
      Returns:
      the sid value.
    • withSid

      Set the sid property: Gets or sets the cluster sid.
      Parameters:
      sid - the sid value to set.
      Returns:
      the PrometheusHaClusterProviderInstanceProperties object itself.
    • clusterName

      public String clusterName()
      Get the clusterName property: Gets or sets the clusterName.
      Returns:
      the clusterName value.
    • withClusterName

      public PrometheusHaClusterProviderInstanceProperties withClusterName(String clusterName)
      Set the clusterName property: Gets or sets the clusterName.
      Parameters:
      clusterName - the clusterName value to set.
      Returns:
      the PrometheusHaClusterProviderInstanceProperties object itself.
    • sslPreference

      public SslPreference sslPreference()
      Get the sslPreference property: Gets or sets certificate preference if secure communication is enabled.
      Returns:
      the sslPreference value.
    • withSslPreference

      public PrometheusHaClusterProviderInstanceProperties withSslPreference(SslPreference sslPreference)
      Set the sslPreference property: Gets or sets certificate preference if secure communication is enabled.
      Parameters:
      sslPreference - the sslPreference value to set.
      Returns:
      the PrometheusHaClusterProviderInstanceProperties object itself.
    • sslCertificateUri

      public String sslCertificateUri()
      Get the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the HA cluster exporter.
      Returns:
      the sslCertificateUri value.
    • withSslCertificateUri

      public PrometheusHaClusterProviderInstanceProperties withSslCertificateUri(String sslCertificateUri)
      Set the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the HA cluster exporter.
      Parameters:
      sslCertificateUri - the sslCertificateUri value to set.
      Returns:
      the PrometheusHaClusterProviderInstanceProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ProviderSpecificProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.