Class CostDetailsTimePeriod

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

public final class CostDetailsTimePeriod extends Object
The start and end date for pulling data for the cost detailed report. API only allows data to be pulled for 1 month or less and no older than 13 months.
  • Constructor Details

    • CostDetailsTimePeriod

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

    • start

      public String start()
      Get the start property: The start date to pull data from. example format 2020-03-15.
      Returns:
      the start value.
    • withStart

      public CostDetailsTimePeriod withStart(String start)
      Set the start property: The start date to pull data from. example format 2020-03-15.
      Parameters:
      start - the start value to set.
      Returns:
      the CostDetailsTimePeriod object itself.
    • end

      public String end()
      Get the end property: The end date to pull data to. example format 2020-03-15.
      Returns:
      the end value.
    • withEnd

      public CostDetailsTimePeriod withEnd(String end)
      Set the end property: The end date to pull data to. example format 2020-03-15.
      Parameters:
      end - the end value to set.
      Returns:
      the CostDetailsTimePeriod object itself.
    • validate

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