Class BudgetComparisonExpression
- java.lang.Object
-
- com.azure.resourcemanager.consumption.models.BudgetComparisonExpression
-
public final class BudgetComparisonExpression extends Object
The comparison expression to be used in the budgets.
-
-
Constructor Summary
Constructors Constructor Description BudgetComparisonExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: The name of the column to use in comparison.BudgetOperatorType
operator()
Get the operator property: The operator to use for comparison.void
validate()
Validates the instance.List<String>
values()
Get the values property: Array of values to use for comparison.BudgetComparisonExpression
withName(String name)
Set the name property: The name of the column to use in comparison.BudgetComparisonExpression
withOperator(BudgetOperatorType operator)
Set the operator property: The operator to use for comparison.BudgetComparisonExpression
withValues(List<String> values)
Set the values property: Array of values to use for comparison.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the column to use in comparison.- Returns:
- the name value.
-
withName
public BudgetComparisonExpression withName(String name)
Set the name property: The name of the column to use in comparison.- Parameters:
name
- the name value to set.- Returns:
- the BudgetComparisonExpression object itself.
-
operator
public BudgetOperatorType operator()
Get the operator property: The operator to use for comparison.- Returns:
- the operator value.
-
withOperator
public BudgetComparisonExpression withOperator(BudgetOperatorType operator)
Set the operator property: The operator to use for comparison.- Parameters:
operator
- the operator value to set.- Returns:
- the BudgetComparisonExpression object itself.
-
values
public List<String> values()
Get the values property: Array of values to use for comparison.- Returns:
- the values value.
-
withValues
public BudgetComparisonExpression withValues(List<String> values)
Set the values property: Array of values to use for comparison.- Parameters:
values
- the values value to set.- Returns:
- the BudgetComparisonExpression object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-