Class BudgetFilter
- java.lang.Object
-
- com.azure.resourcemanager.consumption.models.BudgetFilter
-
public final class BudgetFilter extends Object
May be used to filter budgets by resource group, resource, or meter.
-
-
Constructor Summary
Constructors Constructor Description BudgetFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BudgetFilterProperties>
and()
Get the and property: The logical "AND" expression.BudgetComparisonExpression
dimensions()
Get the dimensions property: Has comparison expression for a dimension.BudgetFilterProperties
not()
Get the not property: The logical "NOT" expression.BudgetComparisonExpression
tags()
Get the tags property: Has comparison expression for a tag.void
validate()
Validates the instance.BudgetFilter
withAnd(List<BudgetFilterProperties> and)
Set the and property: The logical "AND" expression.BudgetFilter
withDimensions(BudgetComparisonExpression dimensions)
Set the dimensions property: Has comparison expression for a dimension.BudgetFilter
withNot(BudgetFilterProperties not)
Set the not property: The logical "NOT" expression.BudgetFilter
withTags(BudgetComparisonExpression tags)
Set the tags property: Has comparison expression for a tag.
-
-
-
Method Detail
-
and
public List<BudgetFilterProperties> and()
Get the and property: The logical "AND" expression. Must have at least 2 items.- Returns:
- the and value.
-
withAnd
public BudgetFilter withAnd(List<BudgetFilterProperties> and)
Set the and property: The logical "AND" expression. Must have at least 2 items.- Parameters:
and
- the and value to set.- Returns:
- the BudgetFilter object itself.
-
not
public BudgetFilterProperties not()
Get the not property: The logical "NOT" expression.- Returns:
- the not value.
-
withNot
public BudgetFilter withNot(BudgetFilterProperties not)
Set the not property: The logical "NOT" expression.- Parameters:
not
- the not value to set.- Returns:
- the BudgetFilter object itself.
-
dimensions
public BudgetComparisonExpression dimensions()
Get the dimensions property: Has comparison expression for a dimension.- Returns:
- the dimensions value.
-
withDimensions
public BudgetFilter withDimensions(BudgetComparisonExpression dimensions)
Set the dimensions property: Has comparison expression for a dimension.- Parameters:
dimensions
- the dimensions value to set.- Returns:
- the BudgetFilter object itself.
-
tags
public BudgetComparisonExpression tags()
Get the tags property: Has comparison expression for a tag.- Returns:
- the tags value.
-
withTags
public BudgetFilter withTags(BudgetComparisonExpression tags)
Set the tags property: Has comparison expression for a tag.- Parameters:
tags
- the tags value to set.- Returns:
- the BudgetFilter object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-