Class ExportTimePeriod

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

public final class ExportTimePeriod extends Object
The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.
  • Constructor Details

    • ExportTimePeriod

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

    • from

      public OffsetDateTime from()
      Get the from property: The start date for export data.
      Returns:
      the from value.
    • withFrom

      public ExportTimePeriod withFrom(OffsetDateTime from)
      Set the from property: The start date for export data.
      Parameters:
      from - the from value to set.
      Returns:
      the ExportTimePeriod object itself.
    • to

      public OffsetDateTime to()
      Get the to property: The end date for export data.
      Returns:
      the to value.
    • withTo

      public ExportTimePeriod withTo(OffsetDateTime to)
      Set the to property: The end date for export data.
      Parameters:
      to - the to value to set.
      Returns:
      the ExportTimePeriod object itself.
    • validate

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