BudgetComparisonExpression Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. BudgetComparisonExpression
- com.
Implements
public final class BudgetComparisonExpression
implements JsonSerializable<BudgetComparisonExpression>
The comparison expression to be used in the budgets.
Constructor Summary
| Constructor | Description |
|---|---|
| BudgetComparisonExpression() |
Creates an instance of Budget |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Budget |
fromJson(JsonReader jsonReader)
Reads an instance of Budget |
| String |
name()
Get the name property: The name of the column to use in comparison. |
|
Budget |
operator()
Get the operator property: The operator to use for comparison. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| List<String> |
values()
Get the values property: Array of values to use for comparison. |
|
Budget |
withName(String name)
Set the name property: The name of the column to use in comparison. |
|
Budget |
withOperator(BudgetOperatorType operator)
Set the operator property: The operator to use for comparison. |
|
Budget |
withValues(List<String> values)
Set the values property: Array of values to use for comparison. |
Methods inherited from java.lang.Object
Constructor Details
BudgetComparisonExpression
public BudgetComparisonExpression()
Creates an instance of BudgetComparisonExpression class.
Method Details
fromJson
public static BudgetComparisonExpression fromJson(JsonReader jsonReader)
Reads an instance of BudgetComparisonExpression from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the column to use in comparison.
Returns:
operator
public BudgetOperatorType operator()
Get the operator property: The operator to use for comparison.
Returns:
toJson
validate
public void validate()
Validates the instance.
values
public List<String> values()
Get the values property: Array of values to use for comparison.
Returns:
withName
public BudgetComparisonExpression withName(String name)
Set the name property: The name of the column to use in comparison.
Parameters:
Returns:
withOperator
public BudgetComparisonExpression withOperator(BudgetOperatorType operator)
Set the operator property: The operator to use for comparison.
Parameters:
Returns:
withValues
public BudgetComparisonExpression withValues(List<String> values)
Set the values property: Array of values to use for comparison.
Parameters:
Returns: