Class MetricSingleDimension
java.lang.Object
com.azure.resourcemanager.monitor.models.MetricSingleDimension
The metric dimension name and value.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MetricSingleDimension
public MetricSingleDimension()Creates an instance of MetricSingleDimension class.
-
-
Method Details
-
name
Get the name property: Name of the dimension.- Returns:
- the name value.
-
withName
Set the name property: Name of the dimension.- Parameters:
name- the name value to set.- Returns:
- the MetricSingleDimension object itself.
-
value
Get the value property: Value of the dimension.- Returns:
- the value value.
-
withValue
Set the value property: Value of the dimension.- Parameters:
value- the value value to set.- Returns:
- the MetricSingleDimension object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-