Class ReportConfigDataset

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

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

    • ReportConfigDataset

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

    • granularity

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

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

      public ReportConfigDatasetConfiguration 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

      public ReportConfigDataset withConfiguration(ReportConfigDatasetConfiguration configuration)
      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

      public Map<String,ReportConfigAggregation> 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

      public ReportConfigDataset withAggregation(Map<String,ReportConfigAggregation> aggregation)
      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

      public List<ReportConfigGrouping> 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

      public ReportConfigDataset withGrouping(List<ReportConfigGrouping> grouping)
      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

      public List<ReportConfigSorting> sorting()
      Get the sorting property: Array of order by expression to use in the report.
      Returns:
      the sorting value.
    • withSorting

      public ReportConfigDataset withSorting(List<ReportConfigSorting> sorting)
      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

      public ReportConfigFilter filter()
      Get the filter property: Has filter expression to use in the report.
      Returns:
      the filter value.
    • withFilter

      public ReportConfigDataset withFilter(ReportConfigFilter filter)
      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.