Class Dimension

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

public final class Dimension extends Object implements com.azure.json.JsonSerializable<Dimension>
Dimension splitting and filtering definition.
  • Constructor Details

    • Dimension

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

    • name

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

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

      public DimensionOperator operator()
      Get the operator property: Operator for dimension values.
      Returns:
      the operator value.
    • withOperator

      public Dimension withOperator(DimensionOperator operator)
      Set the operator property: Operator for dimension values.
      Parameters:
      operator - the operator value to set.
      Returns:
      the Dimension object itself.
    • values

      public List<String> values()
      Get the values property: List of dimension values.
      Returns:
      the values value.
    • withValues

      public Dimension withValues(List<String> values)
      Set the values property: List of dimension values.
      Parameters:
      values - the values value to set.
      Returns:
      the Dimension 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<Dimension>
      Throws:
      IOException
    • fromJson

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