Class PrometheusHaClusterProviderInstanceProperties
java.lang.Object
com.azure.resourcemanager.workloads.models.ProviderSpecificProperties
com.azure.resourcemanager.workloads.models.PrometheusHaClusterProviderInstanceProperties
Gets or sets the PrometheusHaCluster provider properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the clusterName property: Gets or sets the clusterName.hostname()
Get the hostname property: Gets or sets the target machine name.Get the prometheusUrl property: URL of the Node Exporter endpoint.sid()
Get the sid property: Gets or sets the cluster sid.void
validate()
Validates the instance.withClusterName
(String clusterName) Set the clusterName property: Gets or sets the clusterName.withHostname
(String hostname) Set the hostname property: Gets or sets the target machine name.withPrometheusUrl
(String prometheusUrl) Set the prometheusUrl property: URL of the Node Exporter endpoint.Set the sid property: Gets or sets the cluster sid.
-
Constructor Details
-
PrometheusHaClusterProviderInstanceProperties
public PrometheusHaClusterProviderInstanceProperties()
-
-
Method Details
-
prometheusUrl
Get the prometheusUrl property: URL of the Node Exporter endpoint.- Returns:
- the prometheusUrl value.
-
withPrometheusUrl
Set the prometheusUrl property: URL of the Node Exporter endpoint.- Parameters:
prometheusUrl
- the prometheusUrl value to set.- Returns:
- the PrometheusHaClusterProviderInstanceProperties object itself.
-
hostname
Get the hostname property: Gets or sets the target machine name.- Returns:
- the hostname value.
-
withHostname
Set the hostname property: Gets or sets the target machine name.- Parameters:
hostname
- the hostname value to set.- Returns:
- the PrometheusHaClusterProviderInstanceProperties object itself.
-
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
Get the clusterName property: Gets or sets the clusterName.- Returns:
- the clusterName value.
-
withClusterName
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 classProviderSpecificProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-