Class ReportConfigDataset
java.lang.Object
com.azure.resourcemanager.costmanagement.models.ReportConfigDataset
The definition of data present in the report.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregation property: Dictionary of aggregation expression to use in the report.Get the configuration property: Has configuration information for the data in the report.filter()
Get the filter property: Has filter expression to use in the report.Get the granularity property: The granularity of rows in the report.grouping()
Get the grouping property: Array of group by expression to use in the report.sorting()
Get the sorting property: Array of order by expression to use in the report.void
validate()
Validates the instance.withAggregation
(Map<String, ReportConfigAggregation> aggregation) Set the aggregation property: Dictionary of aggregation expression to use in the report.withConfiguration
(ReportConfigDatasetConfiguration configuration) Set the configuration property: Has configuration information for the data in the report.withFilter
(ReportConfigFilter filter) Set the filter property: Has filter expression to use in the report.withGranularity
(ReportGranularityType granularity) Set the granularity property: The granularity of rows in the report.withGrouping
(List<ReportConfigGrouping> grouping) Set the grouping property: Array of group by expression to use in the report.withSorting
(List<ReportConfigSorting> sorting) Set the sorting property: Array of order by expression to use in the report.
-
Constructor Details
-
ReportConfigDataset
public ReportConfigDataset()Creates an instance of ReportConfigDataset class.
-
-
Method Details
-
granularity
Get the granularity property: The granularity of rows in the report.- Returns:
- the granularity value.
-
withGranularity
Set the granularity property: The granularity of rows in the report.- Parameters:
granularity
- the granularity value to set.- Returns:
- the ReportConfigDataset object itself.
-
configuration
Get the configuration property: Has configuration information for the data in the report. 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 report. The configuration will be ignored if aggregation and grouping are provided.- Parameters:
configuration
- the configuration value to set.- Returns:
- the ReportConfigDataset object itself.
-
aggregation
Get the aggregation property: Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.- Returns:
- the aggregation value.
-
withAggregation
Set the aggregation property: Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.- Parameters:
aggregation
- the aggregation value to set.- Returns:
- the ReportConfigDataset object itself.
-
grouping
Get the grouping property: Array of group by expression to use in the report. Report 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 report. Report can have up to 2 group by clauses.- Parameters:
grouping
- the grouping value to set.- Returns:
- the ReportConfigDataset object itself.
-
sorting
Get the sorting property: Array of order by expression to use in the report.- Returns:
- the sorting value.
-
withSorting
Set the sorting property: Array of order by expression to use in the report.- Parameters:
sorting
- the sorting value to set.- Returns:
- the ReportConfigDataset object itself.
-
filter
Get the filter property: Has filter expression to use in the report.- Returns:
- the filter value.
-
withFilter
Set the filter property: Has filter expression to use in the report.- Parameters:
filter
- the filter value to set.- Returns:
- the ReportConfigDataset object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-