Class CostDetailsTimePeriod
java.lang.Object
com.azure.resourcemanager.costmanagement.models.CostDetailsTimePeriod
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionend()
Get the end property: The end date to pull data to.start()
Get the start property: The start date to pull data from.void
validate()
Validates the instance.Set the end property: The end date to pull data to.Set the start property: The start date to pull data from.
-
Constructor Details
-
CostDetailsTimePeriod
public CostDetailsTimePeriod()Creates an instance of CostDetailsTimePeriod 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 CostDetailsTimePeriod 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 CostDetailsTimePeriod object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-