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 Summary
ConstructorsConstructorDescriptionCreates an instance of GenerateDetailedCostReportTimePeriod class. -
Method Summary
Modifier and TypeMethodDescriptionend()Get the end property: The end date to pull data to. example format 2020-03-15.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GenerateDetailedCostReportTimePeriod from the JsonReader.start()Get the start property: The start date to pull data from. example format 2020-03-15.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the end property: The end date to pull data to. example format 2020-03-15.Set the start property: The start date to pull data from. example format 2020-03-15.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GenerateDetailedCostReportTimePeriod
public GenerateDetailedCostReportTimePeriod()Creates an instance of GenerateDetailedCostReportTimePeriod class.
-
-
Method Details
-
start
Get the start property: The start date to pull data from. example format 2020-03-15.- Returns:
- the start value.
-
withStart
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
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
- Specified by:
toJsonin interfacecom.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.
-