java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.MetricName

public final class MetricName extends Object
A metric name.
  • Constructor Details

    • MetricName

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

    • 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.