Class ForecastDefinition

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

public final class ForecastDefinition extends Object
The definition of a forecast.
  • Constructor Details

    • ForecastDefinition

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

    • type

      public ForecastType type()
      Get the type property: The type of the forecast.
      Returns:
      the type value.
    • withType

      public ForecastDefinition withType(ForecastType type)
      Set the type property: The type of the forecast.
      Parameters:
      type - the type value to set.
      Returns:
      the ForecastDefinition object itself.
    • timeframe

      public ForecastTimeframeType timeframe()
      Get the timeframe property: The time frame for pulling data for the forecast. If custom, then a specific time period must be provided.
      Returns:
      the timeframe value.
    • withTimeframe

      public ForecastDefinition withTimeframe(ForecastTimeframeType timeframe)
      Set the timeframe property: The time frame for pulling data for the forecast. If custom, then a specific time period must be provided.
      Parameters:
      timeframe - the timeframe value to set.
      Returns:
      the ForecastDefinition object itself.
    • timePeriod

      public QueryTimePeriod timePeriod()
      Get the timePeriod property: Has time period for pulling data for the forecast.
      Returns:
      the timePeriod value.
    • withTimePeriod

      public ForecastDefinition withTimePeriod(QueryTimePeriod timePeriod)
      Set the timePeriod property: Has time period for pulling data for the forecast.
      Parameters:
      timePeriod - the timePeriod value to set.
      Returns:
      the ForecastDefinition object itself.
    • dataset

      public ForecastDataset dataset()
      Get the dataset property: Has definition for data in this forecast.
      Returns:
      the dataset value.
    • withDataset

      public ForecastDefinition withDataset(ForecastDataset dataset)
      Set the dataset property: Has definition for data in this forecast.
      Parameters:
      dataset - the dataset value to set.
      Returns:
      the ForecastDefinition object itself.
    • includeActualCost

      public Boolean includeActualCost()
      Get the includeActualCost property: a boolean determining if actualCost will be included.
      Returns:
      the includeActualCost value.
    • withIncludeActualCost

      public ForecastDefinition withIncludeActualCost(Boolean includeActualCost)
      Set the includeActualCost property: a boolean determining if actualCost will be included.
      Parameters:
      includeActualCost - the includeActualCost value to set.
      Returns:
      the ForecastDefinition object itself.
    • includeFreshPartialCost

      public Boolean includeFreshPartialCost()
      Get the includeFreshPartialCost property: a boolean determining if FreshPartialCost will be included.
      Returns:
      the includeFreshPartialCost value.
    • withIncludeFreshPartialCost

      public ForecastDefinition withIncludeFreshPartialCost(Boolean includeFreshPartialCost)
      Set the includeFreshPartialCost property: a boolean determining if FreshPartialCost will be included.
      Parameters:
      includeFreshPartialCost - the includeFreshPartialCost value to set.
      Returns:
      the ForecastDefinition object itself.
    • validate

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