Class ScaleRuleMetricDimension
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.ScaleRuleMetricDimension
-
public final class ScaleRuleMetricDimension extends Object
Specifies an auto scale rule metric dimension.
-
-
Constructor Summary
Constructors Constructor Description ScaleRuleMetricDimension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdimensionName()Get the dimensionName property: Name of the dimension.ScaleRuleMetricDimensionOperationTypeoperator()Get the operator property: the dimension operator.voidvalidate()Validates the instance.List<String>values()Get the values property: list of dimension values.ScaleRuleMetricDimensionwithDimensionName(String dimensionName)Set the dimensionName property: Name of the dimension.ScaleRuleMetricDimensionwithOperator(ScaleRuleMetricDimensionOperationType operator)Set the operator property: the dimension operator.ScaleRuleMetricDimensionwithValues(List<String> values)Set the values property: list of dimension values.
-
-
-
Method Detail
-
dimensionName
public String dimensionName()
Get the dimensionName property: Name of the dimension.- Returns:
- the dimensionName value.
-
withDimensionName
public ScaleRuleMetricDimension withDimensionName(String dimensionName)
Set the dimensionName property: Name of the dimension.- Parameters:
dimensionName- the dimensionName value to set.- Returns:
- the ScaleRuleMetricDimension object itself.
-
operator
public ScaleRuleMetricDimensionOperationType operator()
Get the operator property: the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values.- Returns:
- the operator value.
-
withOperator
public ScaleRuleMetricDimension withOperator(ScaleRuleMetricDimensionOperationType operator)
Set the operator property: the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values.- Parameters:
operator- the operator value to set.- Returns:
- the ScaleRuleMetricDimension object itself.
-
values
public List<String> values()
Get the values property: list of dimension values. For example: ["App1","App2"].- Returns:
- the values value.
-
withValues
public ScaleRuleMetricDimension withValues(List<String> values)
Set the values property: list of dimension values. For example: ["App1","App2"].- Parameters:
values- the values value to set.- Returns:
- the ScaleRuleMetricDimension object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-