Class QueryComparisonExpression

java.lang.Object
com.azure.resourcemanager.costmanagement.models.QueryComparisonExpression

public final class QueryComparisonExpression extends Object
The comparison expression to be used in the query.
  • Constructor Details

    • QueryComparisonExpression

      public QueryComparisonExpression()
      Creates an instance of QueryComparisonExpression class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the column to use in comparison.
      Returns:
      the name value.
    • withName

      public QueryComparisonExpression 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 QueryComparisonExpression object itself.
    • operator

      public QueryOperatorType operator()
      Get the operator property: The operator to use for comparison.
      Returns:
      the operator value.
    • withOperator

      public QueryComparisonExpression withOperator(QueryOperatorType operator)
      Set the operator property: The operator to use for comparison.
      Parameters:
      operator - the operator value to set.
      Returns:
      the QueryComparisonExpression object itself.
    • values

      public List<String> values()
      Get the values property: Array of values to use for comparison.
      Returns:
      the values value.
    • withValues

      public QueryComparisonExpression withValues(List<String> values)
      Set the values property: Array of values to use for comparison.
      Parameters:
      values - the values value to set.
      Returns:
      the QueryComparisonExpression object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.