Class ReportConfigTimePeriod

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

public final class ReportConfigTimePeriod extends Object
The start and end date for pulling data for the report.
  • Constructor Details

    • ReportConfigTimePeriod

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

    • from

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

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

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

      Set the to property: The end date to pull data to.
      Parameters:
      to - the to value to set.
      Returns:
      the ReportConfigTimePeriod object itself.
    • validate

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