Class ForecastComparisonExpression
java.lang.Object
com.azure.resourcemanager.costmanagement.models.ForecastComparisonExpression
The comparison expression to be used in the forecast.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ForecastComparisonExpression class. -
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: The name of the column to use in comparison.operator()
Get the operator property: The operator to use for comparison.void
validate()
Validates the instance.values()
Get the values property: Array of values to use for comparison.Set the name property: The name of the column to use in comparison.withOperator
(ForecastOperatorType operator) Set the operator property: The operator to use for comparison.withValues
(List<String> values) Set the values property: Array of values to use for comparison.
-
Constructor Details
-
ForecastComparisonExpression
public ForecastComparisonExpression()Creates an instance of ForecastComparisonExpression class.
-
-
Method Details
-
name
Get the name property: The name of the column to use in comparison.- Returns:
- the name value.
-
withName
Set the name property: The name of the column to use in comparison.- Parameters:
name
- the name value to set.- Returns:
- the ForecastComparisonExpression object itself.
-
operator
Get the operator property: The operator to use for comparison.- Returns:
- the operator value.
-
withOperator
Set the operator property: The operator to use for comparison.- Parameters:
operator
- the operator value to set.- Returns:
- the ForecastComparisonExpression object itself.
-
values
Get the values property: Array of values to use for comparison.- Returns:
- the values value.
-
withValues
Set the values property: Array of values to use for comparison.- Parameters:
values
- the values value to set.- Returns:
- the ForecastComparisonExpression object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-