Class ExportTimePeriod
java.lang.Object
com.azure.resourcemanager.costmanagement.models.ExportTimePeriod
The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date
range is 3 months.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfrom()Get the from property: The start date for export data.to()Get the to property: The end date for export data.voidvalidate()Validates the instance.withFrom(OffsetDateTime from) Set the from property: The start date for export data.withTo(OffsetDateTime to) Set the to property: The end date for export data.
-
Constructor Details
-
ExportTimePeriod
public ExportTimePeriod()Creates an instance of ExportTimePeriod class.
-
-
Method Details
-
from
Get the from property: The start date for export data.- Returns:
- the from value.
-
withFrom
Set the from property: The start date for export data.- Parameters:
from- the from value to set.- Returns:
- the ExportTimePeriod object itself.
-
to
Get the to property: The end date for export data.- Returns:
- the to value.
-
withTo
Set the to property: The end date for export data.- Parameters:
to- the to value to set.- Returns:
- the ExportTimePeriod object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-