Class MetricName
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.models.MetricName
-
public final class MetricName extends Object
A metric name.
-
-
Constructor Summary
Constructors Constructor Description MetricName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
localizedValue()
Get the localizedValue property: The friendly name of the metric.void
validate()
Validates the instance.String
value()
Get the value property: The name of the metric.MetricName
withLocalizedValue(String localizedValue)
Set the localizedValue property: The friendly name of the metric.MetricName
withValue(String value)
Set the value property: The name of the metric.
-
-
-
Method Detail
-
value
public String value()
Get the value property: The name of the metric.- Returns:
- the value value.
-
withValue
public MetricName withValue(String value)
Set the value property: The name of the metric.- Parameters:
value
- the value value to set.- Returns:
- the MetricName object itself.
-
localizedValue
public String localizedValue()
Get the localizedValue property: The friendly name of the metric.- Returns:
- the localizedValue value.
-
withLocalizedValue
public MetricName withLocalizedValue(String localizedValue)
Set the localizedValue property: The friendly name of the metric.- Parameters:
localizedValue
- the localizedValue value to set.- Returns:
- the MetricName object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-