BudgetFilter Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. BudgetFilter
- com.
Implements
public final class BudgetFilter
implements JsonSerializable<BudgetFilter>
May be used to filter budgets by resource group, resource, or meter.
Constructor Summary
| Constructor | Description |
|---|---|
| BudgetFilter() |
Creates an instance of Budget |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Budget |
and()
Get the and property: The logical "AND" expression. |
|
Budget |
dimensions()
Get the dimensions property: Has comparison expression for a dimension. |
|
static
Budget |
fromJson(JsonReader jsonReader)
Reads an instance of Budget |
|
Budget |
tags()
Get the tags property: Has comparison expression for a tag. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Budget |
withAnd(List<BudgetFilterProperties> and)
Set the and property: The logical "AND" expression. |
|
Budget |
withDimensions(BudgetComparisonExpression dimensions)
Set the dimensions property: Has comparison expression for a dimension. |
|
Budget |
withTags(BudgetComparisonExpression tags)
Set the tags property: Has comparison expression for a tag. |
Methods inherited from java.lang.Object
Constructor Details
BudgetFilter
public BudgetFilter()
Creates an instance of BudgetFilter class.
Method Details
and
public List<BudgetFilterProperties> and()
Get the and property: The logical "AND" expression. Must have at least 2 items.
Returns:
dimensions
public BudgetComparisonExpression dimensions()
Get the dimensions property: Has comparison expression for a dimension.
Returns:
fromJson
public static BudgetFilter fromJson(JsonReader jsonReader)
Reads an instance of BudgetFilter from the JsonReader.
Parameters:
Returns:
Throws:
tags
public BudgetComparisonExpression tags()
Get the tags property: Has comparison expression for a tag.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAnd
public BudgetFilter withAnd(List<BudgetFilterProperties> and)
Set the and property: The logical "AND" expression. Must have at least 2 items.
Parameters:
Returns:
withDimensions
public BudgetFilter withDimensions(BudgetComparisonExpression dimensions)
Set the dimensions property: Has comparison expression for a dimension.
Parameters:
Returns:
withTags
public BudgetFilter withTags(BudgetComparisonExpression tags)
Set the tags property: Has comparison expression for a tag.
Parameters:
Returns: