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.
    • includeMonetaryCommitment

      public Boolean includeMonetaryCommitment()
      Get the includeMonetaryCommitment property: If true, report includes monetary commitment.
      Returns:
      the includeMonetaryCommitment value.
    • withIncludeMonetaryCommitment

      public ReportConfigDefinition withIncludeMonetaryCommitment(Boolean includeMonetaryCommitment)
      Set the includeMonetaryCommitment property: If true, report includes monetary commitment.
      Parameters:
      includeMonetaryCommitment - the includeMonetaryCommitment value to set.
      Returns:
      the ReportConfigDefinition object itself.
    • validate

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