Class Dimension
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.Dimension
-
public final class Dimension extends Object
Specifies the criteria for converting log to metric.
-
-
Constructor Summary
Constructors Constructor Description Dimension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: Name of the dimension.Operatoroperator()Get the operator property: Operator for dimension values.voidvalidate()Validates the instance.List<String>values()Get the values property: List of dimension values.DimensionwithName(String name)Set the name property: Name of the dimension.DimensionwithOperator(Operator operator)Set the operator property: Operator for dimension values.DimensionwithValues(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 Dimension withName(String name)
Set the name property: Name of the dimension.- Parameters:
name- the name value to set.- Returns:
- the Dimension object itself.
-
operator
public Operator operator()
Get the operator property: Operator for dimension values.- Returns:
- the operator value.
-
withOperator
public Dimension withOperator(Operator operator)
Set the operator property: Operator for dimension values.- Parameters:
operator- the operator value to set.- Returns:
- the Dimension object itself.
-
values
public List<String> values()
Get the values property: List of dimension values.- Returns:
- the values value.
-
withValues
public Dimension withValues(List<String> values)
Set the values property: List of dimension values.- Parameters:
values- the values value to set.- Returns:
- the Dimension object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-