Class QueryTimePeriod
java.lang.Object
com.azure.resourcemanager.costmanagement.models.QueryTimePeriod
The start and end date for pulling data for the query.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfrom()
Get the from property: The start date to pull data from.to()
Get the to property: The end date to pull data to.void
validate()
Validates the instance.withFrom
(OffsetDateTime from) Set the from property: The start date to pull data from.withTo
(OffsetDateTime to) Set the to property: The end date to pull data to.
-
Constructor Details
-
QueryTimePeriod
public QueryTimePeriod()Creates an instance of QueryTimePeriod class.
-
-
Method Details
-
from
Get the from property: The start date to pull data from.- Returns:
- the from value.
-
withFrom
Set the from property: The start date to pull data from.- Parameters:
from
- the from value to set.- Returns:
- the QueryTimePeriod object itself.
-
to
Get the to property: The end date to pull data to.- Returns:
- the to value.
-
withTo
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.
-