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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the classification property: Kind of namespace.static MetricNamespaceInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MetricNamespaceInner from the JsonReader.id()
Get the id property: The ID of the metric namespace.name()
Get the name property: The escaped name of the namespace.Get the properties property: Properties which include the fully qualified namespace name.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the namespace.void
validate()
Validates the instance.withClassification
(NamespaceClassification classification) Set the classification property: Kind of namespace.Set the id property: The ID of the metric namespace.Set the name property: The escaped name of the namespace.withProperties
(MetricNamespaceName properties) Set the properties property: Properties which include the fully qualified namespace name.Set the type property: The type of the namespace.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MetricNamespaceInner
public MetricNamespaceInner()Creates an instance of MetricNamespaceInner class.
-
-
Method Details
-
id
Get the id property: The ID of the metric namespace.- Returns:
- the id value.
-
withId
Set the id property: The ID of the metric namespace.- Parameters:
id
- the id value to set.- Returns:
- the MetricNamespaceInner object itself.
-
type
Get the type property: The type of the namespace.- Returns:
- the type value.
-
withType
Set the type property: The type of the namespace.- Parameters:
type
- the type value to set.- Returns:
- the MetricNamespaceInner object itself.
-
name
Get the name property: The escaped name of the namespace.- Returns:
- the name value.
-
withName
Set the name property: The escaped name of the namespace.- Parameters:
name
- the name value to set.- Returns:
- the MetricNamespaceInner object itself.
-
classification
Get the classification property: Kind of namespace.- Returns:
- the classification value.
-
withClassification
Set the classification property: Kind of namespace.- Parameters:
classification
- the classification value to set.- Returns:
- the MetricNamespaceInner object itself.
-
properties
Get the properties property: Properties which include the fully qualified namespace name.- Returns:
- the properties value.
-
withProperties
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
- Specified by:
toJson
in interfacecom.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.
-