BudgetComparisonExpression Class

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

Implements

public final class BudgetComparisonExpression
implements JsonSerializable<BudgetComparisonExpression>

The comparison expression to be used in the budgets.

Constructor Summary

Constructor Description
BudgetComparisonExpression()

Creates an instance of BudgetComparisonExpression class.

Method Summary

Modifier and Type Method and Description
static BudgetComparisonExpression fromJson(JsonReader jsonReader)

Reads an instance of BudgetComparisonExpression from the JsonReader.

String name()

Get the name property: The name of the column to use in comparison.

BudgetOperatorType operator()

Get the operator property: The operator to use for comparison.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<String> values()

Get the values property: Array of values to use for comparison.

BudgetComparisonExpression withName(String name)

Set the name property: The name of the column to use in comparison.

BudgetComparisonExpression withOperator(BudgetOperatorType operator)

Set the operator property: The operator to use for comparison.

BudgetComparisonExpression withValues(List<String> values)

Set the values property: Array of values to use for comparison.

Methods inherited from java.lang.Object

Constructor Details

BudgetComparisonExpression

public BudgetComparisonExpression()

Creates an instance of BudgetComparisonExpression class.

Method Details

fromJson

public static BudgetComparisonExpression fromJson(JsonReader jsonReader)

Reads an instance of BudgetComparisonExpression from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the column to use in comparison.

Returns:

the name value.

operator

public BudgetOperatorType operator()

Get the operator property: The operator to use for comparison.

Returns:

the operator value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

values

public List<String> values()

Get the values property: Array of values to use for comparison.

Returns:

the values value.

withName

public BudgetComparisonExpression withName(String name)

Set the name property: The name of the column to use in comparison.

Parameters:

name - the name value to set.

Returns:

the BudgetComparisonExpression object itself.

withOperator

public BudgetComparisonExpression withOperator(BudgetOperatorType operator)

Set the operator property: The operator to use for comparison.

Parameters:

operator - the operator value to set.

Returns:

the BudgetComparisonExpression object itself.

withValues

public BudgetComparisonExpression withValues(List<String> values)

Set the values property: Array of values to use for comparison.

Parameters:

values - the values value to set.

Returns:

the BudgetComparisonExpression object itself.

Applies to