BudgetFilterProperties Class

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

Implements

public final class BudgetFilterProperties
implements JsonSerializable<BudgetFilterProperties>

The Dimensions or Tags to filter a budget by.

Constructor Summary

Constructor Description
BudgetFilterProperties()

Creates an instance of BudgetFilterProperties class.

Method Summary

Modifier and Type Method and Description
BudgetComparisonExpression dimensions()

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

static BudgetFilterProperties fromJson(JsonReader jsonReader)

Reads an instance of BudgetFilterProperties from the JsonReader.

BudgetComparisonExpression tags()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BudgetFilterProperties withDimensions(BudgetComparisonExpression dimensions)

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

BudgetFilterProperties withTags(BudgetComparisonExpression tags)

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

Methods inherited from java.lang.Object

Constructor Details

BudgetFilterProperties

public BudgetFilterProperties()

Creates an instance of BudgetFilterProperties class.

Method Details

dimensions

public BudgetComparisonExpression dimensions()

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

Returns:

the dimensions value.

fromJson

public static BudgetFilterProperties fromJson(JsonReader jsonReader)

Reads an instance of BudgetFilterProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BudgetFilterProperties 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 BudgetFilterProperties.

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.

withDimensions

public BudgetFilterProperties withDimensions(BudgetComparisonExpression dimensions)

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

Parameters:

dimensions - the dimensions value to set.

Returns:

the BudgetFilterProperties object itself.

withTags

public BudgetFilterProperties withTags(BudgetComparisonExpression tags)

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

Parameters:

tags - the tags value to set.

Returns:

the BudgetFilterProperties object itself.

Applies to