Class ForecastTimePeriod
java.lang.Object
com.azure.resourcemanager.costmanagement.models.ForecastTimePeriod
Has time period for pulling data for the forecast.
-
Constructor Summary
Constructors -
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.voidvalidate()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
-
ForecastTimePeriod
public ForecastTimePeriod()Creates an instance of ForecastTimePeriod 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 ForecastTimePeriod 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 ForecastTimePeriod object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-