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