Class GenerateDetailedCostReportTimePeriod

java.lang.Object
com.azure.resourcemanager.costmanagement.models.GenerateDetailedCostReportTimePeriod
All Implemented Interfaces:
com.azure.json.JsonSerializable<GenerateDetailedCostReportTimePeriod>

public final class GenerateDetailedCostReportTimePeriod extends Object implements com.azure.json.JsonSerializable<GenerateDetailedCostReportTimePeriod>
The start and end date for pulling data for the cost detailed report.
  • Constructor Details

    • GenerateDetailedCostReportTimePeriod

      public GenerateDetailedCostReportTimePeriod()
      Creates an instance of GenerateDetailedCostReportTimePeriod 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 GenerateDetailedCostReportTimePeriod 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 GenerateDetailedCostReportTimePeriod 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

      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 GenerateDetailedCostReportTimePeriod object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<GenerateDetailedCostReportTimePeriod>
      Throws:
      IOException
    • fromJson

      public static GenerateDetailedCostReportTimePeriod fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GenerateDetailedCostReportTimePeriod from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GenerateDetailedCostReportTimePeriod if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the GenerateDetailedCostReportTimePeriod.