Class QueryTimePeriod

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

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

    • QueryTimePeriod

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

    • from

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

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

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

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

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