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

public final class QueryFilter extends Object
The filter expression to be used in the export.
  • Constructor Details

    • QueryFilter

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

    • and

      public List<QueryFilter> and()
      Get the and property: The logical "AND" expression. Must have at least 2 items.
      Returns:
      the and value.
    • withAnd

      public QueryFilter withAnd(List<QueryFilter> and)
      Set the and property: The logical "AND" expression. Must have at least 2 items.
      Parameters:
      and - the and value to set.
      Returns:
      the QueryFilter object itself.
    • or

      public List<QueryFilter> or()
      Get the or property: The logical "OR" expression. Must have at least 2 items.
      Returns:
      the or value.
    • withOr

      public QueryFilter withOr(List<QueryFilter> or)
      Set the or property: The logical "OR" expression. Must have at least 2 items.
      Parameters:
      or - the or value to set.
      Returns:
      the QueryFilter object itself.
    • dimensions

      public QueryComparisonExpression dimensions()
      Get the dimensions property: Has comparison expression for a dimension.
      Returns:
      the dimensions value.
    • withDimensions

      public QueryFilter withDimensions(QueryComparisonExpression dimensions)
      Set the dimensions property: Has comparison expression for a dimension.
      Parameters:
      dimensions - the dimensions value to set.
      Returns:
      the QueryFilter object itself.
    • tags

      Get the tags property: Has comparison expression for a tag.
      Returns:
      the tags value.
    • withTags

      public QueryFilter withTags(QueryComparisonExpression tags)
      Set the tags property: Has comparison expression for a tag.
      Parameters:
      tags - the tags value to set.
      Returns:
      the QueryFilter object itself.
    • validate

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