MetricNamespaceInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. MetricNamespaceInner
- com.
Implements
public final class MetricNamespaceInner
implements JsonSerializable<MetricNamespaceInner>
Metric namespace class specifies the metadata for a metric namespace.
Constructor Summary
Constructor | Description |
---|---|
MetricNamespaceInner() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
Namespace |
classification()
Get the classification property: Kind of namespace. |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
String |
id()
Get the id property: The ID of the metric namespace. |
String |
name()
Get the name property: The escaped name of the namespace. |
Metric |
properties()
Get the properties property: Properties which include the fully qualified namespace name. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the namespace. |
void |
validate()
Validates the instance. |
Metric |
withClassification(NamespaceClassification classification)
Set the classification property: Kind of namespace. |
Metric |
withId(String id)
Set the id property: The ID of the metric namespace. |
Metric |
withName(String name)
Set the name property: The escaped name of the namespace. |
Metric |
withProperties(MetricNamespaceName properties)
Set the properties property: Properties which include the fully qualified namespace name. |
Metric |
withType(String type)
Set the type property: The type of the namespace. |
Methods inherited from java.lang.Object
Constructor Details
MetricNamespaceInner
public MetricNamespaceInner()
Creates an instance of MetricNamespaceInner class.
Method Details
classification
public NamespaceClassification classification()
Get the classification property: Kind of namespace.
Returns:
fromJson
public static MetricNamespaceInner fromJson(JsonReader jsonReader)
Reads an instance of MetricNamespaceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The ID of the metric namespace.
Returns:
name
public String name()
Get the name property: The escaped name of the namespace.
Returns:
properties
public MetricNamespaceName properties()
Get the properties property: Properties which include the fully qualified namespace name.
Returns:
toJson
type
public String type()
Get the type property: The type of the namespace.
Returns:
validate
public void validate()
Validates the instance.
withClassification
public MetricNamespaceInner withClassification(NamespaceClassification classification)
Set the classification property: Kind of namespace.
Parameters:
Returns:
withId
public MetricNamespaceInner withId(String id)
Set the id property: The ID of the metric namespace.
Parameters:
Returns:
withName
public MetricNamespaceInner withName(String name)
Set the name property: The escaped name of the namespace.
Parameters:
Returns:
withProperties
public MetricNamespaceInner withProperties(MetricNamespaceName properties)
Set the properties property: Properties which include the fully qualified namespace name.
Parameters:
Returns:
withType
public MetricNamespaceInner withType(String type)
Set the type property: The type of the namespace.
Parameters:
Returns:
Applies to
Azure SDK for Java