Class MetricNamespaceInner
- java.lang.Object
-
- com.azure.resourcemanager.monitor.fluent.models.MetricNamespaceInner
-
public final class MetricNamespaceInner extends Object
Metric namespace class specifies the metadata for a metric namespace.
-
-
Constructor Summary
Constructors Constructor Description MetricNamespaceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamespaceClassificationclassification()Get the classification property: Kind of namespace.Stringid()Get the id property: The ID of the metric namespace.Stringname()Get the name property: The escaped name of the namespace.MetricNamespaceNameproperties()Get the properties property: Properties which include the fully qualified namespace name.Stringtype()Get the type property: The type of the namespace.voidvalidate()Validates the instance.MetricNamespaceInnerwithClassification(NamespaceClassification classification)Set the classification property: Kind of namespace.MetricNamespaceInnerwithId(String id)Set the id property: The ID of the metric namespace.MetricNamespaceInnerwithName(String name)Set the name property: The escaped name of the namespace.MetricNamespaceInnerwithProperties(MetricNamespaceName properties)Set the properties property: Properties which include the fully qualified namespace name.MetricNamespaceInnerwithType(String type)Set the type property: The type of the namespace.
-
-
-
Method Detail
-
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.
-
-