BudgetFilter Class

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

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 BudgetFilter class.

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.

static BudgetFilter fromJson(JsonReader jsonReader)

Reads an instance of BudgetFilter from the JsonReader.

BudgetComparisonExpression tags()

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

JsonWriter toJson(JsonWriter jsonWriter)
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 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:

the and value.

dimensions

public BudgetComparisonExpression dimensions()

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

Returns:

the dimensions value.

fromJson

public static BudgetFilter fromJson(JsonReader jsonReader)

Reads an instance of BudgetFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BudgetFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the BudgetFilter.

tags

public BudgetComparisonExpression tags()

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

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

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.

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