Class ReportConfigDefinition

java.lang.Object
com.azure.resourcemanager.costmanagement.fluent.models.ReportConfigDefinition

public final class ReportConfigDefinition extends Object
The definition of a report config.
  • Constructor Details

    • ReportConfigDefinition

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

    • type

      public ReportType type()
      Get the type property: The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
      Returns:
      the type value.
    • withType

      public ReportConfigDefinition withType(ReportType type)
      Set the type property: The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
      Parameters:
      type - the type value to set.
      Returns:
      the ReportConfigDefinition object itself.
    • timeframe

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

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

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

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

      public ReportConfigDataset dataset()
      Get the dataset property: Has definition for data in this report config.
      Returns:
      the dataset value.
    • withDataset

      public ReportConfigDefinition withDataset(ReportConfigDataset dataset)
      Set the dataset property: Has definition for data in this report config.
      Parameters:
      dataset - the dataset value to set.
      Returns:
      the ReportConfigDefinition object itself.
    • validate

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