Class MetricDimension
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.MetricDimension
-
public final class MetricDimension extends Object
Specifies a metric dimension.
-
-
Constructor Summary
Constructors Constructor Description MetricDimension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: Name of the dimension.Stringoperator()Get the operator property: the dimension operator.voidvalidate()Validates the instance.List<String>values()Get the values property: list of dimension values.MetricDimensionwithName(String name)Set the name property: Name of the dimension.MetricDimensionwithOperator(String operator)Set the operator property: the dimension operator.MetricDimensionwithValues(List<String> values)Set the values property: list of dimension values.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the dimension.- Returns:
- the name value.
-
withName
public MetricDimension withName(String name)
Set the name property: Name of the dimension.- Parameters:
name- the name value to set.- Returns:
- the MetricDimension object itself.
-
operator
public String operator()
Get the operator property: the dimension operator. Only 'Include' and 'Exclude' are supported.- Returns:
- the operator value.
-
withOperator
public MetricDimension withOperator(String operator)
Set the operator property: the dimension operator. Only 'Include' and 'Exclude' are supported.- Parameters:
operator- the operator value to set.- Returns:
- the MetricDimension object itself.
-
values
public List<String> values()
Get the values property: list of dimension values.- Returns:
- the values value.
-
withValues
public MetricDimension withValues(List<String> values)
Set the values property: list of dimension values.- Parameters:
values- the values value to set.- Returns:
- the MetricDimension object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-