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.
    • not

      public QueryFilter not()
      Get the not property: The logical "NOT" expression.
      Returns:
      the not value.
    • withNot

      public QueryFilter withNot(QueryFilter not)
      Set the not property: The logical "NOT" expression.
      Parameters:
      not - the not value to set.
      Returns:
      the QueryFilter object itself.
    • dimension

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

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

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

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

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