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()
  • 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.
    • validate

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