Class ForecastTimePeriod

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

public final class ForecastTimePeriod extends Object
Has time period for pulling data for the forecast.
  • Constructor Details

    • ForecastTimePeriod

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

    • from

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

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

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

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

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