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

public final class QueryDataset extends Object
The definition of data present in the query.
  • Constructor Details

    • QueryDataset

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

    • granularity

      public GranularityType granularity()
      Get the granularity property: The granularity of rows in the query.
      Returns:
      the granularity value.
    • withGranularity

      public QueryDataset withGranularity(GranularityType granularity)
      Set the granularity property: The granularity of rows in the query.
      Parameters:
      granularity - the granularity value to set.
      Returns:
      the QueryDataset object itself.
    • configuration

      public QueryDatasetConfiguration configuration()
      Get the configuration property: Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.
      Returns:
      the configuration value.
    • withConfiguration

      public QueryDataset withConfiguration(QueryDatasetConfiguration configuration)
      Set the configuration property: Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.
      Parameters:
      configuration - the configuration value to set.
      Returns:
      the QueryDataset object itself.
    • aggregation

      public Map<String,QueryAggregation> aggregation()
      Get the aggregation property: Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.
      Returns:
      the aggregation value.
    • withAggregation

      public QueryDataset withAggregation(Map<String,QueryAggregation> aggregation)
      Set the aggregation property: Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.
      Parameters:
      aggregation - the aggregation value to set.
      Returns:
      the QueryDataset object itself.
    • grouping

      public List<QueryGrouping> grouping()
      Get the grouping property: Array of group by expression to use in the query. Query can have up to 2 group by clauses.
      Returns:
      the grouping value.
    • withGrouping

      public QueryDataset withGrouping(List<QueryGrouping> grouping)
      Set the grouping property: Array of group by expression to use in the query. Query can have up to 2 group by clauses.
      Parameters:
      grouping - the grouping value to set.
      Returns:
      the QueryDataset object itself.
    • filter

      public QueryFilter filter()
      Get the filter property: The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter.
      Returns:
      the filter value.
    • withFilter

      public QueryDataset withFilter(QueryFilter filter)
      Set the filter property: The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter.
      Parameters:
      filter - the filter value to set.
      Returns:
      the QueryDataset object itself.
    • validate

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