Class MetricNamespaceInner

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

public final class MetricNamespaceInner extends Object implements com.azure.json.JsonSerializable<MetricNamespaceInner>
Metric namespace class specifies the metadata for a metric namespace.
  • Constructor Details

    • MetricNamespaceInner

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

    • id

      public String id()
      Get the id property: The ID of the metric namespace.
      Returns:
      the id value.
    • withId

      public MetricNamespaceInner withId(String id)
      Set the id property: The ID of the metric namespace.
      Parameters:
      id - the id value to set.
      Returns:
      the MetricNamespaceInner object itself.
    • type

      public String type()
      Get the type property: The type of the namespace.
      Returns:
      the type value.
    • withType

      public MetricNamespaceInner withType(String type)
      Set the type property: The type of the namespace.
      Parameters:
      type - the type value to set.
      Returns:
      the MetricNamespaceInner object itself.
    • name

      public String name()
      Get the name property: The escaped name of the namespace.
      Returns:
      the name value.
    • withName

      public MetricNamespaceInner withName(String name)
      Set the name property: The escaped name of the namespace.
      Parameters:
      name - the name value to set.
      Returns:
      the MetricNamespaceInner object itself.
    • classification

      public NamespaceClassification classification()
      Get the classification property: Kind of namespace.
      Returns:
      the classification value.
    • withClassification

      public MetricNamespaceInner withClassification(NamespaceClassification classification)
      Set the classification property: Kind of namespace.
      Parameters:
      classification - the classification value to set.
      Returns:
      the MetricNamespaceInner object itself.
    • properties

      public MetricNamespaceName properties()
      Get the properties property: Properties which include the fully qualified namespace name.
      Returns:
      the properties value.
    • withProperties

      public MetricNamespaceInner withProperties(MetricNamespaceName properties)
      Set the properties property: Properties which include the fully qualified namespace name.
      Parameters:
      properties - the properties value to set.
      Returns:
      the MetricNamespaceInner 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<MetricNamespaceInner>
      Throws:
      IOException
    • fromJson

      public static MetricNamespaceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MetricNamespaceInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MetricNamespaceInner 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 MetricNamespaceInner.