Class ForecastDataset
java.lang.Object
com.azure.resourcemanager.costmanagement.models.ForecastDataset
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ForecastDataset>
public final class ForecastDataset
extends Object
implements com.azure.json.JsonSerializable<ForecastDataset>
The definition of data present in the forecast.
-
Constructor Summary
Constructors -
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.static ForecastDatasetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ForecastDataset from the JsonReader.Get the granularity property: The granularity of rows in the forecast.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ForecastDataset>- Throws:
IOException
-
fromJson
Reads an instance of ForecastDataset from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ForecastDataset if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ForecastDataset.
-