Class ForecastDataset

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

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

    • ForecastDataset

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

    • granularity

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

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

      public ForecastDatasetConfiguration 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 ForecastDataset withConfiguration(ForecastDatasetConfiguration 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 ForecastDataset object itself.
    • aggregation

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

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

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

      public ForecastDataset withFilter(ForecastFilter filter)
      Set the filter property: Has filter expression to use in the forecast.
      Parameters:
      filter - the filter value to set.
      Returns:
      the ForecastDataset object itself.
    • validate

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