BudgetFilter Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.models.BudgetFilter

public final class BudgetFilter

May be used to filter budgets by resource group, resource, or meter.

Constructor Summary

Constructor Description
BudgetFilter()

Method Summary

Modifier and Type Method and 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.

Methods inherited from java.lang.Object

Constructor Details

BudgetFilter

public BudgetFilter()

Method Details

and

public List and()

Get the and property: The logical "AND" expression. Must have at least 2 items.

Returns:

the and value.

dimensions

public BudgetComparisonExpression dimensions()

Get the dimensions property: Has comparison expression for a dimension.

Returns:

the dimensions value.

not

public BudgetFilterProperties not()

Get the not property: The logical "NOT" expression.

Returns:

the not value.

tags

public BudgetComparisonExpression tags()

Get the tags property: Has comparison expression for a tag.

Returns:

the tags value.

validate

public void validate()

Validates the instance.

withAnd

public BudgetFilter withAnd(List 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.

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.

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.

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.

Applies to