Class QueryDataset
java.lang.Object
com.azure.resourcemanager.costmanagement.models.QueryDataset
The definition of data present in the query.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregation property: Dictionary of aggregation expression to use in the query.Get the configuration property: Has configuration information for the data in the export.filter()
Get the filter property: The filter expression to use in the query.Get the granularity property: The granularity of rows in the query.grouping()
Get the grouping property: Array of group by expression to use in the query.void
validate()
Validates the instance.withAggregation
(Map<String, QueryAggregation> aggregation) Set the aggregation property: Dictionary of aggregation expression to use in the query.withConfiguration
(QueryDatasetConfiguration configuration) Set the configuration property: Has configuration information for the data in the export.withFilter
(QueryFilter filter) Set the filter property: The filter expression to use in the query.withGranularity
(GranularityType granularity) Set the granularity property: The granularity of rows in the query.withGrouping
(List<QueryGrouping> grouping) Set the grouping property: Array of group by expression to use in the query.
-
Constructor Details
-
QueryDataset
public QueryDataset()Creates an instance of QueryDataset class.
-
-
Method Details
-
granularity
Get the granularity property: The granularity of rows in the query.- Returns:
- the granularity value.
-
withGranularity
Set the granularity property: The granularity of rows in the query.- Parameters:
granularity
- the granularity value to set.- Returns:
- the QueryDataset object itself.
-
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
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
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
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
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
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
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
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.
-