Class MetricDimension

java.lang.Object
com.azure.resourcemanager.appplatform.models.MetricDimension
All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricDimension>

public final class MetricDimension extends Object implements com.azure.json.JsonSerializable<MetricDimension>
Specifications of the Dimension of metrics.
  • Constructor Details

    • MetricDimension

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

    • name

      public String name()
      Get the name property: Name of the dimension.
      Returns:
      the name value.
    • withName

      public MetricDimension withName(String name)
      Set the name property: Name of the dimension.
      Parameters:
      name - the name value to set.
      Returns:
      the MetricDimension object itself.
    • displayName

      public String displayName()
      Get the displayName property: Localized friendly display name of the dimension.
      Returns:
      the displayName value.
    • withDisplayName

      public MetricDimension withDisplayName(String displayName)
      Set the displayName property: Localized friendly display name of the dimension.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MetricDimension object itself.
    • toBeExportedForShoebox

      public Boolean toBeExportedForShoebox()
      Get the toBeExportedForShoebox property: Whether this dimension should be included for the Shoebox export scenario.
      Returns:
      the toBeExportedForShoebox value.
    • withToBeExportedForShoebox

      public MetricDimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox)
      Set the toBeExportedForShoebox property: Whether this dimension should be included for the Shoebox export scenario.
      Parameters:
      toBeExportedForShoebox - the toBeExportedForShoebox value to set.
      Returns:
      the MetricDimension object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MetricDimension>
      Throws:
      IOException
    • fromJson

      public static MetricDimension fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MetricDimension from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MetricDimension if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the MetricDimension.