Class ExportDefinition

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

public final class ExportDefinition extends Object
The definition of an export.
  • Constructor Details

    • ExportDefinition

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

    • type

      public ExportType type()
      Get the type property: The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
      Returns:
      the type value.
    • withType

      public ExportDefinition withType(ExportType type)
      Set the type property: The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.
      Parameters:
      type - the type value to set.
      Returns:
      the ExportDefinition object itself.
    • timeframe

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

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

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

      public ExportDefinition withTimePeriod(ExportTimePeriod timePeriod)
      Set the timePeriod property: Has time period for pulling data for the export.
      Parameters:
      timePeriod - the timePeriod value to set.
      Returns:
      the ExportDefinition object itself.
    • dataSet

      public ExportDataset dataSet()
      Get the dataSet property: The definition for data in the export.
      Returns:
      the dataSet value.
    • withDataSet

      public ExportDefinition withDataSet(ExportDataset dataSet)
      Set the dataSet property: The definition for data in the export.
      Parameters:
      dataSet - the dataSet value to set.
      Returns:
      the ExportDefinition object itself.
    • validate

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